3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --enable-shared[=PKGS] build shared libraries [default=yes]"
18 --enable-static[=PKGS] build static libraries [default=yes]"
20 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
22 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
24 --disable-libtool-lock avoid locking (might break parallel builds)"
26 --with-smbwrapper Include SMB wrapper support
27 --without-smbwrapper Don't include SMB wrapper support (default)"
29 --with-afs Include AFS support
30 --without-afs Don't include AFS support (default)"
32 --with-dfs Include DFS support
33 --without-dfs Don't include DFS support (default)"
35 --with-krb4=base-dir Include Kerberos IV support
36 --without-krb4 Don't include Kerberos IV support (default)"
38 --with-krb5=base-dir Include Kerberos 5 support
39 --without-krb5 Don't include Kerberos 5 support (default)"
41 --with-automount Include AUTOMOUNT support
42 --without-automount Don't include AUTOMOUNT support (default)"
44 --with-smbmount Include SMBMOUNT (Linux only) support
45 --without-smbmount Don't include SMBMOUNT support (default)"
47 --with-pam Include PAM password database support
48 --without-pam Don't include PAM password database support (default)"
50 --with-tdbsam Include experimental TDB password database
51 --without-tdbsam Don't include experimental TDB password database (default)"
53 --with-ldap Include LDAP support
54 --without-ldap Don't include LDAP support (default)"
56 --with-nisplus Include NISPLUS password database support
57 --without-nisplus Don't include NISPLUS password database support (default)"
59 --with-nisplus-home Include NISPLUS_HOME support
60 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
62 --with-ssl Include SSL support
63 --without-ssl Don't include SSL support (default)
64 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
66 --with-syslog Include experimental SYSLOG support
67 --without-syslog Don't include SYSLOG support (default)"
69 --with-profile Include profile support
70 --without-profile Don't include profile support (default)"
72 --with-netatalk Include experimental Netatalk support
73 --without-netatalk Don't include experimental Netatalk support (default)"
75 --with-quotas Include experimental disk-quota support
76 --without-quotas Don't include experimental disk-quota support (default)"
78 --with-utmp Include experimental utmp accounting
79 --without-utmp Don't include experimental utmp accounting (default)"
81 --with-msdfs Include MS Dfs support
82 --without-msdfs Don't include MS Dfs support (default)"
84 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
86 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
88 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
90 # Initialize some variables set by options.
91 # The variables have the same names as the options, with
92 # dashes changed to underlines.
94 cache_file
=.
/config.cache
103 program_transform_name
=s
,x
,x
,
111 bindir
='${exec_prefix}/bin'
112 sbindir
='${exec_prefix}/sbin'
113 libexecdir
='${exec_prefix}/libexec'
114 datadir
='${prefix}/share'
115 sysconfdir
='${prefix}/etc'
116 sharedstatedir
='${prefix}/com'
117 localstatedir
='${prefix}/var'
118 libdir
='${exec_prefix}/lib'
119 includedir
='${prefix}/include'
120 oldincludedir
='/usr/include'
121 infodir
='${prefix}/info'
122 mandir
='${prefix}/man'
124 # Initialize some other variables.
127 SHELL
=${CONFIG_SHELL-/bin/sh}
128 # Maximum number of lines to put in a shell here document.
135 # If the previous option needs an argument, assign it.
136 if test -n "$ac_prev"; then
137 eval "$ac_prev=\$ac_option"
143 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
147 # Accept the important Cygnus configure options, so we can diagnose typos.
151 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
153 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
154 bindir
="$ac_optarg" ;;
156 -build |
--build |
--buil |
--bui |
--bu)
158 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
159 build
="$ac_optarg" ;;
161 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
162 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
163 ac_prev
=cache_file
;;
164 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
165 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
166 cache_file
="$ac_optarg" ;;
168 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
170 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
172 datadir
="$ac_optarg" ;;
174 -disable-* |
--disable-*)
175 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}=no" ;;
183 -enable-* |
--enable-*)
184 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
185 # Reject names that are not valid shell variable names.
186 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
187 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
189 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
194 eval "enable_${ac_feature}='$ac_optarg'" ;;
196 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
197 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
198 |
--exec |
--exe |
--ex)
199 ac_prev
=exec_prefix
;;
200 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
201 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
202 |
--exec=* |
--exe=* |
--ex=*)
203 exec_prefix
="$ac_optarg" ;;
205 -gas |
--gas |
--ga |
--g)
206 # Obsolete; use --with-gas.
209 -help |
--help |
--hel |
--he)
210 # Omit some internal or obsolete options to make the list less imposing.
211 # This message is too long to be a string in the A/UX 3.1 sh.
213 Usage: configure [options] [host]
214 Options: [defaults in brackets after descriptions]
216 --cache-file=FILE cache test results in FILE
217 --help print this message
218 --no-create do not create output files
219 --quiet, --silent do not print \`checking...' messages
220 --version print the version of autoconf that created configure
221 Directory and file names:
222 --prefix=PREFIX install architecture-independent files in PREFIX
224 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
226 --bindir=DIR user executables in DIR [EPREFIX/bin]
227 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
228 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
229 --datadir=DIR read-only architecture-independent data in DIR
231 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
232 --sharedstatedir=DIR modifiable architecture-independent data in DIR
234 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
235 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
236 --includedir=DIR C header files in DIR [PREFIX/include]
237 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
238 --infodir=DIR info documentation in DIR [PREFIX/info]
239 --mandir=DIR man documentation in DIR [PREFIX/man]
240 --srcdir=DIR find the sources in DIR [configure dir or ..]
241 --program-prefix=PREFIX prepend PREFIX to installed program names
242 --program-suffix=SUFFIX append SUFFIX to installed program names
243 --program-transform-name=PROGRAM
244 run sed PROGRAM on installed program names
248 --build=BUILD configure for building on BUILD [BUILD=HOST]
249 --host=HOST configure for HOST [guessed]
250 --target=TARGET configure for TARGET [TARGET=HOST]
251 Features and packages:
252 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
253 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
254 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
255 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
256 --x-includes=DIR X include files are in DIR
257 --x-libraries=DIR X library files are in DIR
259 if test -n "$ac_help"; then
260 echo "--enable and --with options recognized:$ac_help"
264 -host |
--host |
--hos |
--ho)
266 -host=* |
--host=* |
--hos=* |
--ho=*)
269 -includedir |
--includedir |
--includedi |
--included |
--include \
270 |
--includ |
--inclu |
--incl |
--inc)
271 ac_prev
=includedir
;;
272 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
273 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
274 includedir
="$ac_optarg" ;;
276 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
278 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
279 infodir
="$ac_optarg" ;;
281 -libdir |
--libdir |
--libdi |
--libd)
283 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
284 libdir
="$ac_optarg" ;;
286 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
287 |
--libexe |
--libex |
--libe)
288 ac_prev
=libexecdir
;;
289 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
290 |
--libexe=* |
--libex=* |
--libe=*)
291 libexecdir
="$ac_optarg" ;;
293 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
294 |
--localstate |
--localstat |
--localsta |
--localst \
295 |
--locals |
--local |
--loca |
--loc |
--lo)
296 ac_prev
=localstatedir
;;
297 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
298 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
299 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
300 localstatedir
="$ac_optarg" ;;
302 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
304 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
305 mandir
="$ac_optarg" ;;
308 # Obsolete; use --without-fp.
311 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
315 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
316 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
319 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
320 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
321 |
--oldin |
--oldi |
--old |
--ol |
--o)
322 ac_prev
=oldincludedir
;;
323 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
324 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
325 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
326 oldincludedir
="$ac_optarg" ;;
328 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
330 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
331 prefix
="$ac_optarg" ;;
333 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
334 |
--program-pre |
--program-pr |
--program-p)
335 ac_prev
=program_prefix
;;
336 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
337 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
338 program_prefix
="$ac_optarg" ;;
340 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
341 |
--program-suf |
--program-su |
--program-s)
342 ac_prev
=program_suffix
;;
343 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
344 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
345 program_suffix
="$ac_optarg" ;;
347 -program-transform-name |
--program-transform-name \
348 |
--program-transform-nam |
--program-transform-na \
349 |
--program-transform-n |
--program-transform- \
350 |
--program-transform |
--program-transfor \
351 |
--program-transfo |
--program-transf \
352 |
--program-trans |
--program-tran \
353 |
--progr-tra |
--program-tr |
--program-t)
354 ac_prev
=program_transform_name
;;
355 -program-transform-name=* |
--program-transform-name=* \
356 |
--program-transform-nam=* |
--program-transform-na=* \
357 |
--program-transform-n=* |
--program-transform-=* \
358 |
--program-transform=* |
--program-transfor=* \
359 |
--program-transfo=* |
--program-transf=* \
360 |
--program-trans=* |
--program-tran=* \
361 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
362 program_transform_name
="$ac_optarg" ;;
364 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
365 |
-silent |
--silent |
--silen |
--sile |
--sil)
368 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
370 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
372 sbindir
="$ac_optarg" ;;
374 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
375 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
376 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
378 ac_prev
=sharedstatedir
;;
379 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
380 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
381 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
383 sharedstatedir
="$ac_optarg" ;;
385 -site |
--site |
--sit)
387 -site=* |
--site=* |
--sit=*)
390 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
392 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
393 srcdir
="$ac_optarg" ;;
395 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
396 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
397 ac_prev
=sysconfdir
;;
398 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
399 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
400 sysconfdir
="$ac_optarg" ;;
402 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
404 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
405 target
="$ac_optarg" ;;
407 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
410 -version |
--version |
--versio |
--versi |
--vers)
411 echo "configure generated by autoconf version 2.13"
415 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
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'`
425 eval "with_${ac_package}='$ac_optarg'" ;;
427 -without-* |
--without-*)
428 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
429 # Reject names that are not valid shell variable names.
430 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
431 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
433 ac_package
=`echo $ac_package| sed 's/-/_/g'`
434 eval "with_${ac_package}=no" ;;
437 # Obsolete; use --with-x.
440 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
441 |
--x-incl |
--x-inc |
--x-in |
--x-i)
442 ac_prev
=x_includes
;;
443 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
444 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
445 x_includes
="$ac_optarg" ;;
447 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
448 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
449 ac_prev
=x_libraries
;;
450 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
451 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
452 x_libraries
="$ac_optarg" ;;
454 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
458 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
459 echo "configure: warning: $ac_option: invalid host type" 1>&2
461 if test "x$nonopt" != xNONE
; then
462 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
470 if test -n "$ac_prev"; then
471 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
474 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
476 # File descriptor usage:
479 # 2 errors and warnings
480 # 3 some systems may open it to /dev/tty
481 # 4 used on the Kubota Titan
482 # 6 checking for... messages and results
483 # 5 compiler messages saved in config.log
484 if test "$silent" = yes; then
492 This file contains any messages produced by compilers while
493 running configure, to aid debugging if configure makes a mistake.
496 # Strip out --no-create and --no-recursion so they do not pile up.
497 # Also quote any args containing shell metacharacters.
502 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
503 |
--no-cr |
--no-c) ;;
504 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
505 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
506 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
507 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
508 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
513 # Only set these to C if already set. These must not be set unconditionally
514 # because not all systems understand e.g. LANG=C (notably SCO).
515 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
516 # Non-C LC_CTYPE values break the ctype check.
517 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
518 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
519 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
520 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
522 # confdefs.h avoids OS command line length limits that DEFS can exceed.
523 rm -rf conftest
* confdefs.h
524 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
527 # A filename unique to this package, relative to the directory that
528 # configure is in, which we can look for to find out if srcdir is correct.
529 ac_unique_file
=include
/includes.h
531 # Find the source files, if location was not specified.
532 if test -z "$srcdir"; then
533 ac_srcdir_defaulted
=yes
534 # Try the directory containing this script, then its parent.
536 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
537 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
539 if test ! -r $srcdir/$ac_unique_file; then
543 ac_srcdir_defaulted
=no
545 if test ! -r $srcdir/$ac_unique_file; then
546 if test "$ac_srcdir_defaulted" = yes; then
547 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
549 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
552 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
554 # Prefer explicitly selected file to automatically selected ones.
555 if test -z "$CONFIG_SITE"; then
556 if test "x$prefix" != xNONE
; then
557 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
559 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
562 for ac_site_file
in $CONFIG_SITE; do
563 if test -r "$ac_site_file"; then
564 echo "loading site script $ac_site_file"
569 if test -r "$cache_file"; then
570 echo "loading cache $cache_file"
573 echo "creating cache $cache_file"
578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
579 ac_cpp
='$CPP $CPPFLAGS'
580 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
581 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
582 cross_compiling
=$ac_cv_prog_cc_cross
586 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
587 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
588 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
595 ac_n
= ac_c
='\c' ac_t
=
600 # we want to be compatibe with older versions of Samba
613 # compile with optimisation and without debugging by default
614 CFLAGS
=${CFLAGS-"-O"}
616 # Extract the first word of "gcc", so it can be a program name with args.
617 set dummy gcc
; ac_word
=$2
618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
619 echo "configure:620: checking for $ac_word" >&5
620 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
621 echo $ac_n "(cached) $ac_c" 1>&6
623 if test -n "$CC"; then
624 ac_cv_prog_CC
="$CC" # Let the user override the test.
626 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
628 for ac_dir
in $ac_dummy; do
629 test -z "$ac_dir" && ac_dir
=.
630 if test -f $ac_dir/$ac_word; then
639 if test -n "$CC"; then
640 echo "$ac_t""$CC" 1>&6
642 echo "$ac_t""no" 1>&6
645 if test -z "$CC"; then
646 # Extract the first word of "cc", so it can be a program name with args.
647 set dummy cc
; ac_word
=$2
648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
649 echo "configure:650: checking for $ac_word" >&5
650 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
651 echo $ac_n "(cached) $ac_c" 1>&6
653 if test -n "$CC"; then
654 ac_cv_prog_CC
="$CC" # Let the user override the test.
656 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
659 for ac_dir
in $ac_dummy; do
660 test -z "$ac_dir" && ac_dir
=.
661 if test -f $ac_dir/$ac_word; then
662 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
671 if test $ac_prog_rejected = yes; then
672 # We found a bogon in the path, so make sure we never use it.
673 set dummy
$ac_cv_prog_CC
675 if test $# -gt 0; then
676 # We chose a different compiler from the bogus one.
677 # However, it has the same basename, so the bogon will be chosen
678 # first if we set CC to just the basename; use the full file name.
680 set dummy
"$ac_dir/$ac_word" "$@"
688 if test -n "$CC"; then
689 echo "$ac_t""$CC" 1>&6
691 echo "$ac_t""no" 1>&6
694 if test -z "$CC"; then
697 # Extract the first word of "cl", so it can be a program name with args.
698 set dummy cl
; ac_word
=$2
699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
700 echo "configure:701: checking for $ac_word" >&5
701 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
702 echo $ac_n "(cached) $ac_c" 1>&6
704 if test -n "$CC"; then
705 ac_cv_prog_CC
="$CC" # Let the user override the test.
707 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
709 for ac_dir
in $ac_dummy; do
710 test -z "$ac_dir" && ac_dir
=.
711 if test -f $ac_dir/$ac_word; then
720 if test -n "$CC"; then
721 echo "$ac_t""$CC" 1>&6
723 echo "$ac_t""no" 1>&6
728 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
731 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
732 echo "configure:733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
735 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
736 ac_cpp
='$CPP $CPPFLAGS'
737 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
738 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
739 cross_compiling
=$ac_cv_prog_cc_cross
741 cat > conftest.
$ac_ext << EOF
743 #line 744 "configure"
744 #include "confdefs.h"
748 if { (eval echo configure
:749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
749 ac_cv_prog_cc_works
=yes
750 # If we can't run a trivial program, we are probably using a cross compiler.
751 if (.
/conftest
; exit) 2>/dev
/null
; then
752 ac_cv_prog_cc_cross
=no
754 ac_cv_prog_cc_cross
=yes
757 echo "configure: failed program was:" >&5
758 cat conftest.
$ac_ext >&5
759 ac_cv_prog_cc_works
=no
763 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
764 ac_cpp
='$CPP $CPPFLAGS'
765 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
766 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
767 cross_compiling
=$ac_cv_prog_cc_cross
769 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
770 if test $ac_cv_prog_cc_works = no
; then
771 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
773 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
774 echo "configure:775: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
775 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
776 cross_compiling
=$ac_cv_prog_cc_cross
778 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
779 echo "configure:780: checking whether we are using GNU C" >&5
780 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
783 cat > conftest.c
<<EOF
788 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
795 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
797 if test $ac_cv_prog_gcc = yes; then
803 ac_test_CFLAGS
="${CFLAGS+set}"
804 ac_save_CFLAGS
="$CFLAGS"
806 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
807 echo "configure:808: checking whether ${CC-cc} accepts -g" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
811 echo 'void f(){}' > conftest.c
812 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
821 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
822 if test "$ac_test_CFLAGS" = set; then
823 CFLAGS
="$ac_save_CFLAGS"
824 elif test $ac_cv_prog_cc_g = yes; then
825 if test "$GCC" = yes; then
831 if test "$GCC" = yes; then
839 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
840 if test -f $ac_dir/install-sh
; then
842 ac_install_sh
="$ac_aux_dir/install-sh -c"
844 elif test -f $ac_dir/install.sh
; then
846 ac_install_sh
="$ac_aux_dir/install.sh -c"
850 if test -z "$ac_aux_dir"; then
851 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
853 ac_config_guess
=$ac_aux_dir/config.guess
854 ac_config_sub
=$ac_aux_dir/config.sub
855 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
857 # Find a good install program. We prefer a C program (faster),
858 # so one script is as good as another. But avoid the broken or
859 # incompatible versions:
860 # SysV /etc/install, /usr/sbin/install
861 # SunOS /usr/etc/install
864 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
865 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
866 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
867 # ./install, which can be erroneously created by make from ./install.sh.
868 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
869 echo "configure:870: checking for a BSD compatible install" >&5
870 if test -z "$INSTALL"; then
871 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
872 echo $ac_n "(cached) $ac_c" 1>&6
874 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
875 for ac_dir
in $PATH; do
876 # Account for people who put trailing slashes in PATH elements.
878 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
880 # OSF1 and SCO ODT 3.0 have their own names for install.
881 # Don't use installbsd from OSF since it installs stuff as root
883 for ac_prog
in ginstall scoinst
install; do
884 if test -f $ac_dir/$ac_prog; then
885 if test $ac_prog = install &&
886 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
887 # AIX install. It has an incompatible calling convention.
890 ac_cv_path_install
="$ac_dir/$ac_prog -c"
901 if test "${ac_cv_path_install+set}" = set; then
902 INSTALL
="$ac_cv_path_install"
904 # As a last resort, use the slow shell script. We don't cache a
905 # path for INSTALL within a source directory, because that will
906 # break other packages using the cache if that directory is
907 # removed, or if the path is relative.
908 INSTALL
="$ac_install_sh"
911 echo "$ac_t""$INSTALL" 1>&6
913 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
914 # It thinks the first close brace ends the variable substitution.
915 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
917 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
919 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
921 for ac_prog
in gawk mawk nawk
awk
923 # Extract the first word of "$ac_prog", so it can be a program name with args.
924 set dummy
$ac_prog; ac_word
=$2
925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
926 echo "configure:927: checking for $ac_word" >&5
927 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
928 echo $ac_n "(cached) $ac_c" 1>&6
930 if test -n "$AWK"; then
931 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
933 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
935 for ac_dir
in $ac_dummy; do
936 test -z "$ac_dir" && ac_dir
=.
937 if test -f $ac_dir/$ac_word; then
938 ac_cv_prog_AWK
="$ac_prog"
945 AWK
="$ac_cv_prog_AWK"
946 if test -n "$AWK"; then
947 echo "$ac_t""$AWK" 1>&6
949 echo "$ac_t""no" 1>&6
952 test -n "$AWK" && break
955 # Check whether --enable-shared or --disable-shared was given.
956 if test "${enable_shared+set}" = set; then
957 enableval
="$enable_shared"
960 yes) enable_shared
=yes ;;
961 no
) enable_shared
=no
;;
964 # Look at the argument we got. We use all the common list separators.
965 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
966 for pkg
in $enableval; do
967 if test "X$pkg" = "X$p"; then
978 # Check whether --enable-static or --disable-static was given.
979 if test "${enable_static+set}" = set; then
980 enableval
="$enable_static"
983 yes) enable_static
=yes ;;
984 no
) enable_static
=no
;;
987 # Look at the argument we got. We use all the common list separators.
988 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
989 for pkg
in $enableval; do
990 if test "X$pkg" = "X$p"; then
1001 # Check whether --enable-fast-install or --disable-fast-install was given.
1002 if test "${enable_fast_install+set}" = set; then
1003 enableval
="$enable_fast_install"
1004 p
=${PACKAGE-default}
1005 case "$enableval" in
1006 yes) enable_fast_install
=yes ;;
1007 no
) enable_fast_install
=no
;;
1009 enable_fast_install
=no
1010 # Look at the argument we got. We use all the common list separators.
1011 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1012 for pkg
in $enableval; do
1013 if test "X$pkg" = "X$p"; then
1014 enable_fast_install
=yes
1021 enable_fast_install
=yes
1025 # Make sure we can run config.sub.
1026 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1027 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1030 echo $ac_n "checking host system type""... $ac_c" 1>&6
1031 echo "configure:1032: checking host system type" >&5
1034 case "$host_alias" in
1038 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1039 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1041 *) host_alias
=$nonopt ;;
1045 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1046 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1047 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1048 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1049 echo "$ac_t""$host" 1>&6
1051 echo $ac_n "checking build system type""... $ac_c" 1>&6
1052 echo "configure:1053: checking build system type" >&5
1055 case "$build_alias" in
1058 NONE
) build_alias
=$host_alias ;;
1059 *) build_alias
=$nonopt ;;
1063 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1064 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1065 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1066 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1067 echo "$ac_t""$build" 1>&6
1069 # Extract the first word of "ranlib", so it can be a program name with args.
1070 set dummy ranlib
; ac_word
=$2
1071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1072 echo "configure:1073: checking for $ac_word" >&5
1073 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 if test -n "$RANLIB"; then
1077 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1079 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1081 for ac_dir
in $ac_dummy; do
1082 test -z "$ac_dir" && ac_dir
=.
1083 if test -f $ac_dir/$ac_word; then
1084 ac_cv_prog_RANLIB
="ranlib"
1089 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1092 RANLIB
="$ac_cv_prog_RANLIB"
1093 if test -n "$RANLIB"; then
1094 echo "$ac_t""$RANLIB" 1>&6
1096 echo "$ac_t""no" 1>&6
1099 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1100 if test "${with_gnu_ld+set}" = set; then
1101 withval
="$with_gnu_ld"
1102 test "$withval" = no || with_gnu_ld
=yes
1108 if test "$ac_cv_prog_gcc" = yes; then
1109 # Check if gcc -print-prog-name=ld gives a path.
1110 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1111 echo "configure:1112: checking for ld used by GCC" >&5
1112 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1114 # Accept absolute paths.
1115 [\\/]* |
[A-Za-z
]:[\\/]*)
1116 re_direlt
='/[^/][^/]*/\.\./'
1117 # Canonicalize the path of ld
1118 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1119 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1120 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1122 test -z "$LD" && LD
="$ac_prog"
1125 # If it fails, then pretend we aren't using GCC.
1129 # If it is relative, then search for the first ld in PATH.
1133 elif test "$with_gnu_ld" = yes; then
1134 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1135 echo "configure:1136: checking for GNU ld" >&5
1137 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1138 echo "configure:1139: checking for non-GNU ld" >&5
1140 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1141 echo $ac_n "(cached) $ac_c" 1>&6
1143 if test -z "$LD"; then
1144 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1145 for ac_dir
in $PATH; do
1146 test -z "$ac_dir" && ac_dir
=.
1147 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1148 ac_cv_path_LD
="$ac_dir/$ac_prog"
1149 # Check to see if the program is GNU ld. I'd rather use --version,
1150 # but apparently some GNU ld's only accept -v.
1151 # Break only if it was the GNU/non-GNU ld that we prefer.
1152 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1153 test "$with_gnu_ld" != no
&& break
1155 test "$with_gnu_ld" != yes && break
1161 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1166 if test -n "$LD"; then
1167 echo "$ac_t""$LD" 1>&6
1169 echo "$ac_t""no" 1>&6
1171 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1172 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1173 echo "configure:1174: checking if the linker ($LD) is GNU ld" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1177 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1178 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1179 ac_cv_prog_gnu_ld
=yes
1181 ac_cv_prog_gnu_ld
=no
1185 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1188 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1189 echo "configure:1190: checking for BSD-compatible nm" >&5
1190 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 if test -n "$NM"; then
1194 # Let the user override the test.
1197 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1198 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1199 test -z "$ac_dir" && ac_dir
=.
1200 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1201 # Check to see if the nm accepts a BSD-compat flag.
1202 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1203 # nm: unknown option "B" ignored
1204 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1205 ac_cv_path_NM
="$ac_dir/nm -B"
1207 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1208 ac_cv_path_NM
="$ac_dir/nm -p"
1211 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1212 continue # so that we can try to find one that supports BSD flags
1217 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1222 echo "$ac_t""$NM" 1>&6
1224 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1225 echo "configure:1226: checking whether ln -s works" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1230 if ln -s X conftestdata
2>/dev
/null
1233 ac_cv_prog_LN_S
="ln -s"
1238 LN_S
="$ac_cv_prog_LN_S"
1239 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1240 echo "$ac_t""yes" 1>&6
1242 echo "$ac_t""no" 1>&6
1247 NONE
) lt_target
="$host" ;;
1248 *) lt_target
="$target" ;;
1251 # Check for any special flags to pass to ltconfig.
1252 libtool_flags
="--cache-file=$cache_file"
1253 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1254 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1255 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1256 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1257 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1260 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1261 if test "${enable_libtool_lock+set}" = set; then
1262 enableval
="$enable_libtool_lock"
1266 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1267 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1269 # Some flags need to be propagated to the compiler or linker for good
1271 case "$lt_target" in
1273 # Find out which ABI we are using.
1274 echo '#line 1275 "configure"' > conftest.
$ac_ext
1275 if { (eval echo configure
:1276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1276 case "`/usr/bin/file conftest.o`" in
1292 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1293 SAVE_CFLAGS
="$CFLAGS"
1294 CFLAGS
="$CFLAGS -belf"
1295 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1296 echo "configure:1297: checking whether the C compiler needs -belf" >&5
1297 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1300 cat > conftest.
$ac_ext <<EOF
1301 #line 1302 "configure"
1302 #include "confdefs.h"
1308 if { (eval echo configure
:1309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1310 lt_cv_cc_needs_belf
=yes
1312 echo "configure: failed program was:" >&5
1313 cat conftest.
$ac_ext >&5
1315 lt_cv_cc_needs_belf
=no
1320 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1321 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1322 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1323 CFLAGS
="$SAVE_CFLAGS"
1331 # Save cache, so that ltconfig can load it
1332 cat > confcache
<<\EOF
1333 # This file is a shell script that caches the results of configure
1334 # tests run on this system so they can be shared between configure
1335 # scripts and configure runs. It is not useful on other systems.
1336 # If it contains results you don't want to keep, you may remove or edit it.
1338 # By default, configure uses ./config.cache as the cache file,
1339 # creating it if it does not exist already. You can give configure
1340 # the --cache-file=FILE option to use a different cache file; that is
1341 # what configure does when it calls configure scripts in
1342 # subdirectories, so they share the cache.
1343 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1344 # config.status only pays attention to the cache file if you give it the
1345 # --recheck option to rerun configure.
1348 # The following way of writing the cache mishandles newlines in values,
1349 # but we know of no workaround that is simple, portable, and efficient.
1350 # So, don't put newlines in cache variables' values.
1351 # Ultrix sh set writes to stderr and can't be redirected directly,
1352 # and sets the high bit in the cache file unless we assign to the vars.
1354 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1356 # `set' does not quote correctly, so add quotes (double-quote substitution
1357 # turns \\\\ into \\, and sed turns \\ into \).
1359 -e "s/'/'\\\\''/g" \
1360 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1363 # `set' quotes correctly as required by POSIX, so do not add quotes.
1364 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1367 if cmp -s $cache_file confcache
; then
1370 if test -w $cache_file; then
1371 echo "updating cache $cache_file"
1372 cat confcache
> $cache_file
1374 echo "not updating unwritable cache $cache_file"
1380 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1381 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1382 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1383 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1384 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1385 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1386 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1387 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1389 # Reload cache, that may have been modified by ltconfig
1390 if test -r "$cache_file"; then
1391 echo "loading cache $cache_file"
1394 echo "creating cache $cache_file"
1399 # This can be used to rebuild libtool when needed
1400 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1402 # Always use our own libtool.
1403 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1405 # Redirect the config.log output again, so that the ltconfig log is not
1406 # clobbered by the next message.
1407 exec 5>>.
/config.log
1411 if test "x$CC" != xcc
; then
1412 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1413 echo "configure:1414: checking whether $CC and cc understand -c and -o together" >&5
1415 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1416 echo "configure:1417: checking whether cc understands -c and -o together" >&5
1418 set dummy
$CC; ac_cc
="`echo $2 |
1419 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1420 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1423 echo 'foo(){}' > conftest.c
1424 # Make sure it works both with $CC and with simple cc.
1425 # We do the test twice because some compilers refuse to overwrite an
1426 # existing .o file with -o, though they will create one.
1427 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1428 if { (eval echo configure
:1429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1429 test -f conftest.o
&& { (eval echo configure
:1430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1431 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1432 if test "x$CC" != xcc
; then
1433 # Test first that cc exists at all.
1434 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1435 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1436 if { (eval echo configure
:1437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1437 test -f conftest.o
&& { (eval echo configure
:1438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1442 # cc exists but doesn't like -o.
1443 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1448 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1453 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1454 echo "$ac_t""yes" 1>&6
1456 echo "$ac_t""no" 1>&6
1457 cat >> confdefs.h
<<\EOF
1458 #define NO_MINUS_C_MINUS_O 1
1463 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1470 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1471 echo "configure:1472: checking that the C compiler understands volatile" >&5
1472 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1476 cat > conftest.
$ac_ext <<EOF
1477 #line 1478 "configure"
1478 #include "confdefs.h"
1479 #include <sys/types.h>
1484 if { (eval echo configure
:1485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1486 samba_cv_volatile
=yes
1488 echo "configure: failed program was:" >&5
1489 cat conftest.
$ac_ext >&5
1491 samba_cv_volatile
=no
1496 echo "$ac_t""$samba_cv_volatile" 1>&6
1497 if test x
"$samba_cv_volatile" = x
"yes"; then
1498 cat >> confdefs.h
<<\EOF
1499 #define HAVE_VOLATILE 1
1507 # Do some error checking and defaulting for the host and target type.
1509 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1512 # 1. You are not allowed to specify --host, --target, and nonopt at the
1514 # 2. Host defaults to nonopt.
1515 # 3. If nonopt is not specified, then host defaults to the current host,
1516 # as determined by config.guess.
1517 # 4. Target and build default to nonopt.
1518 # 5. If nonopt is not specified, then target and build default to host.
1520 # The aliases save the names the user supplied, while $host etc.
1521 # will get canonicalized.
1522 case $host---$target---$nonopt in
1523 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1524 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1528 # Make sure we can run config.sub.
1529 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1530 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1533 echo $ac_n "checking host system type""... $ac_c" 1>&6
1534 echo "configure:1535: checking host system type" >&5
1537 case "$host_alias" in
1541 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1542 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1544 *) host_alias
=$nonopt ;;
1548 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1549 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1550 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1551 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1552 echo "$ac_t""$host" 1>&6
1554 echo $ac_n "checking target system type""... $ac_c" 1>&6
1555 echo "configure:1556: checking target system type" >&5
1557 target_alias
=$target
1558 case "$target_alias" in
1561 NONE
) target_alias
=$host_alias ;;
1562 *) target_alias
=$nonopt ;;
1566 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1567 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570 echo "$ac_t""$target" 1>&6
1572 echo $ac_n "checking build system type""... $ac_c" 1>&6
1573 echo "configure:1574: checking build system type" >&5
1576 case "$build_alias" in
1579 NONE
) build_alias
=$host_alias ;;
1580 *) build_alias
=$nonopt ;;
1584 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1585 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1586 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1587 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1588 echo "$ac_t""$build" 1>&6
1590 test "$host_alias" != "$target_alias" &&
1591 test "$program_prefix$program_suffix$program_transform_name" = \
1593 program_prefix
=${target_alias}-
1597 *irix
*) cat >> confdefs.h
<<\EOF
1598 #include <standards.h>
1606 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1607 echo "configure:1608: checking config.cache system type" >&5
1608 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1609 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1610 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1611 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1612 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1613 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1614 echo "$ac_t""different" 1>&6
1615 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1617 echo "$ac_t""same" 1>&6
1619 ac_cv_host_system_type
="$host"
1620 ac_cv_build_system_type
="$build"
1621 ac_cv_target_system_type
="$target"
1625 # Config CPPFLAG settings for strange OS's that must be set
1626 # before other tests.
1629 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1631 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1632 echo "configure:1633: checking whether ${CC-cc} accepts -Ae" >&5
1633 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1636 echo 'void f(){}' > conftest.c
1637 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1638 ac_cv_prog_cc_Ae
=yes
1646 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1647 if test $ac_cv_prog_cc_Ae = yes; then
1648 CPPFLAGS
="$CPPFLAGS -Ae"
1651 # Defines needed for HPUX support.
1652 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1653 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1657 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1658 cat >> confdefs.h
<<\EOF
1659 #define USE_BOTH_CRYPT_CALLS 1
1664 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1665 cat >> confdefs.h
<<\EOF
1666 #define USE_BOTH_CRYPT_CALLS 1
1673 # AIX4.x doesn't even admit to having large
1674 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1677 echo "$ac_t""enabling large file support" 1>&6
1678 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1681 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1682 # to the existance of large files..
1683 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1684 # recommendations on large file support, however it makes the
1685 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1686 # recommendation makes the compile fail on gcc2.7. JRA.
1691 echo "$ac_t""enabling large file support" 1>&6
1692 if test "$ac_cv_prog_gcc" = yes; then
1693 ${CC-cc} -v >conftest.c
2>&1
1694 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1696 case "$ac_cv_gcc_compiler_version_number" in
1697 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1698 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1701 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1705 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1711 # Tests needed for SINIX large file support.
1714 if test $host = mips-sni-sysv4
; then
1715 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1716 echo "configure:1717: checking for LFS support" >&5
1717 old_CPPFLAGS
="$CPPFLAGS"
1718 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1719 if test "$cross_compiling" = yes; then
1720 SINIX_LFS_SUPPORT
=cross
1722 cat > conftest.
$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1728 #if _LFS64_LARGEFILE == 1
1735 if { (eval echo configure
:1736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1737 SINIX_LFS_SUPPORT
=yes
1739 echo "configure: failed program was:" >&5
1740 cat conftest.
$ac_ext >&5
1742 SINIX_LFS_SUPPORT
=no
1747 CPPFLAGS
="$old_CPPFLAGS"
1748 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1749 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1750 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1751 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1752 LIBS
="`getconf LFS64_LIBS` $LIBS"
1754 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1759 # Tests needed for glibc 2.1 large file support.
1762 echo "$ac_t""disabling large file support for glibc2.1 on Linux" 1>&6
1765 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1766 echo "configure:1767: checking for LFS support" >&5
1767 old_CPPFLAGS
="$CPPFLAGS"
1768 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1769 if test "$cross_compiling" = yes; then
1770 GLIBC_LFS_SUPPORT
=cross
1772 cat > conftest.
$ac_ext <<EOF
1773 #line 1774 "configure"
1774 #include "confdefs.h"
1778 #if _LFS64_LARGEFILE == 1
1785 if { (eval echo configure
:1786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1787 GLIBC_LFS_SUPPORT
=yes
1789 echo "configure: failed program was:" >&5
1790 cat conftest.
$ac_ext >&5
1792 GLIBC_LFS_SUPPORT
=no
1797 CPPFLAGS
="$old_CPPFLAGS"
1798 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1799 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1801 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1806 echo $ac_n "checking for inline""... $ac_c" 1>&6
1807 echo "configure:1808: checking for inline" >&5
1808 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1812 for ac_kw
in inline __inline__ __inline
; do
1813 cat > conftest.
$ac_ext <<EOF
1814 #line 1815 "configure"
1815 #include "confdefs.h"
1821 if { (eval echo configure
:1822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1823 ac_cv_c_inline
=$ac_kw; break
1825 echo "configure: failed program was:" >&5
1826 cat conftest.
$ac_ext >&5
1833 echo "$ac_t""$ac_cv_c_inline" 1>&6
1834 case "$ac_cv_c_inline" in
1836 no
) cat >> confdefs.h
<<\EOF
1840 *) cat >> confdefs.h
<<EOF
1841 #define inline $ac_cv_c_inline
1846 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1847 echo "configure:1848: checking how to run the C preprocessor" >&5
1848 # On Suns, sometimes $CPP names a directory.
1849 if test -n "$CPP" && test -d "$CPP"; then
1852 if test -z "$CPP"; then
1853 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1854 echo $ac_n "(cached) $ac_c" 1>&6
1856 # This must be in double quotes, not single quotes, because CPP may get
1857 # substituted into the Makefile and "${CC-cc}" will confuse make.
1859 # On the NeXT, cc -E runs the code through the compiler's parser,
1860 # not just through cpp.
1861 cat > conftest.
$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1867 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1868 { (eval echo configure
:1869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1869 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1870 if test -z "$ac_err"; then
1874 echo "configure: failed program was:" >&5
1875 cat conftest.
$ac_ext >&5
1877 CPP
="${CC-cc} -E -traditional-cpp"
1878 cat > conftest.
$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1884 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1885 { (eval echo configure
:1886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1886 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1887 if test -z "$ac_err"; then
1891 echo "configure: failed program was:" >&5
1892 cat conftest.
$ac_ext >&5
1894 CPP
="${CC-cc} -nologo -E"
1895 cat > conftest.
$ac_ext <<EOF
1896 #line 1897 "configure"
1897 #include "confdefs.h"
1901 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1902 { (eval echo configure
:1903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1903 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1904 if test -z "$ac_err"; then
1908 echo "configure: failed program was:" >&5
1909 cat conftest.
$ac_ext >&5
1918 ac_cv_prog_CPP
="$CPP"
1920 CPP
="$ac_cv_prog_CPP"
1922 ac_cv_prog_CPP
="$CPP"
1924 echo "$ac_t""$CPP" 1>&6
1926 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1927 echo "configure:1928: checking for ANSI C header files" >&5
1928 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6
1931 cat > conftest.
$ac_ext <<EOF
1932 #line 1933 "configure"
1933 #include "confdefs.h"
1939 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1940 { (eval echo configure
:1941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1941 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1942 if test -z "$ac_err"; then
1944 ac_cv_header_stdc
=yes
1947 echo "configure: failed program was:" >&5
1948 cat conftest.
$ac_ext >&5
1950 ac_cv_header_stdc
=no
1954 if test $ac_cv_header_stdc = yes; then
1955 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1956 cat > conftest.
$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1962 egrep "memchr" >/dev
/null
2>&1; then
1966 ac_cv_header_stdc
=no
1972 if test $ac_cv_header_stdc = yes; then
1973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1974 cat > conftest.
$ac_ext <<EOF
1975 #line 1976 "configure"
1976 #include "confdefs.h"
1979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1980 egrep "free" >/dev
/null
2>&1; then
1984 ac_cv_header_stdc
=no
1990 if test $ac_cv_header_stdc = yes; then
1991 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1992 if test "$cross_compiling" = yes; then
1995 cat > conftest.
$ac_ext <<EOF
1996 #line 1997 "configure"
1997 #include "confdefs.h"
1999 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2000 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2001 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2002 int main () { int i; for (i = 0; i < 256; i++)
2003 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2007 if { (eval echo configure
:2008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2011 echo "configure: failed program was:" >&5
2012 cat conftest.
$ac_ext >&5
2014 ac_cv_header_stdc
=no
2022 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2023 if test $ac_cv_header_stdc = yes; then
2024 cat >> confdefs.h
<<\EOF
2025 #define STDC_HEADERS 1
2031 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2033 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2034 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2035 echo "configure:2036: checking for $ac_hdr that defines DIR" >&5
2036 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2039 cat > conftest.
$ac_ext <<EOF
2040 #line 2041 "configure"
2041 #include "confdefs.h"
2042 #include <sys/types.h>
2048 if { (eval echo configure
:2049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2050 eval "ac_cv_header_dirent_$ac_safe=yes"
2052 echo "configure: failed program was:" >&5
2053 cat conftest.
$ac_ext >&5
2055 eval "ac_cv_header_dirent_$ac_safe=no"
2059 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2060 echo "$ac_t""yes" 1>&6
2061 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2062 cat >> confdefs.h
<<EOF
2063 #define $ac_tr_hdr 1
2065 ac_header_dirent
=$ac_hdr; break
2067 echo "$ac_t""no" 1>&6
2070 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2071 if test $ac_header_dirent = dirent.h
; then
2072 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2073 echo "configure:2074: checking for opendir in -ldir" >&5
2074 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2078 ac_save_LIBS
="$LIBS"
2080 cat > conftest.
$ac_ext <<EOF
2081 #line 2082 "configure"
2082 #include "confdefs.h"
2083 /* Override any gcc2 internal prototype to avoid an error. */
2084 /* We use char because int might match the return type of a gcc2
2085 builtin and then its argument prototype would still apply. */
2092 if { (eval echo configure
:2093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2094 eval "ac_cv_lib_$ac_lib_var=yes"
2096 echo "configure: failed program was:" >&5
2097 cat conftest.
$ac_ext >&5
2099 eval "ac_cv_lib_$ac_lib_var=no"
2102 LIBS
="$ac_save_LIBS"
2105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2106 echo "$ac_t""yes" 1>&6
2109 echo "$ac_t""no" 1>&6
2113 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2114 echo "configure:2115: checking for opendir in -lx" >&5
2115 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2116 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2119 ac_save_LIBS
="$LIBS"
2121 cat > conftest.
$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2124 /* Override any gcc2 internal prototype to avoid an error. */
2125 /* We use char because int might match the return type of a gcc2
2126 builtin and then its argument prototype would still apply. */
2133 if { (eval echo configure
:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2135 eval "ac_cv_lib_$ac_lib_var=yes"
2137 echo "configure: failed program was:" >&5
2138 cat conftest.
$ac_ext >&5
2140 eval "ac_cv_lib_$ac_lib_var=no"
2143 LIBS
="$ac_save_LIBS"
2146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2147 echo "$ac_t""yes" 1>&6
2150 echo "$ac_t""no" 1>&6
2155 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2156 echo "configure:2157: checking whether time.h and sys/time.h may both be included" >&5
2157 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2158 echo $ac_n "(cached) $ac_c" 1>&6
2160 cat > conftest.
$ac_ext <<EOF
2161 #line 2162 "configure"
2162 #include "confdefs.h"
2163 #include <sys/types.h>
2164 #include <sys/time.h>
2170 if { (eval echo configure
:2171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2172 ac_cv_header_time
=yes
2174 echo "configure: failed program was:" >&5
2175 cat conftest.
$ac_ext >&5
2177 ac_cv_header_time
=no
2182 echo "$ac_t""$ac_cv_header_time" 1>&6
2183 if test $ac_cv_header_time = yes; then
2184 cat >> confdefs.h
<<\EOF
2185 #define TIME_WITH_SYS_TIME 1
2190 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2191 echo "configure:2192: checking for sys/wait.h that is POSIX.1 compatible" >&5
2192 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2195 cat > conftest.
$ac_ext <<EOF
2196 #line 2197 "configure"
2197 #include "confdefs.h"
2198 #include <sys/types.h>
2199 #include <sys/wait.h>
2201 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2204 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2209 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2212 if { (eval echo configure
:2213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2214 ac_cv_header_sys_wait_h
=yes
2216 echo "configure: failed program was:" >&5
2217 cat conftest.
$ac_ext >&5
2219 ac_cv_header_sys_wait_h
=no
2224 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2225 if test $ac_cv_header_sys_wait_h = yes; then
2226 cat >> confdefs.h
<<\EOF
2227 #define HAVE_SYS_WAIT_H 1
2232 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2234 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2236 echo "configure:2237: checking for $ac_hdr" >&5
2237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2240 cat > conftest.
$ac_ext <<EOF
2241 #line 2242 "configure"
2242 #include "confdefs.h"
2245 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2246 { (eval echo configure
:2247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2247 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2248 if test -z "$ac_err"; then
2250 eval "ac_cv_header_$ac_safe=yes"
2253 echo "configure: failed program was:" >&5
2254 cat conftest.
$ac_ext >&5
2256 eval "ac_cv_header_$ac_safe=no"
2260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2261 echo "$ac_t""yes" 1>&6
2262 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2263 cat >> confdefs.h
<<EOF
2264 #define $ac_tr_hdr 1
2268 echo "$ac_t""no" 1>&6
2272 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2274 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2275 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2276 echo "configure:2277: checking for $ac_hdr" >&5
2277 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2280 cat > conftest.
$ac_ext <<EOF
2281 #line 2282 "configure"
2282 #include "confdefs.h"
2285 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2286 { (eval echo configure
:2287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2287 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2288 if test -z "$ac_err"; then
2290 eval "ac_cv_header_$ac_safe=yes"
2293 echo "configure: failed program was:" >&5
2294 cat conftest.
$ac_ext >&5
2296 eval "ac_cv_header_$ac_safe=no"
2300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2301 echo "$ac_t""yes" 1>&6
2302 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2303 cat >> confdefs.h
<<EOF
2304 #define $ac_tr_hdr 1
2308 echo "$ac_t""no" 1>&6
2312 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2314 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2315 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2316 echo "configure:2317: checking for $ac_hdr" >&5
2317 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2320 cat > conftest.
$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2325 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2326 { (eval echo configure
:2327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2327 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2328 if test -z "$ac_err"; then
2330 eval "ac_cv_header_$ac_safe=yes"
2333 echo "configure: failed program was:" >&5
2334 cat conftest.
$ac_ext >&5
2336 eval "ac_cv_header_$ac_safe=no"
2340 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2341 echo "$ac_t""yes" 1>&6
2342 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2343 cat >> confdefs.h
<<EOF
2344 #define $ac_tr_hdr 1
2348 echo "$ac_t""no" 1>&6
2352 for ac_hdr
in sys
/param.h ctype.h sys
/un.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/mode.h
2354 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2356 echo "configure:2357: checking for $ac_hdr" >&5
2357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2360 cat > conftest.
$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2365 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2366 { (eval echo configure
:2367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2367 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2368 if test -z "$ac_err"; then
2370 eval "ac_cv_header_$ac_safe=yes"
2373 echo "configure: failed program was:" >&5
2374 cat conftest.
$ac_ext >&5
2376 eval "ac_cv_header_$ac_safe=no"
2380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2381 echo "$ac_t""yes" 1>&6
2382 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2383 cat >> confdefs.h
<<EOF
2384 #define $ac_tr_hdr 1
2388 echo "$ac_t""no" 1>&6
2392 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h string.h
strings.h stdlib.h sys
/socket.h
2394 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2395 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2396 echo "configure:2397: checking for $ac_hdr" >&5
2397 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2400 cat > conftest.
$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2405 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2406 { (eval echo configure
:2407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2407 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2408 if test -z "$ac_err"; then
2410 eval "ac_cv_header_$ac_safe=yes"
2413 echo "configure: failed program was:" >&5
2414 cat conftest.
$ac_ext >&5
2416 eval "ac_cv_header_$ac_safe=no"
2420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2421 echo "$ac_t""yes" 1>&6
2422 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2423 cat >> confdefs.h
<<EOF
2424 #define $ac_tr_hdr 1
2428 echo "$ac_t""no" 1>&6
2432 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2434 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2435 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2436 echo "configure:2437: checking for $ac_hdr" >&5
2437 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 cat > conftest.
$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2445 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2446 { (eval echo configure
:2447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2447 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2448 if test -z "$ac_err"; then
2450 eval "ac_cv_header_$ac_safe=yes"
2453 echo "configure: failed program was:" >&5
2454 cat conftest.
$ac_ext >&5
2456 eval "ac_cv_header_$ac_safe=no"
2460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2461 echo "$ac_t""yes" 1>&6
2462 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2463 cat >> confdefs.h
<<EOF
2464 #define $ac_tr_hdr 1
2468 echo "$ac_t""no" 1>&6
2472 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2474 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2475 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2476 echo "configure:2477: checking for $ac_hdr" >&5
2477 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2480 cat > conftest.
$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2485 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2486 { (eval echo configure
:2487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2487 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2488 if test -z "$ac_err"; then
2490 eval "ac_cv_header_$ac_safe=yes"
2493 echo "configure: failed program was:" >&5
2494 cat conftest.
$ac_ext >&5
2496 eval "ac_cv_header_$ac_safe=no"
2500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2501 echo "$ac_t""yes" 1>&6
2502 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2503 cat >> confdefs.h
<<EOF
2504 #define $ac_tr_hdr 1
2508 echo "$ac_t""no" 1>&6
2513 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2514 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2518 cat > conftest.
$ac_ext <<EOF
2519 #line 2520 "configure"
2520 #include "confdefs.h"
2526 if { (eval echo configure
:2527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2528 ac_cv_header_shadow_h
=yes
2530 echo "configure: failed program was:" >&5
2531 cat conftest.
$ac_ext >&5
2533 ac_cv_header_shadow_h
=no
2536 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2537 cat >> confdefs.h
<<\EOF
2538 #define HAVE_SHADOW_H 1
2544 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2546 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2547 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2548 echo "configure:2549: checking for $ac_hdr" >&5
2549 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2552 cat > conftest.
$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2557 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2558 { (eval echo configure
:2559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2559 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2560 if test -z "$ac_err"; then
2562 eval "ac_cv_header_$ac_safe=yes"
2565 echo "configure: failed program was:" >&5
2566 cat conftest.
$ac_ext >&5
2568 eval "ac_cv_header_$ac_safe=no"
2572 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2573 echo "$ac_t""yes" 1>&6
2574 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2575 cat >> confdefs.h
<<EOF
2576 #define $ac_tr_hdr 1
2580 echo "$ac_t""no" 1>&6
2584 for ac_hdr
in nss.h sys
/security.h security
/pam_appl.h
2586 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2588 echo "configure:2589: checking for $ac_hdr" >&5
2589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2592 cat > conftest.
$ac_ext <<EOF
2593 #line 2594 "configure"
2594 #include "confdefs.h"
2597 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2598 { (eval echo configure
:2599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2599 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2600 if test -z "$ac_err"; then
2602 eval "ac_cv_header_$ac_safe=yes"
2605 echo "configure: failed program was:" >&5
2606 cat conftest.
$ac_ext >&5
2608 eval "ac_cv_header_$ac_safe=no"
2612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2613 echo "$ac_t""yes" 1>&6
2614 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2615 cat >> confdefs.h
<<EOF
2616 #define $ac_tr_hdr 1
2620 echo "$ac_t""no" 1>&6
2624 for ac_hdr
in stropts.h poll.h readline.h
history.h readline
/readline.h
2626 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2628 echo "configure:2629: checking for $ac_hdr" >&5
2629 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2632 cat > conftest.
$ac_ext <<EOF
2633 #line 2634 "configure"
2634 #include "confdefs.h"
2637 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2638 { (eval echo configure
:2639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2639 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2640 if test -z "$ac_err"; then
2642 eval "ac_cv_header_$ac_safe=yes"
2645 echo "configure: failed program was:" >&5
2646 cat conftest.
$ac_ext >&5
2648 eval "ac_cv_header_$ac_safe=no"
2652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2653 echo "$ac_t""yes" 1>&6
2654 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2655 cat >> confdefs.h
<<EOF
2656 #define $ac_tr_hdr 1
2660 echo "$ac_t""no" 1>&6
2664 for ac_hdr
in readline
/history.h sys
/capability.h syscall.h sys
/syscall.h
2666 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2668 echo "configure:2669: checking for $ac_hdr" >&5
2669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2670 echo $ac_n "(cached) $ac_c" 1>&6
2672 cat > conftest.
$ac_ext <<EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2677 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2678 { (eval echo configure
:2679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2679 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2680 if test -z "$ac_err"; then
2682 eval "ac_cv_header_$ac_safe=yes"
2685 echo "configure: failed program was:" >&5
2686 cat conftest.
$ac_ext >&5
2688 eval "ac_cv_header_$ac_safe=no"
2692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2693 echo "$ac_t""yes" 1>&6
2694 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2695 cat >> confdefs.h
<<EOF
2696 #define $ac_tr_hdr 1
2700 echo "$ac_t""no" 1>&6
2704 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2706 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2708 echo "configure:2709: checking for $ac_hdr" >&5
2709 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2710 echo $ac_n "(cached) $ac_c" 1>&6
2712 cat > conftest.
$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2717 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2718 { (eval echo configure
:2719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2719 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2720 if test -z "$ac_err"; then
2722 eval "ac_cv_header_$ac_safe=yes"
2725 echo "configure: failed program was:" >&5
2726 cat conftest.
$ac_ext >&5
2728 eval "ac_cv_header_$ac_safe=no"
2732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2733 echo "$ac_t""yes" 1>&6
2734 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2735 cat >> confdefs.h
<<EOF
2736 #define $ac_tr_hdr 1
2740 echo "$ac_t""no" 1>&6
2745 # For experimental utmp support (lastlog on some BSD-like systems)
2746 for ac_hdr
in utmp.h utmpx.h lastlog.h
2748 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2750 echo "configure:2751: checking for $ac_hdr" >&5
2751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2754 cat > conftest.
$ac_ext <<EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2759 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2760 { (eval echo configure
:2761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2761 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2762 if test -z "$ac_err"; then
2764 eval "ac_cv_header_$ac_safe=yes"
2767 echo "configure: failed program was:" >&5
2768 cat conftest.
$ac_ext >&5
2770 eval "ac_cv_header_$ac_safe=no"
2774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2775 echo "$ac_t""yes" 1>&6
2776 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2777 cat >> confdefs.h
<<EOF
2778 #define $ac_tr_hdr 1
2782 echo "$ac_t""no" 1>&6
2787 # For quotas on Veritas VxFS filesystems
2788 for ac_hdr
in sys
/fs
/vx_quota.h
2790 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2792 echo "configure:2793: checking for $ac_hdr" >&5
2793 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2796 cat > conftest.
$ac_ext <<EOF
2797 #line 2798 "configure"
2798 #include "confdefs.h"
2801 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2802 { (eval echo configure
:2803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2803 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2804 if test -z "$ac_err"; then
2806 eval "ac_cv_header_$ac_safe=yes"
2809 echo "configure: failed program was:" >&5
2810 cat conftest.
$ac_ext >&5
2812 eval "ac_cv_header_$ac_safe=no"
2816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2817 echo "$ac_t""yes" 1>&6
2818 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2819 cat >> confdefs.h
<<EOF
2820 #define $ac_tr_hdr 1
2824 echo "$ac_t""no" 1>&6
2829 echo $ac_n "checking size of int""... $ac_c" 1>&6
2830 echo "configure:2831: checking size of int" >&5
2831 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2832 echo $ac_n "(cached) $ac_c" 1>&6
2834 if test "$cross_compiling" = yes; then
2835 ac_cv_sizeof_int
=cross
2837 cat > conftest.
$ac_ext <<EOF
2838 #line 2839 "configure"
2839 #include "confdefs.h"
2843 FILE *f=fopen("conftestval", "w");
2845 fprintf(f, "%d\n", sizeof(int));
2849 if { (eval echo configure
:2850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2851 ac_cv_sizeof_int
=`cat conftestval`
2853 echo "configure: failed program was:" >&5
2854 cat conftest.
$ac_ext >&5
2862 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2863 cat >> confdefs.h
<<EOF
2864 #define SIZEOF_INT $ac_cv_sizeof_int
2868 echo $ac_n "checking size of long""... $ac_c" 1>&6
2869 echo "configure:2870: checking size of long" >&5
2870 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2873 if test "$cross_compiling" = yes; then
2874 ac_cv_sizeof_long
=cross
2876 cat > conftest.
$ac_ext <<EOF
2877 #line 2878 "configure"
2878 #include "confdefs.h"
2882 FILE *f=fopen("conftestval", "w");
2884 fprintf(f, "%d\n", sizeof(long));
2888 if { (eval echo configure
:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2890 ac_cv_sizeof_long
=`cat conftestval`
2892 echo "configure: failed program was:" >&5
2893 cat conftest.
$ac_ext >&5
2901 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2902 cat >> confdefs.h
<<EOF
2903 #define SIZEOF_LONG $ac_cv_sizeof_long
2907 echo $ac_n "checking size of short""... $ac_c" 1>&6
2908 echo "configure:2909: checking size of short" >&5
2909 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2912 if test "$cross_compiling" = yes; then
2913 ac_cv_sizeof_short
=cross
2915 cat > conftest.
$ac_ext <<EOF
2916 #line 2917 "configure"
2917 #include "confdefs.h"
2921 FILE *f=fopen("conftestval", "w");
2923 fprintf(f, "%d\n", sizeof(short));
2927 if { (eval echo configure
:2928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2929 ac_cv_sizeof_short
=`cat conftestval`
2931 echo "configure: failed program was:" >&5
2932 cat conftest.
$ac_ext >&5
2934 ac_cv_sizeof_short
=0
2940 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2941 cat >> confdefs.h
<<EOF
2942 #define SIZEOF_SHORT $ac_cv_sizeof_short
2947 echo $ac_n "checking for working const""... $ac_c" 1>&6
2948 echo "configure:2949: checking for working const" >&5
2949 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2952 cat > conftest.
$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2958 /* Ultrix mips cc rejects this. */
2959 typedef int charset[2]; const charset x;
2960 /* SunOS 4.1.1 cc rejects this. */
2961 char const *const *ccp;
2963 /* NEC SVR4.0.2 mips cc rejects this. */
2964 struct point {int x, y;};
2965 static struct point const zero = {0,0};
2966 /* AIX XL C 1.02.0.0 rejects this.
2967 It does not let you subtract one const X* pointer from another in an arm
2968 of an if-expression whose if-part is not a constant expression */
2969 const char *g = "string";
2970 ccp = &g + (g ? g-g : 0);
2971 /* HPUX 7.0 cc rejects these. */
2974 ccp = (char const *const *) p;
2975 { /* SCO 3.2v4 cc rejects this. */
2977 char const *s = 0 ? (char *) 0 : (char const *) 0;
2981 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2983 const int *foo = &x[0];
2986 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2987 typedef const int *iptr;
2991 { /* AIX XL C 1.02.0.0 rejects this saying
2992 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2993 struct s { int j; const int *ap[3]; };
2994 struct s *b; b->j = 5;
2996 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3002 if { (eval echo configure
:3003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3006 echo "configure: failed program was:" >&5
3007 cat conftest.
$ac_ext >&5
3014 echo "$ac_t""$ac_cv_c_const" 1>&6
3015 if test $ac_cv_c_const = no
; then
3016 cat >> confdefs.h
<<\EOF
3022 echo $ac_n "checking for inline""... $ac_c" 1>&6
3023 echo "configure:3024: checking for inline" >&5
3024 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3028 for ac_kw
in inline __inline__ __inline
; do
3029 cat > conftest.
$ac_ext <<EOF
3030 #line 3031 "configure"
3031 #include "confdefs.h"
3037 if { (eval echo configure
:3038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3039 ac_cv_c_inline
=$ac_kw; break
3041 echo "configure: failed program was:" >&5
3042 cat conftest.
$ac_ext >&5
3049 echo "$ac_t""$ac_cv_c_inline" 1>&6
3050 case "$ac_cv_c_inline" in
3052 no
) cat >> confdefs.h
<<\EOF
3056 *) cat >> confdefs.h
<<EOF
3057 #define inline $ac_cv_c_inline
3062 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3063 echo "configure:3064: checking whether byte ordering is bigendian" >&5
3064 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3067 ac_cv_c_bigendian
=unknown
3068 # See if sys/param.h defines the BYTE_ORDER macro.
3069 cat > conftest.
$ac_ext <<EOF
3070 #line 3071 "configure"
3071 #include "confdefs.h"
3072 #include <sys/types.h>
3073 #include <sys/param.h>
3076 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3081 if { (eval echo configure
:3082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3083 # It does; now see whether it defined to BIG_ENDIAN or not.
3084 cat > conftest.
$ac_ext <<EOF
3085 #line 3086 "configure"
3086 #include "confdefs.h"
3087 #include <sys/types.h>
3088 #include <sys/param.h>
3091 #if BYTE_ORDER != BIG_ENDIAN
3096 if { (eval echo configure
:3097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3098 ac_cv_c_bigendian
=yes
3100 echo "configure: failed program was:" >&5
3101 cat conftest.
$ac_ext >&5
3103 ac_cv_c_bigendian
=no
3107 echo "configure: failed program was:" >&5
3108 cat conftest.
$ac_ext >&5
3111 if test $ac_cv_c_bigendian = unknown
; then
3112 if test "$cross_compiling" = yes; then
3113 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3115 cat > conftest.
$ac_ext <<EOF
3116 #line 3117 "configure"
3117 #include "confdefs.h"
3119 /* Are we little or big endian? From Harbison&Steele. */
3123 char c[sizeof (long)];
3126 exit (u.c[sizeof (long) - 1] == 1);
3129 if { (eval echo configure
:3130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3131 ac_cv_c_bigendian
=no
3133 echo "configure: failed program was:" >&5
3134 cat conftest.
$ac_ext >&5
3136 ac_cv_c_bigendian
=yes
3144 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3145 if test $ac_cv_c_bigendian = yes; then
3146 cat >> confdefs.h
<<\EOF
3147 #define WORDS_BIGENDIAN 1
3152 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3153 echo "configure:3154: checking whether char is unsigned" >&5
3154 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3157 if test "$GCC" = yes; then
3158 # GCC predefines this symbol on systems where it applies.
3159 cat > conftest.
$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3162 #ifdef __CHAR_UNSIGNED__
3167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3168 egrep "yes" >/dev
/null
2>&1; then
3170 ac_cv_c_char_unsigned
=yes
3173 ac_cv_c_char_unsigned
=no
3178 if test "$cross_compiling" = yes; then
3179 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3181 cat > conftest.
$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3184 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3185 #if !defined(__STDC__) || __STDC__ != 1
3189 volatile char c = 255; exit(c < 0);
3192 if { (eval echo configure
:3193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3194 ac_cv_c_char_unsigned
=yes
3196 echo "configure: failed program was:" >&5
3197 cat conftest.
$ac_ext >&5
3199 ac_cv_c_char_unsigned
=no
3207 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3208 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3209 cat >> confdefs.h
<<\EOF
3210 #define __CHAR_UNSIGNED__ 1
3216 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3217 echo "configure:3218: checking return type of signal handlers" >&5
3218 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3221 cat > conftest.
$ac_ext <<EOF
3222 #line 3223 "configure"
3223 #include "confdefs.h"
3224 #include <sys/types.h>
3230 extern "C" void (*signal (int, void (*)(int)))(int);
3232 void (*signal ()) ();
3239 if { (eval echo configure
:3240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3241 ac_cv_type_signal
=void
3243 echo "configure: failed program was:" >&5
3244 cat conftest.
$ac_ext >&5
3246 ac_cv_type_signal
=int
3251 echo "$ac_t""$ac_cv_type_signal" 1>&6
3252 cat >> confdefs.h
<<EOF
3253 #define RETSIGTYPE $ac_cv_type_signal
3257 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3258 echo "configure:3259: checking for uid_t in sys/types.h" >&5
3259 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3262 cat > conftest.
$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265 #include <sys/types.h>
3267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3268 egrep "uid_t" >/dev
/null
2>&1; then
3270 ac_cv_type_uid_t
=yes
3279 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3280 if test $ac_cv_type_uid_t = no
; then
3281 cat >> confdefs.h
<<\EOF
3285 cat >> confdefs.h
<<\EOF
3291 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3292 echo "configure:3293: checking for mode_t" >&5
3293 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3296 cat > conftest.
$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3299 #include <sys/types.h>
3305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3306 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3308 ac_cv_type_mode_t
=yes
3311 ac_cv_type_mode_t
=no
3316 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3317 if test $ac_cv_type_mode_t = no
; then
3318 cat >> confdefs.h
<<\EOF
3324 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3325 echo "configure:3326: checking for off_t" >&5
3326 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3327 echo $ac_n "(cached) $ac_c" 1>&6
3329 cat > conftest.
$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3332 #include <sys/types.h>
3338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3339 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3341 ac_cv_type_off_t
=yes
3349 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3350 if test $ac_cv_type_off_t = no
; then
3351 cat >> confdefs.h
<<\EOF
3357 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3358 echo "configure:3359: checking for size_t" >&5
3359 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3362 cat > conftest.
$ac_ext <<EOF
3363 #line 3364 "configure"
3364 #include "confdefs.h"
3365 #include <sys/types.h>
3371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3372 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3374 ac_cv_type_size_t
=yes
3377 ac_cv_type_size_t
=no
3382 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3383 if test $ac_cv_type_size_t = no
; then
3384 cat >> confdefs.h
<<\EOF
3385 #define size_t unsigned
3390 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3391 echo "configure:3392: checking for pid_t" >&5
3392 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3395 cat > conftest.
$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3398 #include <sys/types.h>
3404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3405 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3407 ac_cv_type_pid_t
=yes
3415 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3416 if test $ac_cv_type_pid_t = no
; then
3417 cat >> confdefs.h
<<\EOF
3423 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3424 echo "configure:3425: checking for st_rdev in struct stat" >&5
3425 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3426 echo $ac_n "(cached) $ac_c" 1>&6
3428 cat > conftest.
$ac_ext <<EOF
3429 #line 3430 "configure"
3430 #include "confdefs.h"
3431 #include <sys/types.h>
3432 #include <sys/stat.h>
3434 struct stat s; s.st_rdev;
3437 if { (eval echo configure
:3438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3439 ac_cv_struct_st_rdev
=yes
3441 echo "configure: failed program was:" >&5
3442 cat conftest.
$ac_ext >&5
3444 ac_cv_struct_st_rdev
=no
3449 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3450 if test $ac_cv_struct_st_rdev = yes; then
3451 cat >> confdefs.h
<<\EOF
3452 #define HAVE_ST_RDEV 1
3457 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3458 echo "configure:3459: checking for d_off in dirent" >&5
3459 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3462 cat > conftest.
$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3467 #include <sys/types.h>
3470 struct dirent d; d.d_off;
3473 if { (eval echo configure
:3474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3475 ac_cv_dirent_d_off
=yes
3477 echo "configure: failed program was:" >&5
3478 cat conftest.
$ac_ext >&5
3480 ac_cv_dirent_d_off
=no
3485 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3486 if test $ac_cv_dirent_d_off = yes; then
3487 cat >> confdefs.h
<<\EOF
3488 #define HAVE_DIRENT_D_OFF 1
3493 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3494 echo "configure:3495: checking for ino_t" >&5
3495 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3496 echo $ac_n "(cached) $ac_c" 1>&6
3498 cat > conftest.
$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3501 #include <sys/types.h>
3507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3508 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3510 ac_cv_type_ino_t
=yes
3518 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3519 if test $ac_cv_type_ino_t = no
; then
3520 cat >> confdefs.h
<<\EOF
3521 #define ino_t unsigned
3526 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3527 echo "configure:3528: checking for loff_t" >&5
3528 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3529 echo $ac_n "(cached) $ac_c" 1>&6
3531 cat > conftest.
$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 #include <sys/types.h>
3540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3541 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3543 ac_cv_type_loff_t
=yes
3546 ac_cv_type_loff_t
=no
3551 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3552 if test $ac_cv_type_loff_t = no
; then
3553 cat >> confdefs.h
<<\EOF
3554 #define loff_t off_t
3559 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3560 echo "configure:3561: checking for offset_t" >&5
3561 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3562 echo $ac_n "(cached) $ac_c" 1>&6
3564 cat > conftest.
$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3567 #include <sys/types.h>
3573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3574 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3576 ac_cv_type_offset_t
=yes
3579 ac_cv_type_offset_t
=no
3584 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3585 if test $ac_cv_type_offset_t = no
; then
3586 cat >> confdefs.h
<<\EOF
3587 #define offset_t loff_t
3592 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3593 echo "configure:3594: checking for ssize_t" >&5
3594 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3597 cat > conftest.
$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 #include <sys/types.h>
3606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3607 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3609 ac_cv_type_ssize_t
=yes
3612 ac_cv_type_ssize_t
=no
3617 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3618 if test $ac_cv_type_ssize_t = no
; then
3619 cat >> confdefs.h
<<\EOF
3625 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3626 echo "configure:3627: checking for wchar_t" >&5
3627 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3630 cat > conftest.
$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 #include <sys/types.h>
3639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3642 ac_cv_type_wchar_t
=yes
3645 ac_cv_type_wchar_t
=no
3650 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3651 if test $ac_cv_type_wchar_t = no
; then
3652 cat >> confdefs.h
<<\EOF
3653 #define wchar_t unsigned short
3659 # we need libcups for CUPS support...
3660 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3661 echo "configure:3662: checking for httpConnect in -lcups" >&5
3662 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3663 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3664 echo $ac_n "(cached) $ac_c" 1>&6
3666 ac_save_LIBS
="$LIBS"
3668 cat > conftest.
$ac_ext <<EOF
3669 #line 3670 "configure"
3670 #include "confdefs.h"
3671 /* Override any gcc2 internal prototype to avoid an error. */
3672 /* We use char because int might match the return type of a gcc2
3673 builtin and then its argument prototype would still apply. */
3680 if { (eval echo configure
:3681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3682 eval "ac_cv_lib_$ac_lib_var=yes"
3684 echo "configure: failed program was:" >&5
3685 cat conftest.
$ac_ext >&5
3687 eval "ac_cv_lib_$ac_lib_var=no"
3690 LIBS
="$ac_save_LIBS"
3693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3694 echo "$ac_t""yes" 1>&6
3695 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3696 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3697 cat >> confdefs.h
<<EOF
3698 #define $ac_tr_lib 1
3704 echo "$ac_t""no" 1>&6
3708 # we need libdl for PAM and the new VFS code
3709 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3710 echo "configure:3711: checking for dlopen in -ldl" >&5
3711 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3712 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3713 echo $ac_n "(cached) $ac_c" 1>&6
3715 ac_save_LIBS
="$LIBS"
3717 cat > conftest.
$ac_ext <<EOF
3718 #line 3719 "configure"
3719 #include "confdefs.h"
3720 /* Override any gcc2 internal prototype to avoid an error. */
3721 /* We use char because int might match the return type of a gcc2
3722 builtin and then its argument prototype would still apply. */
3729 if { (eval echo configure
:3730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3731 eval "ac_cv_lib_$ac_lib_var=yes"
3733 echo "configure: failed program was:" >&5
3734 cat conftest.
$ac_ext >&5
3736 eval "ac_cv_lib_$ac_lib_var=no"
3739 LIBS
="$ac_save_LIBS"
3742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3743 echo "$ac_t""yes" 1>&6
3745 cat >> confdefs.h
<<\EOF
3746 #define HAVE_LIBDL 1
3750 echo "$ac_t""no" 1>&6
3754 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3755 echo "configure:3756: checking for sig_atomic_t type" >&5
3756 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3757 echo $ac_n "(cached) $ac_c" 1>&6
3760 cat > conftest.
$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3764 #include <sys/types.h>
3774 if { (eval echo configure
:3775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3776 samba_cv_sig_atomic_t
=yes
3778 echo "configure: failed program was:" >&5
3779 cat conftest.
$ac_ext >&5
3781 samba_cv_sig_atomic_t
=no
3786 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3787 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3788 cat >> confdefs.h
<<\EOF
3789 #define HAVE_SIG_ATOMIC_T_TYPE 1
3794 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3795 echo "configure:3796: checking for errno in errno.h" >&5
3796 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3797 echo $ac_n "(cached) $ac_c" 1>&6
3800 cat > conftest.
$ac_ext <<EOF
3801 #line 3802 "configure"
3802 #include "confdefs.h"
3808 if { (eval echo configure
:3809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3812 echo "configure: failed program was:" >&5
3813 cat conftest.
$ac_ext >&5
3815 samba_cv_have_errno
=no
3820 echo "$ac_t""$samba_cv_errno" 1>&6
3821 if test x
"$samba_cv_errno" = x
"yes"; then
3822 cat >> confdefs.h
<<\EOF
3823 #define HAVE_ERRNO_DECL 1
3828 # stupid glibc has the functions but no declaration. grrrr.
3829 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3830 echo "configure:3831: checking for setresuid declaration" >&5
3831 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3835 cat > conftest.
$ac_ext <<EOF
3836 #line 3837 "configure"
3837 #include "confdefs.h"
3840 int i = (int)setresuid
3843 if { (eval echo configure
:3844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3845 samba_cv_have_setresuid_decl
=yes
3847 echo "configure: failed program was:" >&5
3848 cat conftest.
$ac_ext >&5
3850 samba_cv_have_setresuid_decl
=no
3855 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3856 if test x
"$samba_cv_have_setresuid_decl" = x
"yes"; then
3857 cat >> confdefs.h
<<\EOF
3858 #define HAVE_SETRESUID_DECL 1
3863 # stupid glibc has the functions but no declaration. grrrr.
3864 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3865 echo "configure:3866: checking for setresgid declaration" >&5
3866 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3870 cat > conftest.
$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3875 int i = (int)setresgid
3878 if { (eval echo configure
:3879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3880 samba_cv_have_setresgid_decl
=yes
3882 echo "configure: failed program was:" >&5
3883 cat conftest.
$ac_ext >&5
3885 samba_cv_have_setresgid_decl
=no
3890 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
3891 if test x
"$samba_cv_have_setresgid_decl" = x
"yes"; then
3892 cat >> confdefs.h
<<\EOF
3893 #define HAVE_SETRESGID_DECL 1
3898 # and glibc has setresuid under linux but the function does
3899 # nothing until kernel 2.1.44! very dumb.
3900 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3901 echo "configure:3902: checking for real setresuid" >&5
3902 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3903 echo $ac_n "(cached) $ac_c" 1>&6
3906 if test "$cross_compiling" = yes; then
3907 samba_cv_have_setresuid
=cross
3909 cat > conftest.
$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3913 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3915 if { (eval echo configure
:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3917 samba_cv_have_setresuid
=yes
3919 echo "configure: failed program was:" >&5
3920 cat conftest.
$ac_ext >&5
3922 samba_cv_have_setresuid
=no
3929 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3930 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
3931 cat >> confdefs.h
<<\EOF
3932 #define HAVE_SETRESUID 1
3937 # Do the same check for setresguid...
3939 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3940 echo "configure:3941: checking for real setresgid" >&5
3941 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3942 echo $ac_n "(cached) $ac_c" 1>&6
3945 if test "$cross_compiling" = yes; then
3946 samba_cv_have_setresgid
=cross
3948 cat > conftest.
$ac_ext <<EOF
3949 #line 3950 "configure"
3950 #include "confdefs.h"
3953 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3955 if { (eval echo configure
:3956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3957 samba_cv_have_setresgid
=yes
3959 echo "configure: failed program was:" >&5
3960 cat conftest.
$ac_ext >&5
3962 samba_cv_have_setresgid
=no
3969 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3970 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
3971 cat >> confdefs.h
<<\EOF
3972 #define HAVE_SETRESGID 1
3977 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3978 echo "configure:3979: checking for 8-bit clean memcmp" >&5
3979 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3980 echo $ac_n "(cached) $ac_c" 1>&6
3982 if test "$cross_compiling" = yes; then
3983 ac_cv_func_memcmp_clean
=no
3985 cat > conftest.
$ac_ext <<EOF
3986 #line 3987 "configure"
3987 #include "confdefs.h"
3991 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3992 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3996 if { (eval echo configure
:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3998 ac_cv_func_memcmp_clean
=yes
4000 echo "configure: failed program was:" >&5
4001 cat conftest.
$ac_ext >&5
4003 ac_cv_func_memcmp_clean
=no
4010 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4011 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4014 ###############################################
4015 # test for where we get crypt() from
4016 for ac_func
in crypt
4018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4019 echo "configure:4020: checking for $ac_func" >&5
4020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4021 echo $ac_n "(cached) $ac_c" 1>&6
4023 cat > conftest.
$ac_ext <<EOF
4024 #line 4025 "configure"
4025 #include "confdefs.h"
4026 /* System header to define __stub macros and hopefully few prototypes,
4027 which can conflict with char $ac_func(); below. */
4029 /* Override any gcc2 internal prototype to avoid an error. */
4030 /* We use char because int might match the return type of a gcc2
4031 builtin and then its argument prototype would still apply. */
4036 /* The GNU C library defines this for functions which it implements
4037 to always fail with ENOSYS. Some functions are actually named
4038 something starting with __ and the normal name is an alias. */
4039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4047 if { (eval echo configure
:4048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4049 eval "ac_cv_func_$ac_func=yes"
4051 echo "configure: failed program was:" >&5
4052 cat conftest.
$ac_ext >&5
4054 eval "ac_cv_func_$ac_func=no"
4059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4060 echo "$ac_t""yes" 1>&6
4061 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4062 cat >> confdefs.h
<<EOF
4063 #define $ac_tr_func 1
4067 echo "$ac_t""no" 1>&6
4071 if test x
"$ac_cv_func_crypt" = x
"no"; then
4072 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4073 echo "configure:4074: checking for crypt in -lcrypt" >&5
4074 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4076 echo $ac_n "(cached) $ac_c" 1>&6
4078 ac_save_LIBS
="$LIBS"
4079 LIBS
="-lcrypt $LIBS"
4080 cat > conftest.
$ac_ext <<EOF
4081 #line 4082 "configure"
4082 #include "confdefs.h"
4083 /* Override any gcc2 internal prototype to avoid an error. */
4084 /* We use char because int might match the return type of a gcc2
4085 builtin and then its argument prototype would still apply. */
4092 if { (eval echo configure
:4093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4094 eval "ac_cv_lib_$ac_lib_var=yes"
4096 echo "configure: failed program was:" >&5
4097 cat conftest.
$ac_ext >&5
4099 eval "ac_cv_lib_$ac_lib_var=no"
4102 LIBS
="$ac_save_LIBS"
4105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4106 echo "$ac_t""yes" 1>&6
4107 LIBS
="$LIBS -lcrypt";
4108 cat >> confdefs.h
<<\EOF
4109 #define HAVE_CRYPT 1
4113 echo "$ac_t""no" 1>&6
4119 ###############################################
4120 # test for where we get readline() from
4121 if test "$ac_cv_header_readline_h" = "yes" ||
4122 test "$ac_cv_header_readline_readline_h" = "yes"; then
4123 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
4124 echo "configure:4125: checking for readline in -lreadline" >&5
4125 ac_lib_var
=`echo readline'_'readline | sed 'y%./+-%__p_%'`
4126 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4127 echo $ac_n "(cached) $ac_c" 1>&6
4129 ac_save_LIBS
="$LIBS"
4130 LIBS
="-lreadline $LIBS"
4131 cat > conftest.
$ac_ext <<EOF
4132 #line 4133 "configure"
4133 #include "confdefs.h"
4134 /* Override any gcc2 internal prototype to avoid an error. */
4135 /* We use char because int might match the return type of a gcc2
4136 builtin and then its argument prototype would still apply. */
4143 if { (eval echo configure
:4144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4145 eval "ac_cv_lib_$ac_lib_var=yes"
4147 echo "configure: failed program was:" >&5
4148 cat conftest.
$ac_ext >&5
4150 eval "ac_cv_lib_$ac_lib_var=no"
4153 LIBS
="$ac_save_LIBS"
4156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4157 echo "$ac_t""yes" 1>&6
4158 ac_tr_lib
=HAVE_LIB
`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4159 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4160 cat >> confdefs.h
<<EOF
4161 #define $ac_tr_lib 1
4164 LIBS
="-lreadline $LIBS"
4167 echo "$ac_t""no" 1>&6
4173 # The following test taken from the cvs sources
4174 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4175 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4176 # libsocket.so which has a bad implementation of gethostbyname (it
4177 # only looks in /etc/hosts), so we only look for -lsocket if we need
4179 for ac_func
in connect
4181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4182 echo "configure:4183: checking for $ac_func" >&5
4183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4184 echo $ac_n "(cached) $ac_c" 1>&6
4186 cat > conftest.
$ac_ext <<EOF
4187 #line 4188 "configure"
4188 #include "confdefs.h"
4189 /* System header to define __stub macros and hopefully few prototypes,
4190 which can conflict with char $ac_func(); below. */
4192 /* Override any gcc2 internal prototype to avoid an error. */
4193 /* We use char because int might match the return type of a gcc2
4194 builtin and then its argument prototype would still apply. */
4199 /* The GNU C library defines this for functions which it implements
4200 to always fail with ENOSYS. Some functions are actually named
4201 something starting with __ and the normal name is an alias. */
4202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4210 if { (eval echo configure
:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4212 eval "ac_cv_func_$ac_func=yes"
4214 echo "configure: failed program was:" >&5
4215 cat conftest.
$ac_ext >&5
4217 eval "ac_cv_func_$ac_func=no"
4222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4223 echo "$ac_t""yes" 1>&6
4224 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4225 cat >> confdefs.h
<<EOF
4226 #define $ac_tr_func 1
4230 echo "$ac_t""no" 1>&6
4234 if test x
"$ac_cv_func_connect" = x
"no"; then
4237 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4238 echo "configure:4239: checking for printf in -lnsl_s" >&5
4239 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4241 echo $ac_n "(cached) $ac_c" 1>&6
4243 ac_save_LIBS
="$LIBS"
4244 LIBS
="-lnsl_s $LIBS"
4245 cat > conftest.
$ac_ext <<EOF
4246 #line 4247 "configure"
4247 #include "confdefs.h"
4248 /* Override any gcc2 internal prototype to avoid an error. */
4249 /* We use char because int might match the return type of a gcc2
4250 builtin and then its argument prototype would still apply. */
4257 if { (eval echo configure
:4258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4259 eval "ac_cv_lib_$ac_lib_var=yes"
4261 echo "configure: failed program was:" >&5
4262 cat conftest.
$ac_ext >&5
4264 eval "ac_cv_lib_$ac_lib_var=no"
4267 LIBS
="$ac_save_LIBS"
4270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4271 echo "$ac_t""yes" 1>&6
4272 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4273 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4274 cat >> confdefs.h
<<EOF
4275 #define $ac_tr_lib 1
4278 LIBS
="-lnsl_s $LIBS"
4281 echo "$ac_t""no" 1>&6
4287 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4288 echo "configure:4289: checking for printf in -lnsl" >&5
4289 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4291 echo $ac_n "(cached) $ac_c" 1>&6
4293 ac_save_LIBS
="$LIBS"
4295 cat > conftest.
$ac_ext <<EOF
4296 #line 4297 "configure"
4297 #include "confdefs.h"
4298 /* Override any gcc2 internal prototype to avoid an error. */
4299 /* We use char because int might match the return type of a gcc2
4300 builtin and then its argument prototype would still apply. */
4307 if { (eval echo configure
:4308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4309 eval "ac_cv_lib_$ac_lib_var=yes"
4311 echo "configure: failed program was:" >&5
4312 cat conftest.
$ac_ext >&5
4314 eval "ac_cv_lib_$ac_lib_var=no"
4317 LIBS
="$ac_save_LIBS"
4320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4321 echo "$ac_t""yes" 1>&6
4322 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4323 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4324 cat >> confdefs.h
<<EOF
4325 #define $ac_tr_lib 1
4331 echo "$ac_t""no" 1>&6
4337 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4338 echo "configure:4339: checking for connect in -lsocket" >&5
4339 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4340 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4341 echo $ac_n "(cached) $ac_c" 1>&6
4343 ac_save_LIBS
="$LIBS"
4344 LIBS
="-lsocket $LIBS"
4345 cat > conftest.
$ac_ext <<EOF
4346 #line 4347 "configure"
4347 #include "confdefs.h"
4348 /* Override any gcc2 internal prototype to avoid an error. */
4349 /* We use char because int might match the return type of a gcc2
4350 builtin and then its argument prototype would still apply. */
4357 if { (eval echo configure
:4358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4359 eval "ac_cv_lib_$ac_lib_var=yes"
4361 echo "configure: failed program was:" >&5
4362 cat conftest.
$ac_ext >&5
4364 eval "ac_cv_lib_$ac_lib_var=no"
4367 LIBS
="$ac_save_LIBS"
4370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4371 echo "$ac_t""yes" 1>&6
4372 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4373 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4374 cat >> confdefs.h
<<EOF
4375 #define $ac_tr_lib 1
4378 LIBS
="-lsocket $LIBS"
4381 echo "$ac_t""no" 1>&6
4387 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4388 echo "configure:4389: checking for connect in -linet" >&5
4389 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4391 echo $ac_n "(cached) $ac_c" 1>&6
4393 ac_save_LIBS
="$LIBS"
4395 cat > conftest.
$ac_ext <<EOF
4396 #line 4397 "configure"
4397 #include "confdefs.h"
4398 /* Override any gcc2 internal prototype to avoid an error. */
4399 /* We use char because int might match the return type of a gcc2
4400 builtin and then its argument prototype would still apply. */
4407 if { (eval echo configure
:4408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4409 eval "ac_cv_lib_$ac_lib_var=yes"
4411 echo "configure: failed program was:" >&5
4412 cat conftest.
$ac_ext >&5
4414 eval "ac_cv_lib_$ac_lib_var=no"
4417 LIBS
="$ac_save_LIBS"
4420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4421 echo "$ac_t""yes" 1>&6
4422 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4423 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4424 cat >> confdefs.h
<<EOF
4425 #define $ac_tr_lib 1
4431 echo "$ac_t""no" 1>&6
4435 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4436 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4437 # ac_cv_func_connect=yes
4438 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4439 cat >> confdefs.h
<<\EOF
4440 #define HAVE_CONNECT 1
4446 ###############################################
4447 # test for where we get get_yp_default_domain() from
4448 for ac_func
in yp_get_default_domain
4450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4451 echo "configure:4452: checking for $ac_func" >&5
4452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4453 echo $ac_n "(cached) $ac_c" 1>&6
4455 cat > conftest.
$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4458 /* System header to define __stub macros and hopefully few prototypes,
4459 which can conflict with char $ac_func(); below. */
4461 /* Override any gcc2 internal prototype to avoid an error. */
4462 /* We use char because int might match the return type of a gcc2
4463 builtin and then its argument prototype would still apply. */
4468 /* The GNU C library defines this for functions which it implements
4469 to always fail with ENOSYS. Some functions are actually named
4470 something starting with __ and the normal name is an alias. */
4471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4479 if { (eval echo configure
:4480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4481 eval "ac_cv_func_$ac_func=yes"
4483 echo "configure: failed program was:" >&5
4484 cat conftest.
$ac_ext >&5
4486 eval "ac_cv_func_$ac_func=no"
4491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4492 echo "$ac_t""yes" 1>&6
4493 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4494 cat >> confdefs.h
<<EOF
4495 #define $ac_tr_func 1
4499 echo "$ac_t""no" 1>&6
4503 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
4504 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4505 echo "configure:4506: checking for yp_get_default_domain in -lnsl" >&5
4506 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4507 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4508 echo $ac_n "(cached) $ac_c" 1>&6
4510 ac_save_LIBS
="$LIBS"
4512 cat > conftest.
$ac_ext <<EOF
4513 #line 4514 "configure"
4514 #include "confdefs.h"
4515 /* Override any gcc2 internal prototype to avoid an error. */
4516 /* We use char because int might match the return type of a gcc2
4517 builtin and then its argument prototype would still apply. */
4518 char yp_get_default_domain();
4521 yp_get_default_domain()
4524 if { (eval echo configure
:4525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4526 eval "ac_cv_lib_$ac_lib_var=yes"
4528 echo "configure: failed program was:" >&5
4529 cat conftest.
$ac_ext >&5
4531 eval "ac_cv_lib_$ac_lib_var=no"
4534 LIBS
="$ac_save_LIBS"
4537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4538 echo "$ac_t""yes" 1>&6
4540 cat >> confdefs.h
<<\EOF
4541 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4545 echo "$ac_t""no" 1>&6
4550 # Check if we have execl, if not we need to compile smbrun.
4551 for ac_func
in execl
4553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4554 echo "configure:4555: checking for $ac_func" >&5
4555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4558 cat > conftest.
$ac_ext <<EOF
4559 #line 4560 "configure"
4560 #include "confdefs.h"
4561 /* System header to define __stub macros and hopefully few prototypes,
4562 which can conflict with char $ac_func(); below. */
4564 /* Override any gcc2 internal prototype to avoid an error. */
4565 /* We use char because int might match the return type of a gcc2
4566 builtin and then its argument prototype would still apply. */
4571 /* The GNU C library defines this for functions which it implements
4572 to always fail with ENOSYS. Some functions are actually named
4573 something starting with __ and the normal name is an alias. */
4574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4582 if { (eval echo configure
:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4584 eval "ac_cv_func_$ac_func=yes"
4586 echo "configure: failed program was:" >&5
4587 cat conftest.
$ac_ext >&5
4589 eval "ac_cv_func_$ac_func=no"
4594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4595 echo "$ac_t""yes" 1>&6
4596 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4597 cat >> confdefs.h
<<EOF
4598 #define $ac_tr_func 1
4602 echo "$ac_t""no" 1>&6
4606 if test x
"$ac_cv_func_execl" = x
"no"; then
4607 RUNPROG
="bin/smbrun"
4612 for ac_func
in waitpid getcwd strdup strtoul strerror chown
chmod chroot
4614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4615 echo "configure:4616: checking for $ac_func" >&5
4616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4617 echo $ac_n "(cached) $ac_c" 1>&6
4619 cat > conftest.
$ac_ext <<EOF
4620 #line 4621 "configure"
4621 #include "confdefs.h"
4622 /* System header to define __stub macros and hopefully few prototypes,
4623 which can conflict with char $ac_func(); below. */
4625 /* Override any gcc2 internal prototype to avoid an error. */
4626 /* We use char because int might match the return type of a gcc2
4627 builtin and then its argument prototype would still apply. */
4632 /* The GNU C library defines this for functions which it implements
4633 to always fail with ENOSYS. Some functions are actually named
4634 something starting with __ and the normal name is an alias. */
4635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4643 if { (eval echo configure
:4644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4645 eval "ac_cv_func_$ac_func=yes"
4647 echo "configure: failed program was:" >&5
4648 cat conftest.
$ac_ext >&5
4650 eval "ac_cv_func_$ac_func=no"
4655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4656 echo "$ac_t""yes" 1>&6
4657 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4658 cat >> confdefs.h
<<EOF
4659 #define $ac_tr_func 1
4663 echo "$ac_t""no" 1>&6
4667 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
4669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4670 echo "configure:4671: checking for $ac_func" >&5
4671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4674 cat > conftest.
$ac_ext <<EOF
4675 #line 4676 "configure"
4676 #include "confdefs.h"
4677 /* System header to define __stub macros and hopefully few prototypes,
4678 which can conflict with char $ac_func(); below. */
4680 /* Override any gcc2 internal prototype to avoid an error. */
4681 /* We use char because int might match the return type of a gcc2
4682 builtin and then its argument prototype would still apply. */
4687 /* The GNU C library defines this for functions which it implements
4688 to always fail with ENOSYS. Some functions are actually named
4689 something starting with __ and the normal name is an alias. */
4690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4698 if { (eval echo configure
:4699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4700 eval "ac_cv_func_$ac_func=yes"
4702 echo "configure: failed program was:" >&5
4703 cat conftest.
$ac_ext >&5
4705 eval "ac_cv_func_$ac_func=no"
4710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4711 echo "$ac_t""yes" 1>&6
4712 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4713 cat >> confdefs.h
<<EOF
4714 #define $ac_tr_func 1
4718 echo "$ac_t""no" 1>&6
4722 for ac_func
in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4725 echo "configure:4726: checking for $ac_func" >&5
4726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4727 echo $ac_n "(cached) $ac_c" 1>&6
4729 cat > conftest.
$ac_ext <<EOF
4730 #line 4731 "configure"
4731 #include "confdefs.h"
4732 /* System header to define __stub macros and hopefully few prototypes,
4733 which can conflict with char $ac_func(); below. */
4735 /* Override any gcc2 internal prototype to avoid an error. */
4736 /* We use char because int might match the return type of a gcc2
4737 builtin and then its argument prototype would still apply. */
4742 /* The GNU C library defines this for functions which it implements
4743 to always fail with ENOSYS. Some functions are actually named
4744 something starting with __ and the normal name is an alias. */
4745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4753 if { (eval echo configure
:4754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4755 eval "ac_cv_func_$ac_func=yes"
4757 echo "configure: failed program was:" >&5
4758 cat conftest.
$ac_ext >&5
4760 eval "ac_cv_func_$ac_func=no"
4765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4766 echo "$ac_t""yes" 1>&6
4767 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4768 cat >> confdefs.h
<<EOF
4769 #define $ac_tr_func 1
4773 echo "$ac_t""no" 1>&6
4777 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4780 echo "configure:4781: checking for $ac_func" >&5
4781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4782 echo $ac_n "(cached) $ac_c" 1>&6
4784 cat > conftest.
$ac_ext <<EOF
4785 #line 4786 "configure"
4786 #include "confdefs.h"
4787 /* System header to define __stub macros and hopefully few prototypes,
4788 which can conflict with char $ac_func(); below. */
4790 /* Override any gcc2 internal prototype to avoid an error. */
4791 /* We use char because int might match the return type of a gcc2
4792 builtin and then its argument prototype would still apply. */
4797 /* The GNU C library defines this for functions which it implements
4798 to always fail with ENOSYS. Some functions are actually named
4799 something starting with __ and the normal name is an alias. */
4800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4808 if { (eval echo configure
:4809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4810 eval "ac_cv_func_$ac_func=yes"
4812 echo "configure: failed program was:" >&5
4813 cat conftest.
$ac_ext >&5
4815 eval "ac_cv_func_$ac_func=no"
4820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4821 echo "$ac_t""yes" 1>&6
4822 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4823 cat >> confdefs.h
<<EOF
4824 #define $ac_tr_func 1
4828 echo "$ac_t""no" 1>&6
4832 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf
4834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4835 echo "configure:4836: checking for $ac_func" >&5
4836 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6
4839 cat > conftest.
$ac_ext <<EOF
4840 #line 4841 "configure"
4841 #include "confdefs.h"
4842 /* System header to define __stub macros and hopefully few prototypes,
4843 which can conflict with char $ac_func(); below. */
4845 /* Override any gcc2 internal prototype to avoid an error. */
4846 /* We use char because int might match the return type of a gcc2
4847 builtin and then its argument prototype would still apply. */
4852 /* The GNU C library defines this for functions which it implements
4853 to always fail with ENOSYS. Some functions are actually named
4854 something starting with __ and the normal name is an alias. */
4855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4863 if { (eval echo configure
:4864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4865 eval "ac_cv_func_$ac_func=yes"
4867 echo "configure: failed program was:" >&5
4868 cat conftest.
$ac_ext >&5
4870 eval "ac_cv_func_$ac_func=no"
4875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4876 echo "$ac_t""yes" 1>&6
4877 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4878 cat >> confdefs.h
<<EOF
4879 #define $ac_tr_func 1
4883 echo "$ac_t""no" 1>&6
4887 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
4889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4890 echo "configure:4891: checking for $ac_func" >&5
4891 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4892 echo $ac_n "(cached) $ac_c" 1>&6
4894 cat > conftest.
$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4897 /* System header to define __stub macros and hopefully few prototypes,
4898 which can conflict with char $ac_func(); below. */
4900 /* Override any gcc2 internal prototype to avoid an error. */
4901 /* We use char because int might match the return type of a gcc2
4902 builtin and then its argument prototype would still apply. */
4907 /* The GNU C library defines this for functions which it implements
4908 to always fail with ENOSYS. Some functions are actually named
4909 something starting with __ and the normal name is an alias. */
4910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4918 if { (eval echo configure
:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4920 eval "ac_cv_func_$ac_func=yes"
4922 echo "configure: failed program was:" >&5
4923 cat conftest.
$ac_ext >&5
4925 eval "ac_cv_func_$ac_func=no"
4930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4931 echo "$ac_t""yes" 1>&6
4932 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4933 cat >> confdefs.h
<<EOF
4934 #define $ac_tr_func 1
4938 echo "$ac_t""no" 1>&6
4942 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
4944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4945 echo "configure:4946: checking for $ac_func" >&5
4946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4947 echo $ac_n "(cached) $ac_c" 1>&6
4949 cat > conftest.
$ac_ext <<EOF
4950 #line 4951 "configure"
4951 #include "confdefs.h"
4952 /* System header to define __stub macros and hopefully few prototypes,
4953 which can conflict with char $ac_func(); below. */
4955 /* Override any gcc2 internal prototype to avoid an error. */
4956 /* We use char because int might match the return type of a gcc2
4957 builtin and then its argument prototype would still apply. */
4962 /* The GNU C library defines this for functions which it implements
4963 to always fail with ENOSYS. Some functions are actually named
4964 something starting with __ and the normal name is an alias. */
4965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4973 if { (eval echo configure
:4974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4975 eval "ac_cv_func_$ac_func=yes"
4977 echo "configure: failed program was:" >&5
4978 cat conftest.
$ac_ext >&5
4980 eval "ac_cv_func_$ac_func=no"
4985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4986 echo "$ac_t""yes" 1>&6
4987 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4988 cat >> confdefs.h
<<EOF
4989 #define $ac_tr_func 1
4993 echo "$ac_t""no" 1>&6
4997 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam
4999 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5000 echo "configure:5001: checking for $ac_func" >&5
5001 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5002 echo $ac_n "(cached) $ac_c" 1>&6
5004 cat > conftest.
$ac_ext <<EOF
5005 #line 5006 "configure"
5006 #include "confdefs.h"
5007 /* System header to define __stub macros and hopefully few prototypes,
5008 which can conflict with char $ac_func(); below. */
5010 /* Override any gcc2 internal prototype to avoid an error. */
5011 /* We use char because int might match the return type of a gcc2
5012 builtin and then its argument prototype would still apply. */
5017 /* The GNU C library defines this for functions which it implements
5018 to always fail with ENOSYS. Some functions are actually named
5019 something starting with __ and the normal name is an alias. */
5020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5028 if { (eval echo configure
:5029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5030 eval "ac_cv_func_$ac_func=yes"
5032 echo "configure: failed program was:" >&5
5033 cat conftest.
$ac_ext >&5
5035 eval "ac_cv_func_$ac_func=no"
5040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5041 echo "$ac_t""yes" 1>&6
5042 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5043 cat >> confdefs.h
<<EOF
5044 #define $ac_tr_func 1
5048 echo "$ac_t""no" 1>&6
5052 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl
5054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5055 echo "configure:5056: checking for $ac_func" >&5
5056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5057 echo $ac_n "(cached) $ac_c" 1>&6
5059 cat > conftest.
$ac_ext <<EOF
5060 #line 5061 "configure"
5061 #include "confdefs.h"
5062 /* System header to define __stub macros and hopefully few prototypes,
5063 which can conflict with char $ac_func(); below. */
5065 /* Override any gcc2 internal prototype to avoid an error. */
5066 /* We use char because int might match the return type of a gcc2
5067 builtin and then its argument prototype would still apply. */
5072 /* The GNU C library defines this for functions which it implements
5073 to always fail with ENOSYS. Some functions are actually named
5074 something starting with __ and the normal name is an alias. */
5075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5083 if { (eval echo configure
:5084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5085 eval "ac_cv_func_$ac_func=yes"
5087 echo "configure: failed program was:" >&5
5088 cat conftest.
$ac_ext >&5
5090 eval "ac_cv_func_$ac_func=no"
5095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5096 echo "$ac_t""yes" 1>&6
5097 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5098 cat >> confdefs.h
<<EOF
5099 #define $ac_tr_func 1
5103 echo "$ac_t""no" 1>&6
5108 # syscall() is needed for smbwrapper.
5109 for ac_func
in syscall
5111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5112 echo "configure:5113: checking for $ac_func" >&5
5113 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5114 echo $ac_n "(cached) $ac_c" 1>&6
5116 cat > conftest.
$ac_ext <<EOF
5117 #line 5118 "configure"
5118 #include "confdefs.h"
5119 /* System header to define __stub macros and hopefully few prototypes,
5120 which can conflict with char $ac_func(); below. */
5122 /* Override any gcc2 internal prototype to avoid an error. */
5123 /* We use char because int might match the return type of a gcc2
5124 builtin and then its argument prototype would still apply. */
5129 /* The GNU C library defines this for functions which it implements
5130 to always fail with ENOSYS. Some functions are actually named
5131 something starting with __ and the normal name is an alias. */
5132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5140 if { (eval echo configure
:5141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5142 eval "ac_cv_func_$ac_func=yes"
5144 echo "configure: failed program was:" >&5
5145 cat conftest.
$ac_ext >&5
5147 eval "ac_cv_func_$ac_func=no"
5152 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5153 echo "$ac_t""yes" 1>&6
5154 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5155 cat >> confdefs.h
<<EOF
5156 #define $ac_tr_func 1
5160 echo "$ac_t""no" 1>&6
5165 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5168 echo "configure:5169: checking for $ac_func" >&5
5169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5170 echo $ac_n "(cached) $ac_c" 1>&6
5172 cat > conftest.
$ac_ext <<EOF
5173 #line 5174 "configure"
5174 #include "confdefs.h"
5175 /* System header to define __stub macros and hopefully few prototypes,
5176 which can conflict with char $ac_func(); below. */
5178 /* Override any gcc2 internal prototype to avoid an error. */
5179 /* We use char because int might match the return type of a gcc2
5180 builtin and then its argument prototype would still apply. */
5185 /* The GNU C library defines this for functions which it implements
5186 to always fail with ENOSYS. Some functions are actually named
5187 something starting with __ and the normal name is an alias. */
5188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5196 if { (eval echo configure
:5197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5198 eval "ac_cv_func_$ac_func=yes"
5200 echo "configure: failed program was:" >&5
5201 cat conftest.
$ac_ext >&5
5203 eval "ac_cv_func_$ac_func=no"
5208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5209 echo "$ac_t""yes" 1>&6
5210 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5211 cat >> confdefs.h
<<EOF
5212 #define $ac_tr_func 1
5216 echo "$ac_t""no" 1>&6
5220 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5223 echo "configure:5224: checking for $ac_func" >&5
5224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5227 cat > conftest.
$ac_ext <<EOF
5228 #line 5229 "configure"
5229 #include "confdefs.h"
5230 /* System header to define __stub macros and hopefully few prototypes,
5231 which can conflict with char $ac_func(); below. */
5233 /* Override any gcc2 internal prototype to avoid an error. */
5234 /* We use char because int might match the return type of a gcc2
5235 builtin and then its argument prototype would still apply. */
5240 /* The GNU C library defines this for functions which it implements
5241 to always fail with ENOSYS. Some functions are actually named
5242 something starting with __ and the normal name is an alias. */
5243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5251 if { (eval echo configure
:5252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5253 eval "ac_cv_func_$ac_func=yes"
5255 echo "configure: failed program was:" >&5
5256 cat conftest.
$ac_ext >&5
5258 eval "ac_cv_func_$ac_func=no"
5263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5264 echo "$ac_t""yes" 1>&6
5265 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5266 cat >> confdefs.h
<<EOF
5267 #define $ac_tr_func 1
5271 echo "$ac_t""no" 1>&6
5275 for ac_func
in __getcwd _getcwd
5277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5278 echo "configure:5279: checking for $ac_func" >&5
5279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5280 echo $ac_n "(cached) $ac_c" 1>&6
5282 cat > conftest.
$ac_ext <<EOF
5283 #line 5284 "configure"
5284 #include "confdefs.h"
5285 /* System header to define __stub macros and hopefully few prototypes,
5286 which can conflict with char $ac_func(); below. */
5288 /* Override any gcc2 internal prototype to avoid an error. */
5289 /* We use char because int might match the return type of a gcc2
5290 builtin and then its argument prototype would still apply. */
5295 /* The GNU C library defines this for functions which it implements
5296 to always fail with ENOSYS. Some functions are actually named
5297 something starting with __ and the normal name is an alias. */
5298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5306 if { (eval echo configure
:5307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5308 eval "ac_cv_func_$ac_func=yes"
5310 echo "configure: failed program was:" >&5
5311 cat conftest.
$ac_ext >&5
5313 eval "ac_cv_func_$ac_func=no"
5318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5319 echo "$ac_t""yes" 1>&6
5320 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5321 cat >> confdefs.h
<<EOF
5322 #define $ac_tr_func 1
5326 echo "$ac_t""no" 1>&6
5330 for ac_func
in __xstat __fxstat __lxstat
5332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5333 echo "configure:5334: checking for $ac_func" >&5
5334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5335 echo $ac_n "(cached) $ac_c" 1>&6
5337 cat > conftest.
$ac_ext <<EOF
5338 #line 5339 "configure"
5339 #include "confdefs.h"
5340 /* System header to define __stub macros and hopefully few prototypes,
5341 which can conflict with char $ac_func(); below. */
5343 /* Override any gcc2 internal prototype to avoid an error. */
5344 /* We use char because int might match the return type of a gcc2
5345 builtin and then its argument prototype would still apply. */
5350 /* The GNU C library defines this for functions which it implements
5351 to always fail with ENOSYS. Some functions are actually named
5352 something starting with __ and the normal name is an alias. */
5353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5361 if { (eval echo configure
:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5363 eval "ac_cv_func_$ac_func=yes"
5365 echo "configure: failed program was:" >&5
5366 cat conftest.
$ac_ext >&5
5368 eval "ac_cv_func_$ac_func=no"
5373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5374 echo "$ac_t""yes" 1>&6
5375 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5376 cat >> confdefs.h
<<EOF
5377 #define $ac_tr_func 1
5381 echo "$ac_t""no" 1>&6
5385 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
5387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5388 echo "configure:5389: checking for $ac_func" >&5
5389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5390 echo $ac_n "(cached) $ac_c" 1>&6
5392 cat > conftest.
$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5395 /* System header to define __stub macros and hopefully few prototypes,
5396 which can conflict with char $ac_func(); below. */
5398 /* Override any gcc2 internal prototype to avoid an error. */
5399 /* We use char because int might match the return type of a gcc2
5400 builtin and then its argument prototype would still apply. */
5405 /* The GNU C library defines this for functions which it implements
5406 to always fail with ENOSYS. Some functions are actually named
5407 something starting with __ and the normal name is an alias. */
5408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5416 if { (eval echo configure
:5417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5418 eval "ac_cv_func_$ac_func=yes"
5420 echo "configure: failed program was:" >&5
5421 cat conftest.
$ac_ext >&5
5423 eval "ac_cv_func_$ac_func=no"
5428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5429 echo "$ac_t""yes" 1>&6
5430 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5431 cat >> confdefs.h
<<EOF
5432 #define $ac_tr_func 1
5436 echo "$ac_t""no" 1>&6
5440 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5443 echo "configure:5444: checking for $ac_func" >&5
5444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5445 echo $ac_n "(cached) $ac_c" 1>&6
5447 cat > conftest.
$ac_ext <<EOF
5448 #line 5449 "configure"
5449 #include "confdefs.h"
5450 /* System header to define __stub macros and hopefully few prototypes,
5451 which can conflict with char $ac_func(); below. */
5453 /* Override any gcc2 internal prototype to avoid an error. */
5454 /* We use char because int might match the return type of a gcc2
5455 builtin and then its argument prototype would still apply. */
5460 /* The GNU C library defines this for functions which it implements
5461 to always fail with ENOSYS. Some functions are actually named
5462 something starting with __ and the normal name is an alias. */
5463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5471 if { (eval echo configure
:5472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5473 eval "ac_cv_func_$ac_func=yes"
5475 echo "configure: failed program was:" >&5
5476 cat conftest.
$ac_ext >&5
5478 eval "ac_cv_func_$ac_func=no"
5483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5484 echo "$ac_t""yes" 1>&6
5485 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5486 cat >> confdefs.h
<<EOF
5487 #define $ac_tr_func 1
5491 echo "$ac_t""no" 1>&6
5495 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
5497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5498 echo "configure:5499: checking for $ac_func" >&5
5499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5500 echo $ac_n "(cached) $ac_c" 1>&6
5502 cat > conftest.
$ac_ext <<EOF
5503 #line 5504 "configure"
5504 #include "confdefs.h"
5505 /* System header to define __stub macros and hopefully few prototypes,
5506 which can conflict with char $ac_func(); below. */
5508 /* Override any gcc2 internal prototype to avoid an error. */
5509 /* We use char because int might match the return type of a gcc2
5510 builtin and then its argument prototype would still apply. */
5515 /* The GNU C library defines this for functions which it implements
5516 to always fail with ENOSYS. Some functions are actually named
5517 something starting with __ and the normal name is an alias. */
5518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5526 if { (eval echo configure
:5527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5528 eval "ac_cv_func_$ac_func=yes"
5530 echo "configure: failed program was:" >&5
5531 cat conftest.
$ac_ext >&5
5533 eval "ac_cv_func_$ac_func=no"
5538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5539 echo "$ac_t""yes" 1>&6
5540 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5541 cat >> confdefs.h
<<EOF
5542 #define $ac_tr_func 1
5546 echo "$ac_t""no" 1>&6
5550 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
5552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5553 echo "configure:5554: checking for $ac_func" >&5
5554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5555 echo $ac_n "(cached) $ac_c" 1>&6
5557 cat > conftest.
$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5560 /* System header to define __stub macros and hopefully few prototypes,
5561 which can conflict with char $ac_func(); below. */
5563 /* Override any gcc2 internal prototype to avoid an error. */
5564 /* We use char because int might match the return type of a gcc2
5565 builtin and then its argument prototype would still apply. */
5570 /* The GNU C library defines this for functions which it implements
5571 to always fail with ENOSYS. Some functions are actually named
5572 something starting with __ and the normal name is an alias. */
5573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5581 if { (eval echo configure
:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5583 eval "ac_cv_func_$ac_func=yes"
5585 echo "configure: failed program was:" >&5
5586 cat conftest.
$ac_ext >&5
5588 eval "ac_cv_func_$ac_func=no"
5593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5594 echo "$ac_t""yes" 1>&6
5595 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5596 cat >> confdefs.h
<<EOF
5597 #define $ac_tr_func 1
5601 echo "$ac_t""no" 1>&6
5605 for ac_func
in _write __write _fork __fork
5607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5608 echo "configure:5609: checking for $ac_func" >&5
5609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5610 echo $ac_n "(cached) $ac_c" 1>&6
5612 cat > conftest.
$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5615 /* System header to define __stub macros and hopefully few prototypes,
5616 which can conflict with char $ac_func(); below. */
5618 /* Override any gcc2 internal prototype to avoid an error. */
5619 /* We use char because int might match the return type of a gcc2
5620 builtin and then its argument prototype would still apply. */
5625 /* The GNU C library defines this for functions which it implements
5626 to always fail with ENOSYS. Some functions are actually named
5627 something starting with __ and the normal name is an alias. */
5628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5636 if { (eval echo configure
:5637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5638 eval "ac_cv_func_$ac_func=yes"
5640 echo "configure: failed program was:" >&5
5641 cat conftest.
$ac_ext >&5
5643 eval "ac_cv_func_$ac_func=no"
5648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5649 echo "$ac_t""yes" 1>&6
5650 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5651 cat >> confdefs.h
<<EOF
5652 #define $ac_tr_func 1
5656 echo "$ac_t""no" 1>&6
5660 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
5662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5663 echo "configure:5664: checking for $ac_func" >&5
5664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5665 echo $ac_n "(cached) $ac_c" 1>&6
5667 cat > conftest.
$ac_ext <<EOF
5668 #line 5669 "configure"
5669 #include "confdefs.h"
5670 /* System header to define __stub macros and hopefully few prototypes,
5671 which can conflict with char $ac_func(); below. */
5673 /* Override any gcc2 internal prototype to avoid an error. */
5674 /* We use char because int might match the return type of a gcc2
5675 builtin and then its argument prototype would still apply. */
5680 /* The GNU C library defines this for functions which it implements
5681 to always fail with ENOSYS. Some functions are actually named
5682 something starting with __ and the normal name is an alias. */
5683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5691 if { (eval echo configure
:5692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5693 eval "ac_cv_func_$ac_func=yes"
5695 echo "configure: failed program was:" >&5
5696 cat conftest.
$ac_ext >&5
5698 eval "ac_cv_func_$ac_func=no"
5703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5704 echo "$ac_t""yes" 1>&6
5705 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5706 cat >> confdefs.h
<<EOF
5707 #define $ac_tr_func 1
5711 echo "$ac_t""no" 1>&6
5715 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5717 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5718 echo "configure:5719: checking for $ac_func" >&5
5719 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5720 echo $ac_n "(cached) $ac_c" 1>&6
5722 cat > conftest.
$ac_ext <<EOF
5723 #line 5724 "configure"
5724 #include "confdefs.h"
5725 /* System header to define __stub macros and hopefully few prototypes,
5726 which can conflict with char $ac_func(); below. */
5728 /* Override any gcc2 internal prototype to avoid an error. */
5729 /* We use char because int might match the return type of a gcc2
5730 builtin and then its argument prototype would still apply. */
5735 /* The GNU C library defines this for functions which it implements
5736 to always fail with ENOSYS. Some functions are actually named
5737 something starting with __ and the normal name is an alias. */
5738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5746 if { (eval echo configure
:5747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5748 eval "ac_cv_func_$ac_func=yes"
5750 echo "configure: failed program was:" >&5
5751 cat conftest.
$ac_ext >&5
5753 eval "ac_cv_func_$ac_func=no"
5758 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5759 echo "$ac_t""yes" 1>&6
5760 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5761 cat >> confdefs.h
<<EOF
5762 #define $ac_tr_func 1
5766 echo "$ac_t""no" 1>&6
5770 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
5772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5773 echo "configure:5774: checking for $ac_func" >&5
5774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5775 echo $ac_n "(cached) $ac_c" 1>&6
5777 cat > conftest.
$ac_ext <<EOF
5778 #line 5779 "configure"
5779 #include "confdefs.h"
5780 /* System header to define __stub macros and hopefully few prototypes,
5781 which can conflict with char $ac_func(); below. */
5783 /* Override any gcc2 internal prototype to avoid an error. */
5784 /* We use char because int might match the return type of a gcc2
5785 builtin and then its argument prototype would still apply. */
5790 /* The GNU C library defines this for functions which it implements
5791 to always fail with ENOSYS. Some functions are actually named
5792 something starting with __ and the normal name is an alias. */
5793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5801 if { (eval echo configure
:5802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5803 eval "ac_cv_func_$ac_func=yes"
5805 echo "configure: failed program was:" >&5
5806 cat conftest.
$ac_ext >&5
5808 eval "ac_cv_func_$ac_func=no"
5813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5814 echo "$ac_t""yes" 1>&6
5815 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5816 cat >> confdefs.h
<<EOF
5817 #define $ac_tr_func 1
5821 echo "$ac_t""no" 1>&6
5825 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
5827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5828 echo "configure:5829: checking for $ac_func" >&5
5829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5830 echo $ac_n "(cached) $ac_c" 1>&6
5832 cat > conftest.
$ac_ext <<EOF
5833 #line 5834 "configure"
5834 #include "confdefs.h"
5835 /* System header to define __stub macros and hopefully few prototypes,
5836 which can conflict with char $ac_func(); below. */
5838 /* Override any gcc2 internal prototype to avoid an error. */
5839 /* We use char because int might match the return type of a gcc2
5840 builtin and then its argument prototype would still apply. */
5845 /* The GNU C library defines this for functions which it implements
5846 to always fail with ENOSYS. Some functions are actually named
5847 something starting with __ and the normal name is an alias. */
5848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5856 if { (eval echo configure
:5857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5858 eval "ac_cv_func_$ac_func=yes"
5860 echo "configure: failed program was:" >&5
5861 cat conftest.
$ac_ext >&5
5863 eval "ac_cv_func_$ac_func=no"
5868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5869 echo "$ac_t""yes" 1>&6
5870 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5871 cat >> confdefs.h
<<EOF
5872 #define $ac_tr_func 1
5876 echo "$ac_t""no" 1>&6
5880 for ac_func
in open64 _open64 __open64 creat64
5882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5883 echo "configure:5884: checking for $ac_func" >&5
5884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5885 echo $ac_n "(cached) $ac_c" 1>&6
5887 cat > conftest.
$ac_ext <<EOF
5888 #line 5889 "configure"
5889 #include "confdefs.h"
5890 /* System header to define __stub macros and hopefully few prototypes,
5891 which can conflict with char $ac_func(); below. */
5893 /* Override any gcc2 internal prototype to avoid an error. */
5894 /* We use char because int might match the return type of a gcc2
5895 builtin and then its argument prototype would still apply. */
5900 /* The GNU C library defines this for functions which it implements
5901 to always fail with ENOSYS. Some functions are actually named
5902 something starting with __ and the normal name is an alias. */
5903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5911 if { (eval echo configure
:5912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5913 eval "ac_cv_func_$ac_func=yes"
5915 echo "configure: failed program was:" >&5
5916 cat conftest.
$ac_ext >&5
5918 eval "ac_cv_func_$ac_func=no"
5923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5924 echo "$ac_t""yes" 1>&6
5925 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5926 cat >> confdefs.h
<<EOF
5927 #define $ac_tr_func 1
5931 echo "$ac_t""no" 1>&6
5937 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
5940 if test x
$ac_cv_func_stat64 = xno
; then
5941 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
5942 echo "configure:5943: checking for stat64 in <sys/stat.h>" >&5
5943 cat > conftest.
$ac_ext <<EOF
5944 #line 5945 "configure"
5945 #include "confdefs.h"
5947 #if defined(HAVE_UNISTD_H)
5950 #include <sys/stat.h>
5953 struct stat64 st64; exit(stat64(".",&st64));
5956 if { (eval echo configure
:5957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5958 ac_cv_func_stat64
=yes
5960 echo "configure: failed program was:" >&5
5961 cat conftest.
$ac_ext >&5
5964 echo "$ac_t""$ac_cv_func_stat64" 1>&6
5965 if test x
$ac_cv_func_stat64 = xyes
; then
5966 cat >> confdefs.h
<<\EOF
5967 #define HAVE_STAT64 1
5973 if test x
$ac_cv_func_lstat64 = xno
; then
5974 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
5975 echo "configure:5976: checking for lstat64 in <sys/stat.h>" >&5
5976 cat > conftest.
$ac_ext <<EOF
5977 #line 5978 "configure"
5978 #include "confdefs.h"
5980 #if defined(HAVE_UNISTD_H)
5983 #include <sys/stat.h>
5986 struct stat64 st64; exit(lstat64(".",&st64));
5989 if { (eval echo configure
:5990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5991 ac_cv_func_lstat64
=yes
5993 echo "configure: failed program was:" >&5
5994 cat conftest.
$ac_ext >&5
5997 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
5998 if test x
$ac_cv_func_lstat64 = xyes
; then
5999 cat >> confdefs.h
<<\EOF
6000 #define HAVE_LSTAT64 1
6006 if test x
$ac_cv_func_fstat64 = xno
; then
6007 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6008 echo "configure:6009: checking for fstat64 in <sys/stat.h>" >&5
6009 cat > conftest.
$ac_ext <<EOF
6010 #line 6011 "configure"
6011 #include "confdefs.h"
6013 #if defined(HAVE_UNISTD_H)
6016 #include <sys/stat.h>
6019 struct stat64 st64; exit(fstat64(0,&st64));
6022 if { (eval echo configure
:6023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6024 ac_cv_func_fstat64
=yes
6026 echo "configure: failed program was:" >&5
6027 cat conftest.
$ac_ext >&5
6030 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6031 if test x
$ac_cv_func_fstat64 = xyes
; then
6032 cat >> confdefs.h
<<\EOF
6033 #define HAVE_FSTAT64 1
6040 # If no strcasecmp, check for it in some known places
6041 # It is in -lresolv on ReliantUNIX and UnixWare
6042 # -lresolve *must* follow -lnsl for name resolution to work properly
6045 if test x
$ac_cv_func_strcasecmp = xno
; then
6046 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6047 echo "configure:6048: checking for strcasecmp in -lresolv" >&5
6048 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6049 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6050 echo $ac_n "(cached) $ac_c" 1>&6
6052 ac_save_LIBS
="$LIBS"
6053 LIBS
="-lresolv $LIBS"
6054 cat > conftest.
$ac_ext <<EOF
6055 #line 6056 "configure"
6056 #include "confdefs.h"
6057 /* Override any gcc2 internal prototype to avoid an error. */
6058 /* We use char because int might match the return type of a gcc2
6059 builtin and then its argument prototype would still apply. */
6066 if { (eval echo configure
:6067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6068 eval "ac_cv_lib_$ac_lib_var=yes"
6070 echo "configure: failed program was:" >&5
6071 cat conftest.
$ac_ext >&5
6073 eval "ac_cv_lib_$ac_lib_var=no"
6076 LIBS
="$ac_save_LIBS"
6079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6080 echo "$ac_t""yes" 1>&6
6081 LIBS
="$LIBS -lresolv"
6082 cat >> confdefs.h
<<\EOF
6083 #define HAVE_STRCASECMP 1
6087 echo "$ac_t""no" 1>&6
6093 # Check for the functions putprpwnam, set_auth_parameters,
6094 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6095 # Needed for OSF1 and HPUX.
6099 *-lsecurity*) for ac_func
in putprpwnam
6101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6102 echo "configure:6103: checking for $ac_func" >&5
6103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6104 echo $ac_n "(cached) $ac_c" 1>&6
6106 cat > conftest.
$ac_ext <<EOF
6107 #line 6108 "configure"
6108 #include "confdefs.h"
6109 /* System header to define __stub macros and hopefully few prototypes,
6110 which can conflict with char $ac_func(); below. */
6112 /* Override any gcc2 internal prototype to avoid an error. */
6113 /* We use char because int might match the return type of a gcc2
6114 builtin and then its argument prototype would still apply. */
6119 /* The GNU C library defines this for functions which it implements
6120 to always fail with ENOSYS. Some functions are actually named
6121 something starting with __ and the normal name is an alias. */
6122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6130 if { (eval echo configure
:6131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6132 eval "ac_cv_func_$ac_func=yes"
6134 echo "configure: failed program was:" >&5
6135 cat conftest.
$ac_ext >&5
6137 eval "ac_cv_func_$ac_func=no"
6142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6143 echo "$ac_t""yes" 1>&6
6144 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6145 cat >> confdefs.h
<<EOF
6146 #define $ac_tr_func 1
6150 echo "$ac_t""no" 1>&6
6154 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6155 echo "configure:6156: checking for putprpwnam in -lsecurity" >&5
6156 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6158 echo $ac_n "(cached) $ac_c" 1>&6
6160 ac_save_LIBS
="$LIBS"
6161 LIBS
="-lsecurity $LIBS"
6162 cat > conftest.
$ac_ext <<EOF
6163 #line 6164 "configure"
6164 #include "confdefs.h"
6165 /* Override any gcc2 internal prototype to avoid an error. */
6166 /* We use char because int might match the return type of a gcc2
6167 builtin and then its argument prototype would still apply. */
6174 if { (eval echo configure
:6175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6176 eval "ac_cv_lib_$ac_lib_var=yes"
6178 echo "configure: failed program was:" >&5
6179 cat conftest.
$ac_ext >&5
6181 eval "ac_cv_lib_$ac_lib_var=no"
6184 LIBS
="$ac_save_LIBS"
6187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6188 echo "$ac_t""yes" 1>&6
6189 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6190 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6191 cat >> confdefs.h
<<EOF
6192 #define $ac_tr_lib 1
6195 LIBS
="-lsecurity $LIBS"
6198 echo "$ac_t""no" 1>&6
6201 for ac_func
in putprpwnam
6203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6204 echo "configure:6205: checking for $ac_func" >&5
6205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6206 echo $ac_n "(cached) $ac_c" 1>&6
6208 cat > conftest.
$ac_ext <<EOF
6209 #line 6210 "configure"
6210 #include "confdefs.h"
6211 /* System header to define __stub macros and hopefully few prototypes,
6212 which can conflict with char $ac_func(); below. */
6214 /* Override any gcc2 internal prototype to avoid an error. */
6215 /* We use char because int might match the return type of a gcc2
6216 builtin and then its argument prototype would still apply. */
6221 /* The GNU C library defines this for functions which it implements
6222 to always fail with ENOSYS. Some functions are actually named
6223 something starting with __ and the normal name is an alias. */
6224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6232 if { (eval echo configure
:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6234 eval "ac_cv_func_$ac_func=yes"
6236 echo "configure: failed program was:" >&5
6237 cat conftest.
$ac_ext >&5
6239 eval "ac_cv_func_$ac_func=no"
6244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6245 echo "$ac_t""yes" 1>&6
6246 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6247 cat >> confdefs.h
<<EOF
6248 #define $ac_tr_func 1
6252 echo "$ac_t""no" 1>&6
6260 *-lsec*) for ac_func
in putprpwnam
6262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6263 echo "configure:6264: checking for $ac_func" >&5
6264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6265 echo $ac_n "(cached) $ac_c" 1>&6
6267 cat > conftest.
$ac_ext <<EOF
6268 #line 6269 "configure"
6269 #include "confdefs.h"
6270 /* System header to define __stub macros and hopefully few prototypes,
6271 which can conflict with char $ac_func(); below. */
6273 /* Override any gcc2 internal prototype to avoid an error. */
6274 /* We use char because int might match the return type of a gcc2
6275 builtin and then its argument prototype would still apply. */
6280 /* The GNU C library defines this for functions which it implements
6281 to always fail with ENOSYS. Some functions are actually named
6282 something starting with __ and the normal name is an alias. */
6283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6291 if { (eval echo configure
:6292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6293 eval "ac_cv_func_$ac_func=yes"
6295 echo "configure: failed program was:" >&5
6296 cat conftest.
$ac_ext >&5
6298 eval "ac_cv_func_$ac_func=no"
6303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6304 echo "$ac_t""yes" 1>&6
6305 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6306 cat >> confdefs.h
<<EOF
6307 #define $ac_tr_func 1
6311 echo "$ac_t""no" 1>&6
6315 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6316 echo "configure:6317: checking for putprpwnam in -lsec" >&5
6317 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6318 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6319 echo $ac_n "(cached) $ac_c" 1>&6
6321 ac_save_LIBS
="$LIBS"
6323 cat > conftest.
$ac_ext <<EOF
6324 #line 6325 "configure"
6325 #include "confdefs.h"
6326 /* Override any gcc2 internal prototype to avoid an error. */
6327 /* We use char because int might match the return type of a gcc2
6328 builtin and then its argument prototype would still apply. */
6335 if { (eval echo configure
:6336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6337 eval "ac_cv_lib_$ac_lib_var=yes"
6339 echo "configure: failed program was:" >&5
6340 cat conftest.
$ac_ext >&5
6342 eval "ac_cv_lib_$ac_lib_var=no"
6345 LIBS
="$ac_save_LIBS"
6348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6349 echo "$ac_t""yes" 1>&6
6350 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6351 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6352 cat >> confdefs.h
<<EOF
6353 #define $ac_tr_lib 1
6359 echo "$ac_t""no" 1>&6
6362 for ac_func
in putprpwnam
6364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6365 echo "configure:6366: checking for $ac_func" >&5
6366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6367 echo $ac_n "(cached) $ac_c" 1>&6
6369 cat > conftest.
$ac_ext <<EOF
6370 #line 6371 "configure"
6371 #include "confdefs.h"
6372 /* System header to define __stub macros and hopefully few prototypes,
6373 which can conflict with char $ac_func(); below. */
6375 /* Override any gcc2 internal prototype to avoid an error. */
6376 /* We use char because int might match the return type of a gcc2
6377 builtin and then its argument prototype would still apply. */
6382 /* The GNU C library defines this for functions which it implements
6383 to always fail with ENOSYS. Some functions are actually named
6384 something starting with __ and the normal name is an alias. */
6385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6393 if { (eval echo configure
:6394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6395 eval "ac_cv_func_$ac_func=yes"
6397 echo "configure: failed program was:" >&5
6398 cat conftest.
$ac_ext >&5
6400 eval "ac_cv_func_$ac_func=no"
6405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6406 echo "$ac_t""yes" 1>&6
6407 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6408 cat >> confdefs.h
<<EOF
6409 #define $ac_tr_func 1
6413 echo "$ac_t""no" 1>&6
6422 *-lsecurity*) for ac_func
in set_auth_parameters
6424 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6425 echo "configure:6426: checking for $ac_func" >&5
6426 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6427 echo $ac_n "(cached) $ac_c" 1>&6
6429 cat > conftest.
$ac_ext <<EOF
6430 #line 6431 "configure"
6431 #include "confdefs.h"
6432 /* System header to define __stub macros and hopefully few prototypes,
6433 which can conflict with char $ac_func(); below. */
6435 /* Override any gcc2 internal prototype to avoid an error. */
6436 /* We use char because int might match the return type of a gcc2
6437 builtin and then its argument prototype would still apply. */
6442 /* The GNU C library defines this for functions which it implements
6443 to always fail with ENOSYS. Some functions are actually named
6444 something starting with __ and the normal name is an alias. */
6445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6453 if { (eval echo configure
:6454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6455 eval "ac_cv_func_$ac_func=yes"
6457 echo "configure: failed program was:" >&5
6458 cat conftest.
$ac_ext >&5
6460 eval "ac_cv_func_$ac_func=no"
6465 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6466 echo "$ac_t""yes" 1>&6
6467 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6468 cat >> confdefs.h
<<EOF
6469 #define $ac_tr_func 1
6473 echo "$ac_t""no" 1>&6
6477 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6478 echo "configure:6479: checking for set_auth_parameters in -lsecurity" >&5
6479 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6481 echo $ac_n "(cached) $ac_c" 1>&6
6483 ac_save_LIBS
="$LIBS"
6484 LIBS
="-lsecurity $LIBS"
6485 cat > conftest.
$ac_ext <<EOF
6486 #line 6487 "configure"
6487 #include "confdefs.h"
6488 /* Override any gcc2 internal prototype to avoid an error. */
6489 /* We use char because int might match the return type of a gcc2
6490 builtin and then its argument prototype would still apply. */
6491 char set_auth_parameters();
6494 set_auth_parameters()
6497 if { (eval echo configure
:6498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6499 eval "ac_cv_lib_$ac_lib_var=yes"
6501 echo "configure: failed program was:" >&5
6502 cat conftest.
$ac_ext >&5
6504 eval "ac_cv_lib_$ac_lib_var=no"
6507 LIBS
="$ac_save_LIBS"
6510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6511 echo "$ac_t""yes" 1>&6
6512 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6513 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6514 cat >> confdefs.h
<<EOF
6515 #define $ac_tr_lib 1
6518 LIBS
="-lsecurity $LIBS"
6521 echo "$ac_t""no" 1>&6
6524 for ac_func
in set_auth_parameters
6526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6527 echo "configure:6528: checking for $ac_func" >&5
6528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6529 echo $ac_n "(cached) $ac_c" 1>&6
6531 cat > conftest.
$ac_ext <<EOF
6532 #line 6533 "configure"
6533 #include "confdefs.h"
6534 /* System header to define __stub macros and hopefully few prototypes,
6535 which can conflict with char $ac_func(); below. */
6537 /* Override any gcc2 internal prototype to avoid an error. */
6538 /* We use char because int might match the return type of a gcc2
6539 builtin and then its argument prototype would still apply. */
6544 /* The GNU C library defines this for functions which it implements
6545 to always fail with ENOSYS. Some functions are actually named
6546 something starting with __ and the normal name is an alias. */
6547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6555 if { (eval echo configure
:6556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6557 eval "ac_cv_func_$ac_func=yes"
6559 echo "configure: failed program was:" >&5
6560 cat conftest.
$ac_ext >&5
6562 eval "ac_cv_func_$ac_func=no"
6567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6568 echo "$ac_t""yes" 1>&6
6569 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6570 cat >> confdefs.h
<<EOF
6571 #define $ac_tr_func 1
6575 echo "$ac_t""no" 1>&6
6583 *-lsec*) for ac_func
in set_auth_parameters
6585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6586 echo "configure:6587: checking for $ac_func" >&5
6587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6588 echo $ac_n "(cached) $ac_c" 1>&6
6590 cat > conftest.
$ac_ext <<EOF
6591 #line 6592 "configure"
6592 #include "confdefs.h"
6593 /* System header to define __stub macros and hopefully few prototypes,
6594 which can conflict with char $ac_func(); below. */
6596 /* Override any gcc2 internal prototype to avoid an error. */
6597 /* We use char because int might match the return type of a gcc2
6598 builtin and then its argument prototype would still apply. */
6603 /* The GNU C library defines this for functions which it implements
6604 to always fail with ENOSYS. Some functions are actually named
6605 something starting with __ and the normal name is an alias. */
6606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6614 if { (eval echo configure
:6615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6616 eval "ac_cv_func_$ac_func=yes"
6618 echo "configure: failed program was:" >&5
6619 cat conftest.
$ac_ext >&5
6621 eval "ac_cv_func_$ac_func=no"
6626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6627 echo "$ac_t""yes" 1>&6
6628 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6629 cat >> confdefs.h
<<EOF
6630 #define $ac_tr_func 1
6634 echo "$ac_t""no" 1>&6
6638 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6639 echo "configure:6640: checking for set_auth_parameters in -lsec" >&5
6640 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6642 echo $ac_n "(cached) $ac_c" 1>&6
6644 ac_save_LIBS
="$LIBS"
6646 cat > conftest.
$ac_ext <<EOF
6647 #line 6648 "configure"
6648 #include "confdefs.h"
6649 /* Override any gcc2 internal prototype to avoid an error. */
6650 /* We use char because int might match the return type of a gcc2
6651 builtin and then its argument prototype would still apply. */
6652 char set_auth_parameters();
6655 set_auth_parameters()
6658 if { (eval echo configure
:6659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6660 eval "ac_cv_lib_$ac_lib_var=yes"
6662 echo "configure: failed program was:" >&5
6663 cat conftest.
$ac_ext >&5
6665 eval "ac_cv_lib_$ac_lib_var=no"
6668 LIBS
="$ac_save_LIBS"
6671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6672 echo "$ac_t""yes" 1>&6
6673 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6674 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6675 cat >> confdefs.h
<<EOF
6676 #define $ac_tr_lib 1
6682 echo "$ac_t""no" 1>&6
6685 for ac_func
in set_auth_parameters
6687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6688 echo "configure:6689: checking for $ac_func" >&5
6689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6690 echo $ac_n "(cached) $ac_c" 1>&6
6692 cat > conftest.
$ac_ext <<EOF
6693 #line 6694 "configure"
6694 #include "confdefs.h"
6695 /* System header to define __stub macros and hopefully few prototypes,
6696 which can conflict with char $ac_func(); below. */
6698 /* Override any gcc2 internal prototype to avoid an error. */
6699 /* We use char because int might match the return type of a gcc2
6700 builtin and then its argument prototype would still apply. */
6705 /* The GNU C library defines this for functions which it implements
6706 to always fail with ENOSYS. Some functions are actually named
6707 something starting with __ and the normal name is an alias. */
6708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6716 if { (eval echo configure
:6717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6718 eval "ac_cv_func_$ac_func=yes"
6720 echo "configure: failed program was:" >&5
6721 cat conftest.
$ac_ext >&5
6723 eval "ac_cv_func_$ac_func=no"
6728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6729 echo "$ac_t""yes" 1>&6
6730 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6731 cat >> confdefs.h
<<EOF
6732 #define $ac_tr_func 1
6736 echo "$ac_t""no" 1>&6
6744 # UnixWare 7.x has its getspnam in -lgen
6746 *-lgen*) for ac_func
in getspnam
6748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6749 echo "configure:6750: checking for $ac_func" >&5
6750 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6751 echo $ac_n "(cached) $ac_c" 1>&6
6753 cat > conftest.
$ac_ext <<EOF
6754 #line 6755 "configure"
6755 #include "confdefs.h"
6756 /* System header to define __stub macros and hopefully few prototypes,
6757 which can conflict with char $ac_func(); below. */
6759 /* Override any gcc2 internal prototype to avoid an error. */
6760 /* We use char because int might match the return type of a gcc2
6761 builtin and then its argument prototype would still apply. */
6766 /* The GNU C library defines this for functions which it implements
6767 to always fail with ENOSYS. Some functions are actually named
6768 something starting with __ and the normal name is an alias. */
6769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6777 if { (eval echo configure
:6778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6779 eval "ac_cv_func_$ac_func=yes"
6781 echo "configure: failed program was:" >&5
6782 cat conftest.
$ac_ext >&5
6784 eval "ac_cv_func_$ac_func=no"
6789 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6790 echo "$ac_t""yes" 1>&6
6791 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6792 cat >> confdefs.h
<<EOF
6793 #define $ac_tr_func 1
6797 echo "$ac_t""no" 1>&6
6801 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
6802 echo "configure:6803: checking for getspnam in -lgen" >&5
6803 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
6804 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6805 echo $ac_n "(cached) $ac_c" 1>&6
6807 ac_save_LIBS
="$LIBS"
6809 cat > conftest.
$ac_ext <<EOF
6810 #line 6811 "configure"
6811 #include "confdefs.h"
6812 /* Override any gcc2 internal prototype to avoid an error. */
6813 /* We use char because int might match the return type of a gcc2
6814 builtin and then its argument prototype would still apply. */
6821 if { (eval echo configure
:6822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6823 eval "ac_cv_lib_$ac_lib_var=yes"
6825 echo "configure: failed program was:" >&5
6826 cat conftest.
$ac_ext >&5
6828 eval "ac_cv_lib_$ac_lib_var=no"
6831 LIBS
="$ac_save_LIBS"
6834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6835 echo "$ac_t""yes" 1>&6
6836 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6837 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6838 cat >> confdefs.h
<<EOF
6839 #define $ac_tr_lib 1
6845 echo "$ac_t""no" 1>&6
6848 for ac_func
in getspnam
6850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6851 echo "configure:6852: checking for $ac_func" >&5
6852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6853 echo $ac_n "(cached) $ac_c" 1>&6
6855 cat > conftest.
$ac_ext <<EOF
6856 #line 6857 "configure"
6857 #include "confdefs.h"
6858 /* System header to define __stub macros and hopefully few prototypes,
6859 which can conflict with char $ac_func(); below. */
6861 /* Override any gcc2 internal prototype to avoid an error. */
6862 /* We use char because int might match the return type of a gcc2
6863 builtin and then its argument prototype would still apply. */
6868 /* The GNU C library defines this for functions which it implements
6869 to always fail with ENOSYS. Some functions are actually named
6870 something starting with __ and the normal name is an alias. */
6871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6879 if { (eval echo configure
:6880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6881 eval "ac_cv_func_$ac_func=yes"
6883 echo "configure: failed program was:" >&5
6884 cat conftest.
$ac_ext >&5
6886 eval "ac_cv_func_$ac_func=no"
6891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6892 echo "$ac_t""yes" 1>&6
6893 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6894 cat >> confdefs.h
<<EOF
6895 #define $ac_tr_func 1
6899 echo "$ac_t""no" 1>&6
6908 *-lsecurity*) for ac_func
in getspnam
6910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6911 echo "configure:6912: checking for $ac_func" >&5
6912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6913 echo $ac_n "(cached) $ac_c" 1>&6
6915 cat > conftest.
$ac_ext <<EOF
6916 #line 6917 "configure"
6917 #include "confdefs.h"
6918 /* System header to define __stub macros and hopefully few prototypes,
6919 which can conflict with char $ac_func(); below. */
6921 /* Override any gcc2 internal prototype to avoid an error. */
6922 /* We use char because int might match the return type of a gcc2
6923 builtin and then its argument prototype would still apply. */
6928 /* The GNU C library defines this for functions which it implements
6929 to always fail with ENOSYS. Some functions are actually named
6930 something starting with __ and the normal name is an alias. */
6931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6939 if { (eval echo configure
:6940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6941 eval "ac_cv_func_$ac_func=yes"
6943 echo "configure: failed program was:" >&5
6944 cat conftest.
$ac_ext >&5
6946 eval "ac_cv_func_$ac_func=no"
6951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6952 echo "$ac_t""yes" 1>&6
6953 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6954 cat >> confdefs.h
<<EOF
6955 #define $ac_tr_func 1
6959 echo "$ac_t""no" 1>&6
6963 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
6964 echo "configure:6965: checking for getspnam in -lsecurity" >&5
6965 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
6966 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6967 echo $ac_n "(cached) $ac_c" 1>&6
6969 ac_save_LIBS
="$LIBS"
6970 LIBS
="-lsecurity $LIBS"
6971 cat > conftest.
$ac_ext <<EOF
6972 #line 6973 "configure"
6973 #include "confdefs.h"
6974 /* Override any gcc2 internal prototype to avoid an error. */
6975 /* We use char because int might match the return type of a gcc2
6976 builtin and then its argument prototype would still apply. */
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_lib_$ac_lib_var=yes"
6987 echo "configure: failed program was:" >&5
6988 cat conftest.
$ac_ext >&5
6990 eval "ac_cv_lib_$ac_lib_var=no"
6993 LIBS
="$ac_save_LIBS"
6996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6997 echo "$ac_t""yes" 1>&6
6998 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6999 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7000 cat >> confdefs.h
<<EOF
7001 #define $ac_tr_lib 1
7004 LIBS
="-lsecurity $LIBS"
7007 echo "$ac_t""no" 1>&6
7010 for ac_func
in getspnam
7012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7013 echo "configure:7014: checking for $ac_func" >&5
7014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7015 echo $ac_n "(cached) $ac_c" 1>&6
7017 cat > conftest.
$ac_ext <<EOF
7018 #line 7019 "configure"
7019 #include "confdefs.h"
7020 /* System header to define __stub macros and hopefully few prototypes,
7021 which can conflict with char $ac_func(); below. */
7023 /* Override any gcc2 internal prototype to avoid an error. */
7024 /* We use char because int might match the return type of a gcc2
7025 builtin and then its argument prototype would still apply. */
7030 /* The GNU C library defines this for functions which it implements
7031 to always fail with ENOSYS. Some functions are actually named
7032 something starting with __ and the normal name is an alias. */
7033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7041 if { (eval echo configure
:7042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7043 eval "ac_cv_func_$ac_func=yes"
7045 echo "configure: failed program was:" >&5
7046 cat conftest.
$ac_ext >&5
7048 eval "ac_cv_func_$ac_func=no"
7053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7054 echo "$ac_t""yes" 1>&6
7055 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7056 cat >> confdefs.h
<<EOF
7057 #define $ac_tr_func 1
7061 echo "$ac_t""no" 1>&6
7069 *-lsec*) for ac_func
in getspnam
7071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7072 echo "configure:7073: checking for $ac_func" >&5
7073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7074 echo $ac_n "(cached) $ac_c" 1>&6
7076 cat > conftest.
$ac_ext <<EOF
7077 #line 7078 "configure"
7078 #include "confdefs.h"
7079 /* System header to define __stub macros and hopefully few prototypes,
7080 which can conflict with char $ac_func(); below. */
7082 /* Override any gcc2 internal prototype to avoid an error. */
7083 /* We use char because int might match the return type of a gcc2
7084 builtin and then its argument prototype would still apply. */
7089 /* The GNU C library defines this for functions which it implements
7090 to always fail with ENOSYS. Some functions are actually named
7091 something starting with __ and the normal name is an alias. */
7092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7100 if { (eval echo configure
:7101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7102 eval "ac_cv_func_$ac_func=yes"
7104 echo "configure: failed program was:" >&5
7105 cat conftest.
$ac_ext >&5
7107 eval "ac_cv_func_$ac_func=no"
7112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7113 echo "$ac_t""yes" 1>&6
7114 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7115 cat >> confdefs.h
<<EOF
7116 #define $ac_tr_func 1
7120 echo "$ac_t""no" 1>&6
7124 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7125 echo "configure:7126: checking for getspnam in -lsec" >&5
7126 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7127 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7128 echo $ac_n "(cached) $ac_c" 1>&6
7130 ac_save_LIBS
="$LIBS"
7132 cat > conftest.
$ac_ext <<EOF
7133 #line 7134 "configure"
7134 #include "confdefs.h"
7135 /* Override any gcc2 internal prototype to avoid an error. */
7136 /* We use char because int might match the return type of a gcc2
7137 builtin and then its argument prototype would still apply. */
7144 if { (eval echo configure
:7145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7146 eval "ac_cv_lib_$ac_lib_var=yes"
7148 echo "configure: failed program was:" >&5
7149 cat conftest.
$ac_ext >&5
7151 eval "ac_cv_lib_$ac_lib_var=no"
7154 LIBS
="$ac_save_LIBS"
7157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7158 echo "$ac_t""yes" 1>&6
7159 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7160 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7161 cat >> confdefs.h
<<EOF
7162 #define $ac_tr_lib 1
7168 echo "$ac_t""no" 1>&6
7171 for ac_func
in getspnam
7173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7174 echo "configure:7175: checking for $ac_func" >&5
7175 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7176 echo $ac_n "(cached) $ac_c" 1>&6
7178 cat > conftest.
$ac_ext <<EOF
7179 #line 7180 "configure"
7180 #include "confdefs.h"
7181 /* System header to define __stub macros and hopefully few prototypes,
7182 which can conflict with char $ac_func(); below. */
7184 /* Override any gcc2 internal prototype to avoid an error. */
7185 /* We use char because int might match the return type of a gcc2
7186 builtin and then its argument prototype would still apply. */
7191 /* The GNU C library defines this for functions which it implements
7192 to always fail with ENOSYS. Some functions are actually named
7193 something starting with __ and the normal name is an alias. */
7194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7202 if { (eval echo configure
:7203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7204 eval "ac_cv_func_$ac_func=yes"
7206 echo "configure: failed program was:" >&5
7207 cat conftest.
$ac_ext >&5
7209 eval "ac_cv_func_$ac_func=no"
7214 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7215 echo "$ac_t""yes" 1>&6
7216 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7217 cat >> confdefs.h
<<EOF
7218 #define $ac_tr_func 1
7222 echo "$ac_t""no" 1>&6
7231 *-lsecurity*) for ac_func
in bigcrypt
7233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7234 echo "configure:7235: checking for $ac_func" >&5
7235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7236 echo $ac_n "(cached) $ac_c" 1>&6
7238 cat > conftest.
$ac_ext <<EOF
7239 #line 7240 "configure"
7240 #include "confdefs.h"
7241 /* System header to define __stub macros and hopefully few prototypes,
7242 which can conflict with char $ac_func(); below. */
7244 /* Override any gcc2 internal prototype to avoid an error. */
7245 /* We use char because int might match the return type of a gcc2
7246 builtin and then its argument prototype would still apply. */
7251 /* The GNU C library defines this for functions which it implements
7252 to always fail with ENOSYS. Some functions are actually named
7253 something starting with __ and the normal name is an alias. */
7254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7262 if { (eval echo configure
:7263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7264 eval "ac_cv_func_$ac_func=yes"
7266 echo "configure: failed program was:" >&5
7267 cat conftest.
$ac_ext >&5
7269 eval "ac_cv_func_$ac_func=no"
7274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7275 echo "$ac_t""yes" 1>&6
7276 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7277 cat >> confdefs.h
<<EOF
7278 #define $ac_tr_func 1
7282 echo "$ac_t""no" 1>&6
7286 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7287 echo "configure:7288: checking for bigcrypt in -lsecurity" >&5
7288 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7290 echo $ac_n "(cached) $ac_c" 1>&6
7292 ac_save_LIBS
="$LIBS"
7293 LIBS
="-lsecurity $LIBS"
7294 cat > conftest.
$ac_ext <<EOF
7295 #line 7296 "configure"
7296 #include "confdefs.h"
7297 /* Override any gcc2 internal prototype to avoid an error. */
7298 /* We use char because int might match the return type of a gcc2
7299 builtin and then its argument prototype would still apply. */
7306 if { (eval echo configure
:7307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7308 eval "ac_cv_lib_$ac_lib_var=yes"
7310 echo "configure: failed program was:" >&5
7311 cat conftest.
$ac_ext >&5
7313 eval "ac_cv_lib_$ac_lib_var=no"
7316 LIBS
="$ac_save_LIBS"
7319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7320 echo "$ac_t""yes" 1>&6
7321 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7322 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7323 cat >> confdefs.h
<<EOF
7324 #define $ac_tr_lib 1
7327 LIBS
="-lsecurity $LIBS"
7330 echo "$ac_t""no" 1>&6
7333 for ac_func
in bigcrypt
7335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7336 echo "configure:7337: checking for $ac_func" >&5
7337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7338 echo $ac_n "(cached) $ac_c" 1>&6
7340 cat > conftest.
$ac_ext <<EOF
7341 #line 7342 "configure"
7342 #include "confdefs.h"
7343 /* System header to define __stub macros and hopefully few prototypes,
7344 which can conflict with char $ac_func(); below. */
7346 /* Override any gcc2 internal prototype to avoid an error. */
7347 /* We use char because int might match the return type of a gcc2
7348 builtin and then its argument prototype would still apply. */
7353 /* The GNU C library defines this for functions which it implements
7354 to always fail with ENOSYS. Some functions are actually named
7355 something starting with __ and the normal name is an alias. */
7356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7364 if { (eval echo configure
:7365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7366 eval "ac_cv_func_$ac_func=yes"
7368 echo "configure: failed program was:" >&5
7369 cat conftest.
$ac_ext >&5
7371 eval "ac_cv_func_$ac_func=no"
7376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7377 echo "$ac_t""yes" 1>&6
7378 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7379 cat >> confdefs.h
<<EOF
7380 #define $ac_tr_func 1
7384 echo "$ac_t""no" 1>&6
7392 *-lsec*) for ac_func
in bigcrypt
7394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7395 echo "configure:7396: checking for $ac_func" >&5
7396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7397 echo $ac_n "(cached) $ac_c" 1>&6
7399 cat > conftest.
$ac_ext <<EOF
7400 #line 7401 "configure"
7401 #include "confdefs.h"
7402 /* System header to define __stub macros and hopefully few prototypes,
7403 which can conflict with char $ac_func(); below. */
7405 /* Override any gcc2 internal prototype to avoid an error. */
7406 /* We use char because int might match the return type of a gcc2
7407 builtin and then its argument prototype would still apply. */
7412 /* The GNU C library defines this for functions which it implements
7413 to always fail with ENOSYS. Some functions are actually named
7414 something starting with __ and the normal name is an alias. */
7415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7423 if { (eval echo configure
:7424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7425 eval "ac_cv_func_$ac_func=yes"
7427 echo "configure: failed program was:" >&5
7428 cat conftest.
$ac_ext >&5
7430 eval "ac_cv_func_$ac_func=no"
7435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7436 echo "$ac_t""yes" 1>&6
7437 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7438 cat >> confdefs.h
<<EOF
7439 #define $ac_tr_func 1
7443 echo "$ac_t""no" 1>&6
7447 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7448 echo "configure:7449: checking for bigcrypt in -lsec" >&5
7449 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7451 echo $ac_n "(cached) $ac_c" 1>&6
7453 ac_save_LIBS
="$LIBS"
7455 cat > conftest.
$ac_ext <<EOF
7456 #line 7457 "configure"
7457 #include "confdefs.h"
7458 /* Override any gcc2 internal prototype to avoid an error. */
7459 /* We use char because int might match the return type of a gcc2
7460 builtin and then its argument prototype would still apply. */
7467 if { (eval echo configure
:7468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7469 eval "ac_cv_lib_$ac_lib_var=yes"
7471 echo "configure: failed program was:" >&5
7472 cat conftest.
$ac_ext >&5
7474 eval "ac_cv_lib_$ac_lib_var=no"
7477 LIBS
="$ac_save_LIBS"
7480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7481 echo "$ac_t""yes" 1>&6
7482 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7483 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7484 cat >> confdefs.h
<<EOF
7485 #define $ac_tr_lib 1
7491 echo "$ac_t""no" 1>&6
7494 for ac_func
in bigcrypt
7496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7497 echo "configure:7498: checking for $ac_func" >&5
7498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7499 echo $ac_n "(cached) $ac_c" 1>&6
7501 cat > conftest.
$ac_ext <<EOF
7502 #line 7503 "configure"
7503 #include "confdefs.h"
7504 /* System header to define __stub macros and hopefully few prototypes,
7505 which can conflict with char $ac_func(); below. */
7507 /* Override any gcc2 internal prototype to avoid an error. */
7508 /* We use char because int might match the return type of a gcc2
7509 builtin and then its argument prototype would still apply. */
7514 /* The GNU C library defines this for functions which it implements
7515 to always fail with ENOSYS. Some functions are actually named
7516 something starting with __ and the normal name is an alias. */
7517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7525 if { (eval echo configure
:7526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7527 eval "ac_cv_func_$ac_func=yes"
7529 echo "configure: failed program was:" >&5
7530 cat conftest.
$ac_ext >&5
7532 eval "ac_cv_func_$ac_func=no"
7537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7538 echo "$ac_t""yes" 1>&6
7539 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7540 cat >> confdefs.h
<<EOF
7541 #define $ac_tr_func 1
7545 echo "$ac_t""no" 1>&6
7554 *-lsecurity*) for ac_func
in getprpwnam
7556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7557 echo "configure:7558: checking for $ac_func" >&5
7558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7559 echo $ac_n "(cached) $ac_c" 1>&6
7561 cat > conftest.
$ac_ext <<EOF
7562 #line 7563 "configure"
7563 #include "confdefs.h"
7564 /* System header to define __stub macros and hopefully few prototypes,
7565 which can conflict with char $ac_func(); below. */
7567 /* Override any gcc2 internal prototype to avoid an error. */
7568 /* We use char because int might match the return type of a gcc2
7569 builtin and then its argument prototype would still apply. */
7574 /* The GNU C library defines this for functions which it implements
7575 to always fail with ENOSYS. Some functions are actually named
7576 something starting with __ and the normal name is an alias. */
7577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7585 if { (eval echo configure
:7586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7587 eval "ac_cv_func_$ac_func=yes"
7589 echo "configure: failed program was:" >&5
7590 cat conftest.
$ac_ext >&5
7592 eval "ac_cv_func_$ac_func=no"
7597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7598 echo "$ac_t""yes" 1>&6
7599 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7600 cat >> confdefs.h
<<EOF
7601 #define $ac_tr_func 1
7605 echo "$ac_t""no" 1>&6
7609 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7610 echo "configure:7611: checking for getprpwnam in -lsecurity" >&5
7611 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7612 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7613 echo $ac_n "(cached) $ac_c" 1>&6
7615 ac_save_LIBS
="$LIBS"
7616 LIBS
="-lsecurity $LIBS"
7617 cat > conftest.
$ac_ext <<EOF
7618 #line 7619 "configure"
7619 #include "confdefs.h"
7620 /* Override any gcc2 internal prototype to avoid an error. */
7621 /* We use char because int might match the return type of a gcc2
7622 builtin and then its argument prototype would still apply. */
7629 if { (eval echo configure
:7630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7631 eval "ac_cv_lib_$ac_lib_var=yes"
7633 echo "configure: failed program was:" >&5
7634 cat conftest.
$ac_ext >&5
7636 eval "ac_cv_lib_$ac_lib_var=no"
7639 LIBS
="$ac_save_LIBS"
7642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7643 echo "$ac_t""yes" 1>&6
7644 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7645 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7646 cat >> confdefs.h
<<EOF
7647 #define $ac_tr_lib 1
7650 LIBS
="-lsecurity $LIBS"
7653 echo "$ac_t""no" 1>&6
7656 for ac_func
in getprpwnam
7658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7659 echo "configure:7660: checking for $ac_func" >&5
7660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7661 echo $ac_n "(cached) $ac_c" 1>&6
7663 cat > conftest.
$ac_ext <<EOF
7664 #line 7665 "configure"
7665 #include "confdefs.h"
7666 /* System header to define __stub macros and hopefully few prototypes,
7667 which can conflict with char $ac_func(); below. */
7669 /* Override any gcc2 internal prototype to avoid an error. */
7670 /* We use char because int might match the return type of a gcc2
7671 builtin and then its argument prototype would still apply. */
7676 /* The GNU C library defines this for functions which it implements
7677 to always fail with ENOSYS. Some functions are actually named
7678 something starting with __ and the normal name is an alias. */
7679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7687 if { (eval echo configure
:7688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7689 eval "ac_cv_func_$ac_func=yes"
7691 echo "configure: failed program was:" >&5
7692 cat conftest.
$ac_ext >&5
7694 eval "ac_cv_func_$ac_func=no"
7699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7700 echo "$ac_t""yes" 1>&6
7701 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7702 cat >> confdefs.h
<<EOF
7703 #define $ac_tr_func 1
7707 echo "$ac_t""no" 1>&6
7715 *-lsec*) for ac_func
in getprpwnam
7717 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7718 echo "configure:7719: checking for $ac_func" >&5
7719 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7720 echo $ac_n "(cached) $ac_c" 1>&6
7722 cat > conftest.
$ac_ext <<EOF
7723 #line 7724 "configure"
7724 #include "confdefs.h"
7725 /* System header to define __stub macros and hopefully few prototypes,
7726 which can conflict with char $ac_func(); below. */
7728 /* Override any gcc2 internal prototype to avoid an error. */
7729 /* We use char because int might match the return type of a gcc2
7730 builtin and then its argument prototype would still apply. */
7735 /* The GNU C library defines this for functions which it implements
7736 to always fail with ENOSYS. Some functions are actually named
7737 something starting with __ and the normal name is an alias. */
7738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7746 if { (eval echo configure
:7747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7748 eval "ac_cv_func_$ac_func=yes"
7750 echo "configure: failed program was:" >&5
7751 cat conftest.
$ac_ext >&5
7753 eval "ac_cv_func_$ac_func=no"
7758 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7759 echo "$ac_t""yes" 1>&6
7760 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7761 cat >> confdefs.h
<<EOF
7762 #define $ac_tr_func 1
7766 echo "$ac_t""no" 1>&6
7770 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
7771 echo "configure:7772: checking for getprpwnam in -lsec" >&5
7772 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
7773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7774 echo $ac_n "(cached) $ac_c" 1>&6
7776 ac_save_LIBS
="$LIBS"
7778 cat > conftest.
$ac_ext <<EOF
7779 #line 7780 "configure"
7780 #include "confdefs.h"
7781 /* Override any gcc2 internal prototype to avoid an error. */
7782 /* We use char because int might match the return type of a gcc2
7783 builtin and then its argument prototype would still apply. */
7790 if { (eval echo configure
:7791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7792 eval "ac_cv_lib_$ac_lib_var=yes"
7794 echo "configure: failed program was:" >&5
7795 cat conftest.
$ac_ext >&5
7797 eval "ac_cv_lib_$ac_lib_var=no"
7800 LIBS
="$ac_save_LIBS"
7803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7804 echo "$ac_t""yes" 1>&6
7805 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7806 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7807 cat >> confdefs.h
<<EOF
7808 #define $ac_tr_lib 1
7814 echo "$ac_t""no" 1>&6
7817 for ac_func
in getprpwnam
7819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7820 echo "configure:7821: checking for $ac_func" >&5
7821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7822 echo $ac_n "(cached) $ac_c" 1>&6
7824 cat > conftest.
$ac_ext <<EOF
7825 #line 7826 "configure"
7826 #include "confdefs.h"
7827 /* System header to define __stub macros and hopefully few prototypes,
7828 which can conflict with char $ac_func(); below. */
7830 /* Override any gcc2 internal prototype to avoid an error. */
7831 /* We use char because int might match the return type of a gcc2
7832 builtin and then its argument prototype would still apply. */
7837 /* The GNU C library defines this for functions which it implements
7838 to always fail with ENOSYS. Some functions are actually named
7839 something starting with __ and the normal name is an alias. */
7840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7848 if { (eval echo configure
:7849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7850 eval "ac_cv_func_$ac_func=yes"
7852 echo "configure: failed program was:" >&5
7853 cat conftest.
$ac_ext >&5
7855 eval "ac_cv_func_$ac_func=no"
7860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7861 echo "$ac_t""yes" 1>&6
7862 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7863 cat >> confdefs.h
<<EOF
7864 #define $ac_tr_func 1
7868 echo "$ac_t""no" 1>&6
7876 # this bit needs to be modified for each OS that is suported by
7877 # smbwrapper. You need to specify how to created a shared library and
7878 # how to compile C code to produce PIC object files
7880 # these are the defaults, good for lots of systems
7886 # and these are for particular systems
7888 *linux
*) cat >> confdefs.h
<<\EOF
7892 *solaris
*) cat >> confdefs.h
<<\EOF
7898 *sunos
*) cat >> confdefs.h
<<\EOF
7904 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
7906 *irix
*) cat >> confdefs.h
<<\EOF
7911 *irix6
*) cat >> confdefs.h
<<\EOF
7917 ATTEMPT_WRAP32_BUILD
=yes
7919 *aix
*) cat >> confdefs.h
<<\EOF
7923 *hpux
*) cat >> confdefs.h
<<\EOF
7928 # Use special PIC flags for the native HP-UX compiler.
7929 if test $ac_cv_prog_cc_Ae = yes; then
7934 *qnx
*) cat >> confdefs.h
<<\EOF
7938 *osf
*) cat >> confdefs.h
<<\EOF
7942 *sco
*) cat >> confdefs.h
<<\EOF
7946 *next2
*) cat >> confdefs.h
<<\EOF
7950 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
7951 set dummy
groff; ac_word
=$2
7952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7953 echo "configure:7954: checking for $ac_word" >&5
7954 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
7955 echo $ac_n "(cached) $ac_c" 1>&6
7957 if test -n "$ROFF"; then
7958 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
7960 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7962 for ac_dir
in $ac_dummy; do
7963 test -z "$ac_dir" && ac_dir
=.
7964 if test -f $ac_dir/$ac_word; then
7965 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
7972 ROFF
="$ac_cv_prog_ROFF"
7973 if test -n "$ROFF"; then
7974 echo "$ac_t""$ROFF" 1>&6
7976 echo "$ac_t""no" 1>&6
7981 *-univel-*) if test "$GCC" != yes ; then
7982 cat >> confdefs.h
<<\EOF
7983 #define HAVE_MEMSET 1
7989 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
7990 #define RELIANTUNIX 1
7996 if test "$GCC" != yes ; then
7997 cat >> confdefs.h
<<\EOF
7998 #define HAVE_MEMSET 1
8006 # try to work out how to produce pic code with this compiler
8007 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8008 echo "configure:8009: checking whether ${CC-cc} accepts -fpic" >&5
8009 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8010 echo $ac_n "(cached) $ac_c" 1>&6
8012 echo 'void f(){}' > conftest.c
8013 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8014 ac_cv_prog_cc_fpic
=yes
8016 ac_cv_prog_cc_fpic
=no
8022 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8023 if test $ac_cv_prog_cc_fpic = yes; then
8026 if test x
$PICFLAG = x
; then
8027 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8028 echo "configure:8029: checking whether ${CC-cc} accepts -Kpic" >&5
8029 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8030 echo $ac_n "(cached) $ac_c" 1>&6
8032 echo 'void f(){}' > conftest.c
8033 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8034 ac_cv_prog_cc_Kpic
=yes
8036 ac_cv_prog_cc_Kpic
=no
8042 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8043 if test $ac_cv_prog_cc_Kpic = yes; then
8047 if test x
$PICFLAG = x
; then
8048 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8049 echo "configure:8050: checking whether ${CC-cc} accepts -KPIC" >&5
8050 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8051 echo $ac_n "(cached) $ac_c" 1>&6
8053 echo 'void f(){}' > conftest.c
8054 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8055 ac_cv_prog_cc_KPIC
=yes
8057 ac_cv_prog_cc_KPIC
=no
8063 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8064 if test $ac_cv_prog_cc_KPIC = yes; then
8071 echo $ac_n "checking for long long""... $ac_c" 1>&6
8072 echo "configure:8073: checking for long long" >&5
8073 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8074 echo $ac_n "(cached) $ac_c" 1>&6
8077 if test "$cross_compiling" = yes; then
8078 samba_cv_have_longlong
=cross
8080 cat > conftest.
$ac_ext <<EOF
8081 #line 8082 "configure"
8082 #include "confdefs.h"
8084 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8086 if { (eval echo configure
:8087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8088 samba_cv_have_longlong
=yes
8090 echo "configure: failed program was:" >&5
8091 cat conftest.
$ac_ext >&5
8093 samba_cv_have_longlong
=no
8100 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8101 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8102 cat >> confdefs.h
<<\EOF
8103 #define HAVE_LONGLONG 1
8109 # Check if the compiler supports the LL prefix on long long integers.
8112 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8113 echo "configure:8114: checking for LL suffix on long long integers" >&5
8114 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8115 echo $ac_n "(cached) $ac_c" 1>&6
8118 cat > conftest.
$ac_ext <<EOF
8119 #line 8120 "configure"
8120 #include "confdefs.h"
8123 long long i = 0x8000000000LL
8126 if { (eval echo configure
:8127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8128 samba_cv_compiler_supports_ll
=yes
8130 echo "configure: failed program was:" >&5
8131 cat conftest.
$ac_ext >&5
8133 samba_cv_compiler_supports_ll
=no
8138 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8139 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8140 cat >> confdefs.h
<<\EOF
8141 #define COMPILER_SUPPORTS_LL 1
8147 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8148 echo "configure:8149: checking for 64 bit off_t" >&5
8149 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8150 echo $ac_n "(cached) $ac_c" 1>&6
8153 if test "$cross_compiling" = yes; then
8154 samba_cv_SIZEOF_OFF_T
=cross
8156 cat > conftest.
$ac_ext <<EOF
8157 #line 8158 "configure"
8158 #include "confdefs.h"
8160 #include <sys/stat.h>
8161 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8163 if { (eval echo configure
:8164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8165 samba_cv_SIZEOF_OFF_T
=yes
8167 echo "configure: failed program was:" >&5
8168 cat conftest.
$ac_ext >&5
8170 samba_cv_SIZEOF_OFF_T
=no
8177 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8178 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8179 cat >> confdefs.h
<<\EOF
8180 #define SIZEOF_OFF_T 8
8185 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8186 echo "configure:8187: checking for off64_t" >&5
8187 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8188 echo $ac_n "(cached) $ac_c" 1>&6
8191 if test "$cross_compiling" = yes; then
8192 samba_cv_HAVE_OFF64_T
=cross
8194 cat > conftest.
$ac_ext <<EOF
8195 #line 8196 "configure"
8196 #include "confdefs.h"
8198 #if defined(HAVE_UNISTD_H)
8202 #include <sys/stat.h>
8203 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8205 if { (eval echo configure
:8206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8207 samba_cv_HAVE_OFF64_T
=yes
8209 echo "configure: failed program was:" >&5
8210 cat conftest.
$ac_ext >&5
8212 samba_cv_HAVE_OFF64_T
=no
8219 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8220 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8221 cat >> confdefs.h
<<\EOF
8222 #define HAVE_OFF64_T 1
8227 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8228 echo "configure:8229: checking for 64 bit ino_t" >&5
8229 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8230 echo $ac_n "(cached) $ac_c" 1>&6
8233 if test "$cross_compiling" = yes; then
8234 samba_cv_SIZEOF_INO_T
=cross
8236 cat > conftest.
$ac_ext <<EOF
8237 #line 8238 "configure"
8238 #include "confdefs.h"
8240 #include <sys/stat.h>
8241 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8243 if { (eval echo configure
:8244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8245 samba_cv_SIZEOF_INO_T
=yes
8247 echo "configure: failed program was:" >&5
8248 cat conftest.
$ac_ext >&5
8250 samba_cv_SIZEOF_INO_T
=no
8257 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8258 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8259 cat >> confdefs.h
<<\EOF
8260 #define SIZEOF_INO_T 8
8265 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8266 echo "configure:8267: checking for ino64_t" >&5
8267 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8268 echo $ac_n "(cached) $ac_c" 1>&6
8271 if test "$cross_compiling" = yes; then
8272 samba_cv_HAVE_INO64_T
=cross
8274 cat > conftest.
$ac_ext <<EOF
8275 #line 8276 "configure"
8276 #include "confdefs.h"
8278 #if defined(HAVE_UNISTD_H)
8282 #include <sys/stat.h>
8283 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8285 if { (eval echo configure
:8286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8287 samba_cv_HAVE_INO64_T
=yes
8289 echo "configure: failed program was:" >&5
8290 cat conftest.
$ac_ext >&5
8292 samba_cv_HAVE_INO64_T
=no
8299 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8300 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8301 cat >> confdefs.h
<<\EOF
8302 #define HAVE_INO64_T 1
8307 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8308 echo "configure:8309: checking for struct dirent64" >&5
8309 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8310 echo $ac_n "(cached) $ac_c" 1>&6
8313 cat > conftest.
$ac_ext <<EOF
8314 #line 8315 "configure"
8315 #include "confdefs.h"
8317 #if defined(HAVE_UNISTD_H)
8320 #include <sys/types.h>
8326 if { (eval echo configure
:8327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8328 samba_cv_HAVE_STRUCT_DIRENT64
=yes
8330 echo "configure: failed program was:" >&5
8331 cat conftest.
$ac_ext >&5
8333 samba_cv_HAVE_STRUCT_DIRENT64
=no
8338 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8339 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
8340 cat >> confdefs.h
<<\EOF
8341 #define HAVE_STRUCT_DIRENT64 1
8346 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8347 echo "configure:8348: checking for unsigned char" >&5
8348 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8349 echo $ac_n "(cached) $ac_c" 1>&6
8352 if test "$cross_compiling" = yes; then
8353 samba_cv_HAVE_UNSIGNED_CHAR
=cross
8355 cat > conftest.
$ac_ext <<EOF
8356 #line 8357 "configure"
8357 #include "confdefs.h"
8359 main() { char c; c=250; exit((c > 0)?0:1); }
8361 if { (eval echo configure
:8362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8363 samba_cv_HAVE_UNSIGNED_CHAR
=yes
8365 echo "configure: failed program was:" >&5
8366 cat conftest.
$ac_ext >&5
8368 samba_cv_HAVE_UNSIGNED_CHAR
=no
8375 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8376 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
8377 cat >> confdefs.h
<<\EOF
8378 #define HAVE_UNSIGNED_CHAR 1
8383 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8384 echo "configure:8385: checking for sin_len in sock" >&5
8385 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8386 echo $ac_n "(cached) $ac_c" 1>&6
8389 cat > conftest.
$ac_ext <<EOF
8390 #line 8391 "configure"
8391 #include "confdefs.h"
8392 #include <sys/types.h>
8393 #include <sys/socket.h>
8394 #include <netinet/in.h>
8396 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8399 if { (eval echo configure
:8400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8401 samba_cv_HAVE_SOCK_SIN_LEN
=yes
8403 echo "configure: failed program was:" >&5
8404 cat conftest.
$ac_ext >&5
8406 samba_cv_HAVE_SOCK_SIN_LEN
=no
8411 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8412 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
8413 cat >> confdefs.h
<<\EOF
8414 #define HAVE_SOCK_SIN_LEN 1
8419 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8420 echo "configure:8421: checking whether seekdir returns void" >&5
8421 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8422 echo $ac_n "(cached) $ac_c" 1>&6
8425 cat > conftest.
$ac_ext <<EOF
8426 #line 8427 "configure"
8427 #include "confdefs.h"
8428 #include <sys/types.h>
8430 void seekdir(DIR *d, long loc) { return; }
8435 if { (eval echo configure
:8436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8437 samba_cv_SEEKDIR_RETURNS_VOID
=yes
8439 echo "configure: failed program was:" >&5
8440 cat conftest.
$ac_ext >&5
8442 samba_cv_SEEKDIR_RETURNS_VOID
=no
8447 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8448 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
8449 cat >> confdefs.h
<<\EOF
8450 #define SEEKDIR_RETURNS_VOID 1
8455 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8456 echo "configure:8457: checking for __FILE__ macro" >&5
8457 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8458 echo $ac_n "(cached) $ac_c" 1>&6
8461 cat > conftest.
$ac_ext <<EOF
8462 #line 8463 "configure"
8463 #include "confdefs.h"
8466 printf("%s\n", __FILE__);
8469 if { (eval echo configure
:8470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8471 samba_cv_HAVE_FILE_MACRO
=yes
8473 echo "configure: failed program was:" >&5
8474 cat conftest.
$ac_ext >&5
8476 samba_cv_HAVE_FILE_MACRO
=no
8481 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8482 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
8483 cat >> confdefs.h
<<\EOF
8484 #define HAVE_FILE_MACRO 1
8489 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8490 echo "configure:8491: checking for __FUNCTION__ macro" >&5
8491 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8492 echo $ac_n "(cached) $ac_c" 1>&6
8495 cat > conftest.
$ac_ext <<EOF
8496 #line 8497 "configure"
8497 #include "confdefs.h"
8500 printf("%s\n", __FUNCTION__);
8503 if { (eval echo configure
:8504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8505 samba_cv_HAVE_FUNCTION_MACRO
=yes
8507 echo "configure: failed program was:" >&5
8508 cat conftest.
$ac_ext >&5
8510 samba_cv_HAVE_FUNCTION_MACRO
=no
8515 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8516 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
8517 cat >> confdefs.h
<<\EOF
8518 #define HAVE_FUNCTION_MACRO 1
8523 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8524 echo "configure:8525: checking if gettimeofday takes tz argument" >&5
8525 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8526 echo $ac_n "(cached) $ac_c" 1>&6
8529 if test "$cross_compiling" = yes; then
8530 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
8532 cat > conftest.
$ac_ext <<EOF
8533 #line 8534 "configure"
8534 #include "confdefs.h"
8536 #include <sys/time.h>
8538 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8540 if { (eval echo configure
:8541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8542 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
8544 echo "configure: failed program was:" >&5
8545 cat conftest.
$ac_ext >&5
8547 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
8554 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8555 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
8556 cat >> confdefs.h
<<\EOF
8557 #define HAVE_GETTIMEOFDAY_TZ 1
8563 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8564 echo "configure:8565: checking for broken readdir" >&5
8565 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8566 echo $ac_n "(cached) $ac_c" 1>&6
8569 if test "$cross_compiling" = yes; then
8570 samba_cv_HAVE_BROKEN_READDIR
=cross
8572 cat > conftest.
$ac_ext <<EOF
8573 #line 8574 "configure"
8574 #include "confdefs.h"
8575 #include <sys/types.h>
8577 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8578 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8579 di->d_name[0] == 0) exit(0); exit(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_BROKEN_READDIR
=yes
8585 echo "configure: failed program was:" >&5
8586 cat conftest.
$ac_ext >&5
8588 samba_cv_HAVE_BROKEN_READDIR
=no
8595 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
8596 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
8597 cat >> confdefs.h
<<\EOF
8598 #define HAVE_BROKEN_READDIR 1
8603 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
8604 echo "configure:8605: checking for utimbuf" >&5
8605 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
8606 echo $ac_n "(cached) $ac_c" 1>&6
8609 cat > conftest.
$ac_ext <<EOF
8610 #line 8611 "configure"
8611 #include "confdefs.h"
8612 #include <sys/types.h>
8615 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
8618 if { (eval echo configure
:8619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8620 samba_cv_HAVE_UTIMBUF
=yes
8622 echo "configure: failed program was:" >&5
8623 cat conftest.
$ac_ext >&5
8625 samba_cv_HAVE_UTIMBUF
=no
8630 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
8631 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
8632 cat >> confdefs.h
<<\EOF
8633 #define HAVE_UTIMBUF 1
8639 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
8641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8642 echo "configure:8643: checking for $ac_func" >&5
8643 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8644 echo $ac_n "(cached) $ac_c" 1>&6
8646 cat > conftest.
$ac_ext <<EOF
8647 #line 8648 "configure"
8648 #include "confdefs.h"
8649 /* System header to define __stub macros and hopefully few prototypes,
8650 which can conflict with char $ac_func(); below. */
8652 /* Override any gcc2 internal prototype to avoid an error. */
8653 /* We use char because int might match the return type of a gcc2
8654 builtin and then its argument prototype would still apply. */
8659 /* The GNU C library defines this for functions which it implements
8660 to always fail with ENOSYS. Some functions are actually named
8661 something starting with __ and the normal name is an alias. */
8662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8670 if { (eval echo configure
:8671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8672 eval "ac_cv_func_$ac_func=yes"
8674 echo "configure: failed program was:" >&5
8675 cat conftest.
$ac_ext >&5
8677 eval "ac_cv_func_$ac_func=no"
8682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8683 echo "$ac_t""yes" 1>&6
8684 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8685 cat >> confdefs.h
<<EOF
8686 #define $ac_tr_func 1
8690 echo "$ac_t""no" 1>&6
8695 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
8696 echo "configure:8697: checking for ut_name in utmp" >&5
8697 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
8698 echo $ac_n "(cached) $ac_c" 1>&6
8701 cat > conftest.
$ac_ext <<EOF
8702 #line 8703 "configure"
8703 #include "confdefs.h"
8704 #include <sys/types.h>
8707 struct utmp ut; ut.ut_name[0] = 'a';
8710 if { (eval echo configure
:8711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8712 samba_cv_HAVE_UT_UT_NAME
=yes
8714 echo "configure: failed program was:" >&5
8715 cat conftest.
$ac_ext >&5
8717 samba_cv_HAVE_UT_UT_NAME
=no
8722 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
8723 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
8724 cat >> confdefs.h
<<\EOF
8725 #define HAVE_UT_UT_NAME 1
8730 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
8731 echo "configure:8732: checking for ut_user in utmp" >&5
8732 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
8733 echo $ac_n "(cached) $ac_c" 1>&6
8736 cat > conftest.
$ac_ext <<EOF
8737 #line 8738 "configure"
8738 #include "confdefs.h"
8739 #include <sys/types.h>
8742 struct utmp ut; ut.ut_user[0] = 'a';
8745 if { (eval echo configure
:8746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8747 samba_cv_HAVE_UT_UT_USER
=yes
8749 echo "configure: failed program was:" >&5
8750 cat conftest.
$ac_ext >&5
8752 samba_cv_HAVE_UT_UT_USER
=no
8757 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
8758 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
8759 cat >> confdefs.h
<<\EOF
8760 #define HAVE_UT_UT_USER 1
8765 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
8766 echo "configure:8767: checking for ut_id in utmp" >&5
8767 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
8768 echo $ac_n "(cached) $ac_c" 1>&6
8771 cat > conftest.
$ac_ext <<EOF
8772 #line 8773 "configure"
8773 #include "confdefs.h"
8774 #include <sys/types.h>
8777 struct utmp ut; ut.ut_id[0] = 'a';
8780 if { (eval echo configure
:8781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8782 samba_cv_HAVE_UT_UT_ID
=yes
8784 echo "configure: failed program was:" >&5
8785 cat conftest.
$ac_ext >&5
8787 samba_cv_HAVE_UT_UT_ID
=no
8792 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
8793 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
8794 cat >> confdefs.h
<<\EOF
8795 #define HAVE_UT_UT_ID 1
8800 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
8801 echo "configure:8802: checking for ut_host in utmp" >&5
8802 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
8803 echo $ac_n "(cached) $ac_c" 1>&6
8806 cat > conftest.
$ac_ext <<EOF
8807 #line 8808 "configure"
8808 #include "confdefs.h"
8809 #include <sys/types.h>
8812 struct utmp ut; ut.ut_host[0] = 'a';
8815 if { (eval echo configure
:8816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8817 samba_cv_HAVE_UT_UT_HOST
=yes
8819 echo "configure: failed program was:" >&5
8820 cat conftest.
$ac_ext >&5
8822 samba_cv_HAVE_UT_UT_HOST
=no
8827 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
8828 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
8829 cat >> confdefs.h
<<\EOF
8830 #define HAVE_UT_UT_HOST 1
8835 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
8836 echo "configure:8837: checking for ut_time in utmp" >&5
8837 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
8838 echo $ac_n "(cached) $ac_c" 1>&6
8841 cat > conftest.
$ac_ext <<EOF
8842 #line 8843 "configure"
8843 #include "confdefs.h"
8844 #include <sys/types.h>
8847 struct utmp ut; time_t t; ut.ut_time = t;
8850 if { (eval echo configure
:8851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8852 samba_cv_HAVE_UT_UT_TIME
=yes
8854 echo "configure: failed program was:" >&5
8855 cat conftest.
$ac_ext >&5
8857 samba_cv_HAVE_UT_UT_TIME
=no
8862 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
8863 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
8864 cat >> confdefs.h
<<\EOF
8865 #define HAVE_UT_UT_TIME 1
8870 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
8871 echo "configure:8872: checking for ut_tv in utmp" >&5
8872 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
8873 echo $ac_n "(cached) $ac_c" 1>&6
8876 cat > conftest.
$ac_ext <<EOF
8877 #line 8878 "configure"
8878 #include "confdefs.h"
8879 #include <sys/types.h>
8882 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
8885 if { (eval echo configure
:8886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8887 samba_cv_HAVE_UT_UT_TV
=yes
8889 echo "configure: failed program was:" >&5
8890 cat conftest.
$ac_ext >&5
8892 samba_cv_HAVE_UT_UT_TV
=no
8897 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
8898 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
8899 cat >> confdefs.h
<<\EOF
8900 #define HAVE_UT_UT_TV 1
8905 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
8906 echo "configure:8907: checking for ut_type in utmp" >&5
8907 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
8908 echo $ac_n "(cached) $ac_c" 1>&6
8911 cat > conftest.
$ac_ext <<EOF
8912 #line 8913 "configure"
8913 #include "confdefs.h"
8914 #include <sys/types.h>
8917 struct utmp ut; ut.ut_type = 0;
8920 if { (eval echo configure
:8921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8922 samba_cv_HAVE_UT_UT_TYPE
=yes
8924 echo "configure: failed program was:" >&5
8925 cat conftest.
$ac_ext >&5
8927 samba_cv_HAVE_UT_UT_TYPE
=no
8932 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
8933 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
8934 cat >> confdefs.h
<<\EOF
8935 #define HAVE_UT_UT_TYPE 1
8940 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
8941 echo "configure:8942: checking for ut_pid in utmp" >&5
8942 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
8943 echo $ac_n "(cached) $ac_c" 1>&6
8946 cat > conftest.
$ac_ext <<EOF
8947 #line 8948 "configure"
8948 #include "confdefs.h"
8949 #include <sys/types.h>
8952 struct utmp ut; ut.ut_pid = 0;
8955 if { (eval echo configure
:8956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8957 samba_cv_HAVE_UT_UT_PID
=yes
8959 echo "configure: failed program was:" >&5
8960 cat conftest.
$ac_ext >&5
8962 samba_cv_HAVE_UT_UT_PID
=no
8967 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
8968 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
8969 cat >> confdefs.h
<<\EOF
8970 #define HAVE_UT_UT_PID 1
8975 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
8976 echo "configure:8977: checking for ut_exit in utmp" >&5
8977 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
8978 echo $ac_n "(cached) $ac_c" 1>&6
8981 cat > conftest.
$ac_ext <<EOF
8982 #line 8983 "configure"
8983 #include "confdefs.h"
8984 #include <sys/types.h>
8987 struct utmp ut; ut.ut_exit.e_exit = 0;
8990 if { (eval echo configure
:8991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8992 samba_cv_HAVE_UT_UT_EXIT
=yes
8994 echo "configure: failed program was:" >&5
8995 cat conftest.
$ac_ext >&5
8997 samba_cv_HAVE_UT_UT_EXIT
=no
9002 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9003 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
9004 cat >> confdefs.h
<<\EOF
9005 #define HAVE_UT_UT_EXIT 1
9010 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9011 echo "configure:9012: checking for ut_addr in utmp" >&5
9012 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9013 echo $ac_n "(cached) $ac_c" 1>&6
9016 cat > conftest.
$ac_ext <<EOF
9017 #line 9018 "configure"
9018 #include "confdefs.h"
9019 #include <sys/types.h>
9022 struct utmp ut; ut.ut_addr = 0;
9025 if { (eval echo configure
:9026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9027 samba_cv_HAVE_UT_UT_ADDR
=yes
9029 echo "configure: failed program was:" >&5
9030 cat conftest.
$ac_ext >&5
9032 samba_cv_HAVE_UT_UT_ADDR
=no
9037 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9038 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
9039 cat >> confdefs.h
<<\EOF
9040 #define HAVE_UT_UT_ADDR 1
9045 if test x
$ac_cv_func_pututline = xyes
; then
9046 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9047 echo "configure:9048: checking whether pututline returns pointer" >&5
9048 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9049 echo $ac_n "(cached) $ac_c" 1>&6
9052 cat > conftest.
$ac_ext <<EOF
9053 #line 9054 "configure"
9054 #include "confdefs.h"
9055 #include <sys/types.h>
9058 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9061 if { (eval echo configure
:9062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9063 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
9065 echo "configure: failed program was:" >&5
9066 cat conftest.
$ac_ext >&5
9068 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
9073 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9074 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
9075 cat >> confdefs.h
<<\EOF
9076 #define PUTUTLINE_RETURNS_UTMP 1
9082 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9083 echo "configure:9084: checking for ut_syslen in utmpx" >&5
9084 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9085 echo $ac_n "(cached) $ac_c" 1>&6
9088 cat > conftest.
$ac_ext <<EOF
9089 #line 9090 "configure"
9090 #include "confdefs.h"
9091 #include <sys/types.h>
9094 struct utmpx ux; ux.ut_syslen = 0;
9097 if { (eval echo configure
:9098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9099 samba_cv_HAVE_UX_UT_SYSLEN
=yes
9101 echo "configure: failed program was:" >&5
9102 cat conftest.
$ac_ext >&5
9104 samba_cv_HAVE_UX_UT_SYSLEN
=no
9109 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9110 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
9111 cat >> confdefs.h
<<\EOF
9112 #define HAVE_UX_UT_SYSLEN 1
9117 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9118 echo "configure:9119: checking for Linux kernel oplocks" >&5
9119 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9120 echo $ac_n "(cached) $ac_c" 1>&6
9123 if test "$cross_compiling" = yes; then
9124 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
9126 cat > conftest.
$ac_ext <<EOF
9127 #line 9128 "configure"
9128 #include "confdefs.h"
9130 #include <sys/types.h>
9133 #define F_GETLEASE 1025
9136 int fd = open("/dev/null", O_RDONLY);
9137 return fcntl(fd, F_GETLEASE, 0) == -1;
9141 if { (eval echo configure
:9142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9143 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
9145 echo "configure: failed program was:" >&5
9146 cat conftest.
$ac_ext >&5
9148 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
9155 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9156 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
9157 cat >> confdefs.h
<<\EOF
9158 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9163 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9164 echo "configure:9165: checking for kernel change notify support" >&5
9165 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9166 echo $ac_n "(cached) $ac_c" 1>&6
9169 if test "$cross_compiling" = yes; then
9170 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
9172 cat > conftest.
$ac_ext <<EOF
9173 #line 9174 "configure"
9174 #include "confdefs.h"
9176 #include <sys/types.h>
9180 #define F_NOTIFY 1026
9183 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9187 if { (eval echo configure
:9188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9189 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
9191 echo "configure: failed program was:" >&5
9192 cat conftest.
$ac_ext >&5
9194 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
9201 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9202 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
9203 cat >> confdefs.h
<<\EOF
9204 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9209 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9210 echo "configure:9211: checking for kernel share modes" >&5
9211 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9212 echo $ac_n "(cached) $ac_c" 1>&6
9215 if test "$cross_compiling" = yes; then
9216 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
9218 cat > conftest.
$ac_ext <<EOF
9219 #line 9220 "configure"
9220 #include "confdefs.h"
9222 #include <sys/types.h>
9225 #include <sys/file.h>
9227 #define LOCK_MAND 32
9228 #define LOCK_READ 64
9231 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9235 if { (eval echo configure
:9236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9237 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
9239 echo "configure: failed program was:" >&5
9240 cat conftest.
$ac_ext >&5
9242 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
9249 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9250 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
9251 cat >> confdefs.h
<<\EOF
9252 #define HAVE_KERNEL_SHARE_MODES 1
9260 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9261 echo "configure:9262: checking for IRIX kernel oplock type definitions" >&5
9262 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9263 echo $ac_n "(cached) $ac_c" 1>&6
9266 cat > conftest.
$ac_ext <<EOF
9267 #line 9268 "configure"
9268 #include "confdefs.h"
9269 #include <sys/types.h>
9272 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9275 if { (eval echo configure
:9276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9277 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
9279 echo "configure: failed program was:" >&5
9280 cat conftest.
$ac_ext >&5
9282 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
9287 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9288 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
9289 cat >> confdefs.h
<<\EOF
9290 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9295 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9296 echo "configure:9297: checking for irix specific capabilities" >&5
9297 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9298 echo $ac_n "(cached) $ac_c" 1>&6
9301 if test "$cross_compiling" = yes; then
9302 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
9304 cat > conftest.
$ac_ext <<EOF
9305 #line 9306 "configure"
9306 #include "confdefs.h"
9307 #include <sys/types.h>
9308 #include <sys/capability.h>
9311 if ((cap = cap_get_proc()) == NULL)
9313 cap->cap_effective |= CAP_NETWORK_MGT;
9314 cap->cap_inheritable |= CAP_NETWORK_MGT;
9320 if { (eval echo configure
:9321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9322 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
9324 echo "configure: failed program was:" >&5
9325 cat conftest.
$ac_ext >&5
9327 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
9334 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9335 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
9336 cat >> confdefs.h
<<\EOF
9337 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9343 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9344 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9347 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9348 echo "configure:9349: checking for int16 typedef included by rpc/rpc.h" >&5
9349 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9350 echo $ac_n "(cached) $ac_c" 1>&6
9353 cat > conftest.
$ac_ext <<EOF
9354 #line 9355 "configure"
9355 #include "confdefs.h"
9356 #include <sys/types.h>
9357 #if defined(HAVE_RPC_RPC_H)
9358 #include <rpc/rpc.h>
9364 if { (eval echo configure
:9365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9366 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
9368 echo "configure: failed program was:" >&5
9369 cat conftest.
$ac_ext >&5
9371 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
9376 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9377 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
9378 cat >> confdefs.h
<<\EOF
9379 #define HAVE_INT16_FROM_RPC_RPC_H 1
9384 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9385 echo "configure:9386: checking for uint16 typedef included by rpc/rpc.h" >&5
9386 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9387 echo $ac_n "(cached) $ac_c" 1>&6
9390 cat > conftest.
$ac_ext <<EOF
9391 #line 9392 "configure"
9392 #include "confdefs.h"
9393 #include <sys/types.h>
9394 #if defined(HAVE_RPC_RPC_H)
9395 #include <rpc/rpc.h>
9401 if { (eval echo configure
:9402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9403 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
9405 echo "configure: failed program was:" >&5
9406 cat conftest.
$ac_ext >&5
9408 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
9413 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9414 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
9415 cat >> confdefs.h
<<\EOF
9416 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9421 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9422 echo "configure:9423: checking for int32 typedef included by rpc/rpc.h" >&5
9423 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9424 echo $ac_n "(cached) $ac_c" 1>&6
9427 cat > conftest.
$ac_ext <<EOF
9428 #line 9429 "configure"
9429 #include "confdefs.h"
9430 #include <sys/types.h>
9431 #if defined(HAVE_RPC_RPC_H)
9432 #include <rpc/rpc.h>
9438 if { (eval echo configure
:9439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9440 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
9442 echo "configure: failed program was:" >&5
9443 cat conftest.
$ac_ext >&5
9445 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
9450 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9451 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
9452 cat >> confdefs.h
<<\EOF
9453 #define HAVE_INT32_FROM_RPC_RPC_H 1
9458 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9459 echo "configure:9460: checking for uint32 typedef included by rpc/rpc.h" >&5
9460 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9461 echo $ac_n "(cached) $ac_c" 1>&6
9464 cat > conftest.
$ac_ext <<EOF
9465 #line 9466 "configure"
9466 #include "confdefs.h"
9467 #include <sys/types.h>
9468 #if defined(HAVE_RPC_RPC_H)
9469 #include <rpc/rpc.h>
9475 if { (eval echo configure
:9476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9477 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
9479 echo "configure: failed program was:" >&5
9480 cat conftest.
$ac_ext >&5
9482 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
9487 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
9488 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
9489 cat >> confdefs.h
<<\EOF
9490 #define HAVE_UINT32_FROM_RPC_RPC_H 1
9496 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
9497 echo "configure:9498: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
9498 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
9499 echo $ac_n "(cached) $ac_c" 1>&6
9502 cat > conftest.
$ac_ext <<EOF
9503 #line 9504 "configure"
9504 #include "confdefs.h"
9505 #include <sys/types.h>
9506 #ifdef HAVE_SYS_SECURITY_H
9507 #include <sys/security.h>
9509 #endif /* HAVE_SYS_SECURITY_H */
9510 #if defined(HAVE_RPC_RPC_H)
9511 #include <rpc/rpc.h>
9517 if { (eval echo configure
:9518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9519 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
9521 echo "configure: failed program was:" >&5
9522 cat conftest.
$ac_ext >&5
9524 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
9529 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9530 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
9531 cat >> confdefs.h
<<\EOF
9532 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9537 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9538 echo "configure:9539: checking for test routines" >&5
9539 if test "$cross_compiling" = yes; then
9540 echo "configure: warning: cannot run when cross-compiling" 1>&2
9542 cat > conftest.
$ac_ext <<EOF
9543 #line 9544 "configure"
9544 #include "confdefs.h"
9545 #include "${srcdir-.}/tests/trivial.c"
9547 if { (eval echo configure
:9548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9549 echo "$ac_t""yes" 1>&6
9551 echo "configure: failed program was:" >&5
9552 cat conftest.
$ac_ext >&5
9554 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9560 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9561 echo "configure:9562: checking for ftruncate extend" >&5
9562 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
9563 echo $ac_n "(cached) $ac_c" 1>&6
9566 if test "$cross_compiling" = yes; then
9567 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
9569 cat > conftest.
$ac_ext <<EOF
9570 #line 9571 "configure"
9571 #include "confdefs.h"
9572 #include "${srcdir-.}/tests/ftruncate.c"
9574 if { (eval echo configure
:9575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9576 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
9578 echo "configure: failed program was:" >&5
9579 cat conftest.
$ac_ext >&5
9581 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
9588 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
9589 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
9590 cat >> confdefs.h
<<\EOF
9591 #define HAVE_FTRUNCATE_EXTEND 1
9596 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
9597 echo "configure:9598: checking for broken getgroups" >&5
9598 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
9599 echo $ac_n "(cached) $ac_c" 1>&6
9602 if test "$cross_compiling" = yes; then
9603 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
9605 cat > conftest.
$ac_ext <<EOF
9606 #line 9607 "configure"
9607 #include "confdefs.h"
9608 #include "${srcdir-.}/tests/getgroups.c"
9610 if { (eval echo configure
:9611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9612 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
9614 echo "configure: failed program was:" >&5
9615 cat conftest.
$ac_ext >&5
9617 samba_cv_HAVE_BROKEN_GETGROUPS
=no
9624 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
9625 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
9626 cat >> confdefs.h
<<\EOF
9627 #define HAVE_BROKEN_GETGROUPS 1
9632 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
9633 echo "configure:9634: checking whether getpass should be replaced" >&5
9634 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
9635 echo $ac_n "(cached) $ac_c" 1>&6
9638 SAVE_CPPFLAGS
="$CPPFLAGS"
9639 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
9640 cat > conftest.
$ac_ext <<EOF
9641 #line 9642 "configure"
9642 #include "confdefs.h"
9644 #define REPLACE_GETPASS 1
9645 #define NO_CONFIG_H 1
9646 #define main dont_declare_main
9647 #include "${srcdir-.}/lib/getsmbpass.c"
9654 if { (eval echo configure
:9655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9656 samba_cv_REPLACE_GETPASS
=yes
9658 echo "configure: failed program was:" >&5
9659 cat conftest.
$ac_ext >&5
9661 samba_cv_REPLACE_GETPASS
=no
9664 CPPFLAGS
="$SAVE_CPPFLAGS"
9668 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
9669 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
9670 cat >> confdefs.h
<<\EOF
9671 #define REPLACE_GETPASS 1
9676 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
9677 echo "configure:9678: checking for broken inet_ntoa" >&5
9678 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
9679 echo $ac_n "(cached) $ac_c" 1>&6
9682 if test "$cross_compiling" = yes; then
9683 samba_cv_REPLACE_INET_NTOA
=cross
9685 cat > conftest.
$ac_ext <<EOF
9686 #line 9687 "configure"
9687 #include "confdefs.h"
9690 #include <sys/types.h>
9691 #include <netinet/in.h>
9692 #ifdef HAVE_ARPA_INET_H
9693 #include <arpa/inet.h>
9695 main() { struct in_addr ip; ip.s_addr = 0x12345678;
9696 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
9697 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
9700 if { (eval echo configure
:9701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9702 samba_cv_REPLACE_INET_NTOA
=yes
9704 echo "configure: failed program was:" >&5
9705 cat conftest.
$ac_ext >&5
9707 samba_cv_REPLACE_INET_NTOA
=no
9714 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
9715 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
9716 cat >> confdefs.h
<<\EOF
9717 #define REPLACE_INET_NTOA 1
9722 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
9723 echo "configure:9724: checking for sysconf(_SC_NGROUPS_MAX)" >&5
9724 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
9725 echo $ac_n "(cached) $ac_c" 1>&6
9728 if test "$cross_compiling" = yes; then
9729 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
9731 cat > conftest.
$ac_ext <<EOF
9732 #line 9733 "configure"
9733 #include "confdefs.h"
9735 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
9737 if { (eval echo configure
:9738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9739 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
9741 echo "configure: failed program was:" >&5
9742 cat conftest.
$ac_ext >&5
9744 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
9751 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
9752 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
9753 cat >> confdefs.h
<<\EOF
9754 #define SYSCONF_SC_NGROUPS_MAX 1
9759 echo $ac_n "checking for root""... $ac_c" 1>&6
9760 echo "configure:9761: checking for root" >&5
9761 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
9762 echo $ac_n "(cached) $ac_c" 1>&6
9765 if test "$cross_compiling" = yes; then
9766 samba_cv_HAVE_ROOT
=cross
9768 cat > conftest.
$ac_ext <<EOF
9769 #line 9770 "configure"
9770 #include "confdefs.h"
9771 main() { exit(getuid() != 0); }
9773 if { (eval echo configure
:9774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9775 samba_cv_HAVE_ROOT
=yes
9777 echo "configure: failed program was:" >&5
9778 cat conftest.
$ac_ext >&5
9780 samba_cv_HAVE_ROOT
=no
9787 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
9788 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
9789 cat >> confdefs.h
<<\EOF
9794 echo "configure: warning: running as non-root will disable some tests" 1>&2
9798 # look for a method of finding the list of network interfaces
9800 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
9801 echo "configure:9802: checking for iface AIX" >&5
9802 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
9803 echo $ac_n "(cached) $ac_c" 1>&6
9806 if test "$cross_compiling" = yes; then
9807 samba_cv_HAVE_IFACE_AIX
=cross
9809 cat > conftest.
$ac_ext <<EOF
9810 #line 9811 "configure"
9811 #include "confdefs.h"
9813 #define HAVE_IFACE_AIX 1
9814 #define AUTOCONF_TEST 1
9815 #include "confdefs.h"
9816 #include "${srcdir-.}/lib/interfaces.c"
9818 if { (eval echo configure
:9819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9820 samba_cv_HAVE_IFACE_AIX
=yes
9822 echo "configure: failed program was:" >&5
9823 cat conftest.
$ac_ext >&5
9825 samba_cv_HAVE_IFACE_AIX
=no
9832 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
9833 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
9834 iface
=yes;cat >> confdefs.h
<<\EOF
9835 #define HAVE_IFACE_AIX 1
9840 if test $iface = no
; then
9841 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
9842 echo "configure:9843: checking for iface ifconf" >&5
9843 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
9844 echo $ac_n "(cached) $ac_c" 1>&6
9847 if test "$cross_compiling" = yes; then
9848 samba_cv_HAVE_IFACE_IFCONF
=cross
9850 cat > conftest.
$ac_ext <<EOF
9851 #line 9852 "configure"
9852 #include "confdefs.h"
9854 #define HAVE_IFACE_IFCONF 1
9855 #define AUTOCONF_TEST 1
9856 #include "confdefs.h"
9857 #include "${srcdir-.}/lib/interfaces.c"
9859 if { (eval echo configure
:9860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9861 samba_cv_HAVE_IFACE_IFCONF
=yes
9863 echo "configure: failed program was:" >&5
9864 cat conftest.
$ac_ext >&5
9866 samba_cv_HAVE_IFACE_IFCONF
=no
9873 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
9874 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
9875 iface
=yes;cat >> confdefs.h
<<\EOF
9876 #define HAVE_IFACE_IFCONF 1
9882 if test $iface = no
; then
9883 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
9884 echo "configure:9885: checking for iface ifreq" >&5
9885 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
9886 echo $ac_n "(cached) $ac_c" 1>&6
9889 if test "$cross_compiling" = yes; then
9890 samba_cv_HAVE_IFACE_IFREQ
=cross
9892 cat > conftest.
$ac_ext <<EOF
9893 #line 9894 "configure"
9894 #include "confdefs.h"
9896 #define HAVE_IFACE_IFREQ 1
9897 #define AUTOCONF_TEST 1
9898 #include "confdefs.h"
9899 #include "${srcdir-.}/lib/interfaces.c"
9901 if { (eval echo configure
:9902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9903 samba_cv_HAVE_IFACE_IFREQ
=yes
9905 echo "configure: failed program was:" >&5
9906 cat conftest.
$ac_ext >&5
9908 samba_cv_HAVE_IFACE_IFREQ
=no
9915 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
9916 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
9917 iface
=yes;cat >> confdefs.h
<<\EOF
9918 #define HAVE_IFACE_IFREQ 1
9925 ################################################
9926 # look for a method of setting the effective uid
9928 if test $seteuid = no
; then
9929 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
9930 echo "configure:9931: checking for setresuid" >&5
9931 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
9932 echo $ac_n "(cached) $ac_c" 1>&6
9935 if test "$cross_compiling" = yes; then
9936 samba_cv_USE_SETRESUID
=cross
9938 cat > conftest.
$ac_ext <<EOF
9939 #line 9940 "configure"
9940 #include "confdefs.h"
9942 #define AUTOCONF_TEST 1
9943 #define USE_SETRESUID 1
9944 #include "confdefs.h"
9945 #include "${srcdir-.}/lib/util_sec.c"
9947 if { (eval echo configure
:9948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9949 samba_cv_USE_SETRESUID
=yes
9951 echo "configure: failed program was:" >&5
9952 cat conftest.
$ac_ext >&5
9954 samba_cv_USE_SETRESUID
=no
9961 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
9962 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
9963 seteuid
=yes;cat >> confdefs.h
<<\EOF
9964 #define USE_SETRESUID 1
9971 if test $seteuid = no
; then
9972 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
9973 echo "configure:9974: checking for setreuid" >&5
9974 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
9975 echo $ac_n "(cached) $ac_c" 1>&6
9978 if test "$cross_compiling" = yes; then
9979 samba_cv_USE_SETREUID
=cross
9981 cat > conftest.
$ac_ext <<EOF
9982 #line 9983 "configure"
9983 #include "confdefs.h"
9985 #define AUTOCONF_TEST 1
9986 #define USE_SETREUID 1
9987 #include "confdefs.h"
9988 #include "${srcdir-.}/lib/util_sec.c"
9990 if { (eval echo configure
:9991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9992 samba_cv_USE_SETREUID
=yes
9994 echo "configure: failed program was:" >&5
9995 cat conftest.
$ac_ext >&5
9997 samba_cv_USE_SETREUID
=no
10004 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10005 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
10006 seteuid
=yes;cat >> confdefs.h
<<\EOF
10007 #define USE_SETREUID 1
10013 if test $seteuid = no
; then
10014 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10015 echo "configure:10016: checking for seteuid" >&5
10016 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10017 echo $ac_n "(cached) $ac_c" 1>&6
10020 if test "$cross_compiling" = yes; then
10021 samba_cv_USE_SETEUID
=cross
10023 cat > conftest.
$ac_ext <<EOF
10024 #line 10025 "configure"
10025 #include "confdefs.h"
10027 #define AUTOCONF_TEST 1
10028 #define USE_SETEUID 1
10029 #include "confdefs.h"
10030 #include "${srcdir-.}/lib/util_sec.c"
10032 if { (eval echo configure
:10033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10034 samba_cv_USE_SETEUID
=yes
10036 echo "configure: failed program was:" >&5
10037 cat conftest.
$ac_ext >&5
10039 samba_cv_USE_SETEUID
=no
10046 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10047 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
10048 seteuid
=yes;cat >> confdefs.h
<<\EOF
10049 #define USE_SETEUID 1
10055 if test $seteuid = no
; then
10056 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10057 echo "configure:10058: checking for setuidx" >&5
10058 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10059 echo $ac_n "(cached) $ac_c" 1>&6
10062 if test "$cross_compiling" = yes; then
10063 samba_cv_USE_SETUIDX
=cross
10065 cat > conftest.
$ac_ext <<EOF
10066 #line 10067 "configure"
10067 #include "confdefs.h"
10069 #define AUTOCONF_TEST 1
10070 #define USE_SETUIDX 1
10071 #include "confdefs.h"
10072 #include "${srcdir-.}/lib/util_sec.c"
10074 if { (eval echo configure
:10075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10076 samba_cv_USE_SETUIDX
=yes
10078 echo "configure: failed program was:" >&5
10079 cat conftest.
$ac_ext >&5
10081 samba_cv_USE_SETUIDX
=no
10088 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10089 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
10090 seteuid
=yes;cat >> confdefs.h
<<\EOF
10091 #define USE_SETUIDX 1
10098 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10099 echo "configure:10100: checking for working mmap" >&5
10100 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10101 echo $ac_n "(cached) $ac_c" 1>&6
10104 if test "$cross_compiling" = yes; then
10105 samba_cv_HAVE_MMAP
=cross
10107 cat > conftest.
$ac_ext <<EOF
10108 #line 10109 "configure"
10109 #include "confdefs.h"
10110 #include "${srcdir-.}/tests/shared_mmap.c"
10112 if { (eval echo configure
:10113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10114 samba_cv_HAVE_MMAP
=yes
10116 echo "configure: failed program was:" >&5
10117 cat conftest.
$ac_ext >&5
10119 samba_cv_HAVE_MMAP
=no
10126 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10127 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
10128 cat >> confdefs.h
<<\EOF
10129 #define HAVE_MMAP 1
10134 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10135 echo "configure:10136: checking for ftruncate needs root" >&5
10136 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10137 echo $ac_n "(cached) $ac_c" 1>&6
10140 if test "$cross_compiling" = yes; then
10141 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
10143 cat > conftest.
$ac_ext <<EOF
10144 #line 10145 "configure"
10145 #include "confdefs.h"
10146 #include "${srcdir-.}/tests/ftruncroot.c"
10148 if { (eval echo configure
:10149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10150 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
10152 echo "configure: failed program was:" >&5
10153 cat conftest.
$ac_ext >&5
10155 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
10162 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10163 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
10164 cat >> confdefs.h
<<\EOF
10165 #define FTRUNCATE_NEEDS_ROOT 1
10170 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10171 echo "configure:10172: checking for fcntl locking" >&5
10172 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10173 echo $ac_n "(cached) $ac_c" 1>&6
10176 if test "$cross_compiling" = yes; then
10177 samba_cv_HAVE_FCNTL_LOCK
=cross
10179 cat > conftest.
$ac_ext <<EOF
10180 #line 10181 "configure"
10181 #include "confdefs.h"
10182 #include "${srcdir-.}/tests/fcntl_lock.c"
10184 if { (eval echo configure
:10185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10186 samba_cv_HAVE_FCNTL_LOCK
=yes
10188 echo "configure: failed program was:" >&5
10189 cat conftest.
$ac_ext >&5
10191 samba_cv_HAVE_FCNTL_LOCK
=no
10198 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10199 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
10200 cat >> confdefs.h
<<\EOF
10201 #define HAVE_FCNTL_LOCK 1
10206 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10207 echo "configure:10208: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10208 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10209 echo $ac_n "(cached) $ac_c" 1>&6
10212 if test "$cross_compiling" = yes; then
10213 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
10215 cat > conftest.
$ac_ext <<EOF
10216 #line 10217 "configure"
10217 #include "confdefs.h"
10218 #include "${srcdir-.}/tests/fcntl_lock64.c"
10220 if { (eval echo configure
:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10222 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
10224 echo "configure: failed program was:" >&5
10225 cat conftest.
$ac_ext >&5
10227 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
10234 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10235 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
10236 cat >> confdefs.h
<<\EOF
10237 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10244 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10245 echo "configure:10246: checking for 64 bit fcntl locking" >&5
10246 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10247 echo $ac_n "(cached) $ac_c" 1>&6
10250 if test "$cross_compiling" = yes; then
10251 samba_cv_HAVE_STRUCT_FLOCK64
=cross
10253 cat > conftest.
$ac_ext <<EOF
10254 #line 10255 "configure"
10255 #include "confdefs.h"
10257 #if defined(HAVE_UNISTD_H)
10258 #include <unistd.h>
10261 #include <stdlib.h>
10263 #ifdef HAVE_FCNTL_H
10267 #ifdef HAVE_SYS_FCNTL_H
10268 #include <sys/fcntl.h>
10270 main() { struct flock64 fl64;
10271 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10278 if { (eval echo configure
:10279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10280 samba_cv_HAVE_STRUCT_FLOCK64
=yes
10282 echo "configure: failed program was:" >&5
10283 cat conftest.
$ac_ext >&5
10285 samba_cv_HAVE_STRUCT_FLOCK64
=no
10292 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10294 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
10295 cat >> confdefs.h
<<\EOF
10296 #define HAVE_STRUCT_FLOCK64 1
10302 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10303 echo "configure:10304: checking for a crypt that needs truncated salt" >&5
10304 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
10305 echo $ac_n "(cached) $ac_c" 1>&6
10308 if test "$cross_compiling" = yes; then
10309 samba_cv_HAVE_TRUNCATED_SALT
=cross
10311 cat > conftest.
$ac_ext <<EOF
10312 #line 10313 "configure"
10313 #include "confdefs.h"
10314 #include "${srcdir-.}/tests/crypttest.c"
10316 if { (eval echo configure
:10317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10318 samba_cv_HAVE_TRUNCATED_SALT
=no
10320 echo "configure: failed program was:" >&5
10321 cat conftest.
$ac_ext >&5
10323 samba_cv_HAVE_TRUNCATED_SALT
=yes
10330 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10331 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
10332 cat >> confdefs.h
<<\EOF
10333 #define HAVE_TRUNCATED_SALT 1
10338 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10339 echo "configure:10340: checking for broken nisplus include files" >&5
10340 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10341 echo $ac_n "(cached) $ac_c" 1>&6
10344 cat > conftest.
$ac_ext <<EOF
10345 #line 10346 "configure"
10346 #include "confdefs.h"
10347 #include <sys/acl.h>
10348 #if defined(HAVE_RPCSVC_NIS_H)
10349 #include <rpcsvc/nis.h>
10355 if { (eval echo configure
:10356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10357 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
10359 echo "configure: failed program was:" >&5
10360 cat conftest.
$ac_ext >&5
10362 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
10367 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10368 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
10369 cat >> confdefs.h
<<\EOF
10370 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10376 #################################################
10377 # check for smbwrapper support
10378 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10379 echo "configure:10380: checking whether to use smbwrapper" >&5
10380 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10381 if test "${with_smbwrapper+set}" = set; then
10382 withval
="$with_smbwrapper"
10385 echo "$ac_t""yes" 1>&6
10386 cat >> confdefs.h
<<\EOF
10387 #define WITH_SMBWRAPPER 1
10390 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10392 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
10395 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
10398 # Conditions under which smbwrapper should not be built.
10400 if test x
$PICFLAG = x
; then
10401 echo No support
for PIC code
- disabling smbwrapper and smbsh
10404 elif test x
$ac_cv_func_syscall = xno
; then
10405 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10411 echo "$ac_t""no" 1>&6
10415 echo "$ac_t""no" 1>&6
10420 #################################################
10421 # check for the AFS filesystem
10422 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10423 echo "configure:10424: checking whether to use AFS" >&5
10424 # Check whether --with-afs or --without-afs was given.
10425 if test "${with_afs+set}" = set; then
10426 withval
="$with_afs"
10429 echo "$ac_t""yes" 1>&6
10430 cat >> confdefs.h
<<\EOF
10436 echo "$ac_t""no" 1>&6
10440 echo "$ac_t""no" 1>&6
10446 #################################################
10447 # check for the DFS auth system
10448 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
10449 echo "configure:10450: checking whether to use DFS auth" >&5
10450 # Check whether --with-dfs or --without-dfs was given.
10451 if test "${with_dfs+set}" = set; then
10452 withval
="$with_dfs"
10455 echo "$ac_t""yes" 1>&6
10456 cat >> confdefs.h
<<\EOF
10462 echo "$ac_t""no" 1>&6
10466 echo "$ac_t""no" 1>&6
10471 #################################################
10472 # check for Kerberos IV auth system
10473 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10474 echo "configure:10475: checking whether to use Kerberos IV" >&5
10475 # Check whether --with-krb4 or --without-krb4 was given.
10476 if test "${with_krb4+set}" = set; then
10477 withval
="$with_krb4"
10478 echo "$ac_t""yes" 1>&6
10479 cat >> confdefs.h
<<\EOF
10480 #define KRB4_AUTH 1
10483 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10484 echo "configure:10485: checking for dn_expand in -lresolv" >&5
10485 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10487 echo $ac_n "(cached) $ac_c" 1>&6
10489 ac_save_LIBS
="$LIBS"
10490 LIBS
="-lresolv $LIBS"
10491 cat > conftest.
$ac_ext <<EOF
10492 #line 10493 "configure"
10493 #include "confdefs.h"
10494 /* Override any gcc2 internal prototype to avoid an error. */
10495 /* We use char because int might match the return type of a gcc2
10496 builtin and then its argument prototype would still apply. */
10503 if { (eval echo configure
:10504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10505 eval "ac_cv_lib_$ac_lib_var=yes"
10507 echo "configure: failed program was:" >&5
10508 cat conftest.
$ac_ext >&5
10510 eval "ac_cv_lib_$ac_lib_var=no"
10513 LIBS
="$ac_save_LIBS"
10516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10517 echo "$ac_t""yes" 1>&6
10518 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10519 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10520 cat >> confdefs.h
<<EOF
10521 #define $ac_tr_lib 1
10524 LIBS
="-lresolv $LIBS"
10527 echo "$ac_t""no" 1>&6
10530 LIBS
="$LIBS -lkrb -ldes"
10531 CFLAGS
="$CFLAGS -I$withval/include"
10532 LDFLAGS
="$LDFLAGS -L$withval/lib"
10534 echo "$ac_t""no" 1>&6
10539 #################################################
10540 # check for Kerberos 5 auth system
10541 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10542 echo "configure:10543: checking whether to use Kerberos 5" >&5
10543 # Check whether --with-krb5 or --without-krb5 was given.
10544 if test "${with_krb5+set}" = set; then
10545 withval
="$with_krb5"
10546 echo "$ac_t""yes" 1>&6
10547 cat >> confdefs.h
<<\EOF
10548 #define KRB5_AUTH 1
10551 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
10552 CFLAGS
="$CFLAGS -I$withval/include"
10553 LDFLAGS
="$LDFLAGS -L$withval/lib"
10555 echo "$ac_t""no" 1>&6
10560 #################################################
10561 # check for automount support
10562 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
10563 echo "configure:10564: checking whether to use AUTOMOUNT" >&5
10564 # Check whether --with-automount or --without-automount was given.
10565 if test "${with_automount+set}" = set; then
10566 withval
="$with_automount"
10569 echo "$ac_t""yes" 1>&6
10570 cat >> confdefs.h
<<\EOF
10571 #define WITH_AUTOMOUNT 1
10576 echo "$ac_t""no" 1>&6
10580 echo "$ac_t""no" 1>&6
10585 #################################################
10586 # check for smbmount support
10587 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
10588 echo "configure:10589: checking whether to use SMBMOUNT" >&5
10589 # Check whether --with-smbmount or --without-smbmount was given.
10590 if test "${with_smbmount+set}" = set; then
10591 withval
="$with_smbmount"
10594 echo "$ac_t""yes" 1>&6
10595 cat >> confdefs.h
<<\EOF
10596 #define WITH_SMBMOUNT 1
10599 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
10602 echo "$ac_t""no" 1>&6
10607 echo "$ac_t""no" 1>&6
10614 #################################################
10615 # check for a PAM password database
10616 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
10617 echo "configure:10618: checking whether to use PAM password database" >&5
10618 # Check whether --with-pam or --without-pam was given.
10619 if test "${with_pam+set}" = set; then
10620 withval
="$with_pam"
10623 echo "$ac_t""yes" 1>&6
10624 cat >> confdefs.h
<<\EOF
10631 echo "$ac_t""no" 1>&6
10635 echo "$ac_t""no" 1>&6
10640 #################################################
10641 # check for a TDB password database
10642 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
10643 echo "configure:10644: checking whether to use TDB password database" >&5
10644 # Check whether --with-tdbsam or --without-tdbsam was given.
10645 if test "${with_tdbsam+set}" = set; then
10646 withval
="$with_tdbsam"
10649 echo "$ac_t""yes" 1>&6
10650 cat >> confdefs.h
<<\EOF
10651 #define WITH_TDBPWD 1
10654 # AC_MSG_ERROR([TDB password database not supported in this version.])
10657 echo "$ac_t""no" 1>&6
10661 echo "$ac_t""no" 1>&6
10666 #################################################
10667 # check for a LDAP password database
10668 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10669 echo "configure:10670: checking whether to use LDAP password database" >&5
10670 # Check whether --with-ldap or --without-ldap was given.
10671 if test "${with_ldap+set}" = set; then
10672 withval
="$with_ldap"
10675 echo "$ac_t""yes" 1>&6
10676 cat >> confdefs.h
<<\EOF
10677 #define WITH_LDAP 1
10680 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
10683 echo "$ac_t""no" 1>&6
10687 echo "$ac_t""no" 1>&6
10692 #################################################
10693 # check for a NISPLUS password database
10694 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
10695 echo "configure:10696: checking whether to use NISPLUS password database" >&5
10696 # Check whether --with-nisplus or --without-nisplus was given.
10697 if test "${with_nisplus+set}" = set; then
10698 withval
="$with_nisplus"
10701 echo "$ac_t""yes" 1>&6
10702 cat >> confdefs.h
<<\EOF
10703 #define WITH_NISPLUS 1
10708 echo "$ac_t""no" 1>&6
10712 echo "$ac_t""no" 1>&6
10717 #################################################
10718 # check for a NISPLUS_HOME support
10719 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
10720 echo "configure:10721: checking whether to use NISPLUS_HOME" >&5
10721 # Check whether --with-nisplus-home or --without-nisplus-home was given.
10722 if test "${with_nisplus_home+set}" = set; then
10723 withval
="$with_nisplus_home"
10726 echo "$ac_t""yes" 1>&6
10727 cat >> confdefs.h
<<\EOF
10728 #define WITH_NISPLUS_HOME 1
10733 echo "$ac_t""no" 1>&6
10737 echo "$ac_t""no" 1>&6
10742 #################################################
10743 # check for the secure socket layer
10744 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
10745 echo "configure:10746: checking whether to use SSL" >&5
10746 # Check whether --with-ssl or --without-ssl was given.
10747 if test "${with_ssl+set}" = set; then
10748 withval
="$with_ssl"
10751 echo "$ac_t""yes" 1>&6
10752 cat >> confdefs.h
<<\EOF
10756 withval
="/usr/local/ssl" # default
10758 if test "${with_sslinc+set}" = set; then
10760 withval
="$with_sslinc"
10763 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
10764 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
10765 LIBS
="-lssl -lcrypto $LIBS"
10766 LDFLAGS
="=L/usr/local/ssl/lib $LDFLAGS"
10769 CFLAGS
="-I${withval}/include $CFLAGS"
10770 LIBS
="-lssl -lcrypto $LIBS"
10771 LDFLAGS
="-L${withval}/lib $LDFLAGS"
10777 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
10778 LIBS
="-lssl -lcrypto $LIBS"
10779 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
10783 if test ! -d ${withval}; then
10784 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
10788 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
10792 echo "$ac_t""no" 1>&6
10796 echo "$ac_t""no" 1>&6
10801 #################################################
10802 # check for syslog logging
10803 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
10804 echo "configure:10805: checking whether to use syslog logging" >&5
10805 # Check whether --with-syslog or --without-syslog was given.
10806 if test "${with_syslog+set}" = set; then
10807 withval
="$with_syslog"
10810 echo "$ac_t""yes" 1>&6
10811 cat >> confdefs.h
<<\EOF
10812 #define WITH_SYSLOG 1
10817 echo "$ac_t""no" 1>&6
10821 echo "$ac_t""no" 1>&6
10826 #################################################
10827 # check for a shared memory profiling support
10828 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
10829 echo "configure:10830: checking whether to use profiling" >&5
10830 # Check whether --with-profile or --without-profile was given.
10831 if test "${with_profile+set}" = set; then
10832 withval
="$with_profile"
10835 echo "$ac_t""yes" 1>&6
10836 cat >> confdefs.h
<<\EOF
10837 #define WITH_PROFILE 1
10842 echo "$ac_t""no" 1>&6
10846 echo "$ac_t""no" 1>&6
10852 #################################################
10853 # check for experimental netatalk resource fork support
10854 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
10855 echo "configure:10856: checking whether to support netatalk" >&5
10856 # Check whether --with-netatalk or --without-netatalk was given.
10857 if test "${with_netatalk+set}" = set; then
10858 withval
="$with_netatalk"
10861 echo "$ac_t""yes" 1>&6
10862 cat >> confdefs.h
<<\EOF
10863 #define WITH_NETATALK 1
10868 echo "$ac_t""no" 1>&6
10872 echo "$ac_t""no" 1>&6
10877 #################################################
10878 # check for experimental disk-quotas support
10879 QUOTAOBJS
=smbd
/noquotas.o
10881 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
10882 echo "configure:10883: checking whether to support disk-quotas" >&5
10883 # Check whether --with-quotas or --without-quotas was given.
10884 if test "${with_quotas+set}" = set; then
10885 withval
="$with_quotas"
10888 echo "$ac_t""yes" 1>&6
10889 QUOTAOBJS
=smbd
/quotas.o
10892 echo "$ac_t""no" 1>&6
10896 echo "$ac_t""no" 1>&6
10902 #################################################
10903 # check for experimental utmp accounting
10905 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
10906 echo "configure:10907: checking whether to support utmp accounting" >&5
10907 # Check whether --with-utmp or --without-utmp was given.
10908 if test "${with_utmp+set}" = set; then
10909 withval
="$with_utmp"
10912 echo "$ac_t""yes" 1>&6
10913 cat >> confdefs.h
<<\EOF
10914 #define WITH_UTMP 1
10919 echo "$ac_t""no" 1>&6
10923 echo "$ac_t""no" 1>&6
10928 #################################################
10929 # check for MS Dfs support
10931 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
10932 echo "configure:10933: checking whether to support Microsoft Dfs" >&5
10933 # Check whether --with-msdfs or --without-msdfs was given.
10934 if test "${with_msdfs+set}" = set; then
10935 withval
="$with_msdfs"
10938 echo "$ac_t""yes" 1>&6
10939 cat >> confdefs.h
<<\EOF
10940 #define WITH_MSDFS 1
10945 echo "$ac_t""no" 1>&6
10949 echo "$ac_t""no" 1>&6
10954 #################################################
10955 # set private directory location
10956 # Check whether --with-privatedir or --without-privatedir was given.
10957 if test "${with_privatedir+set}" = set; then
10958 withval
="$with_privatedir"
10962 # Just in case anybody calls it without argument
10964 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
10965 privatedir
='${prefix}/private'
10968 privatedir
="$withval"
10973 privatedir
='${prefix}/private'
10979 #################################################
10980 # set lock directory location
10981 # Check whether --with-lockdir or --without-lockdir was given.
10982 if test "${with_lockdir+set}" = set; then
10983 withval
="$with_lockdir"
10987 # Just in case anybody calls it without argument
10989 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
10990 lockdir
='$(VARDIR)/locks'
10998 lockdir
='$(VARDIR)/locks'
11004 #################################################
11005 # set SWAT directory location
11006 # Check whether --with-swatdir or --without-swatdir was given.
11007 if test "${with_swatdir+set}" = set; then
11008 withval
="$with_swatdir"
11012 # Just in case anybody does it
11014 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
11015 swatdir
='${prefix}/swat'
11023 swatdir
='${prefix}/swat'
11029 #################################################
11030 # these tests are taken from the GNU fileutils package
11031 echo "checking how to get filesystem space usage" 1>&6
11032 echo "configure:11033: checking how to get filesystem space usage" >&5
11035 # Test for statvfs64.
11036 if test $space = no
; then
11038 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11039 echo "configure:11040: checking statvfs64 function (SVR4)" >&5
11040 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11041 echo $ac_n "(cached) $ac_c" 1>&6
11043 if test "$cross_compiling" = yes; then
11044 fu_cv_sys_stat_statvfs64
=cross
11046 cat > conftest.
$ac_ext <<EOF
11047 #line 11048 "configure"
11048 #include "confdefs.h"
11050 #if defined(HAVE_UNISTD_H)
11051 #include <unistd.h>
11053 #include <sys/types.h>
11054 #include <sys/statvfs.h>
11057 struct statvfs64 fsd;
11058 exit (statvfs64 (".", &fsd));
11061 if { (eval echo configure
:11062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11063 fu_cv_sys_stat_statvfs64
=yes
11065 echo "configure: failed program was:" >&5
11066 cat conftest.
$ac_ext >&5
11068 fu_cv_sys_stat_statvfs64
=no
11075 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11076 if test $fu_cv_sys_stat_statvfs64 = yes; then
11078 cat >> confdefs.h
<<\EOF
11079 #define STAT_STATVFS64 1
11085 # Perform only the link test since it seems there are no variants of the
11086 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11087 # because that got a false positive on SCO OSR5. Adding the declaration
11088 # of a `struct statvfs' causes this test to fail (as it should) on such
11089 # systems. That system is reported to work fine with STAT_STATFS4 which
11090 # is what it gets when this test fails.
11091 if test $space = no
; then
11093 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11094 echo "configure:11095: checking statvfs function (SVR4)" >&5
11095 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11096 echo $ac_n "(cached) $ac_c" 1>&6
11098 cat > conftest.
$ac_ext <<EOF
11099 #line 11100 "configure"
11100 #include "confdefs.h"
11101 #include <sys/types.h>
11102 #include <sys/statvfs.h>
11104 struct statvfs fsd; statvfs (0, &fsd);
11107 if { (eval echo configure
:11108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11109 fu_cv_sys_stat_statvfs
=yes
11111 echo "configure: failed program was:" >&5
11112 cat conftest.
$ac_ext >&5
11114 fu_cv_sys_stat_statvfs
=no
11119 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11120 if test $fu_cv_sys_stat_statvfs = yes; then
11122 cat >> confdefs.h
<<\EOF
11123 #define STAT_STATVFS 1
11129 if test $space = no
; then
11130 # DEC Alpha running OSF/1
11131 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11132 echo "configure:11133: checking for 3-argument statfs function (DEC OSF/1)" >&5
11133 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11134 echo $ac_n "(cached) $ac_c" 1>&6
11136 if test "$cross_compiling" = yes; then
11137 fu_cv_sys_stat_statfs3_osf1
=no
11139 cat > conftest.
$ac_ext <<EOF
11140 #line 11141 "configure"
11141 #include "confdefs.h"
11143 #include <sys/param.h>
11144 #include <sys/types.h>
11145 #include <sys/mount.h>
11150 exit (statfs (".", &fsd, sizeof (struct statfs)));
11153 if { (eval echo configure
:11154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11155 fu_cv_sys_stat_statfs3_osf1
=yes
11157 echo "configure: failed program was:" >&5
11158 cat conftest.
$ac_ext >&5
11160 fu_cv_sys_stat_statfs3_osf1
=no
11167 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11168 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11170 cat >> confdefs.h
<<\EOF
11171 #define STAT_STATFS3_OSF1 1
11177 if test $space = no
; then
11179 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11180 echo "configure:11181: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11181 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11182 echo $ac_n "(cached) $ac_c" 1>&6
11184 if test "$cross_compiling" = yes; then
11185 fu_cv_sys_stat_statfs2_bsize
=no
11187 cat > conftest.
$ac_ext <<EOF
11188 #line 11189 "configure"
11189 #include "confdefs.h"
11191 #ifdef HAVE_SYS_PARAM_H
11192 #include <sys/param.h>
11194 #ifdef HAVE_SYS_MOUNT_H
11195 #include <sys/mount.h>
11197 #ifdef HAVE_SYS_VFS_H
11198 #include <sys/vfs.h>
11204 exit (statfs (".", &fsd));
11207 if { (eval echo configure
:11208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11209 fu_cv_sys_stat_statfs2_bsize
=yes
11211 echo "configure: failed program was:" >&5
11212 cat conftest.
$ac_ext >&5
11214 fu_cv_sys_stat_statfs2_bsize
=no
11221 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11222 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11224 cat >> confdefs.h
<<\EOF
11225 #define STAT_STATFS2_BSIZE 1
11231 if test $space = no
; then
11233 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11234 echo "configure:11235: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11235 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11236 echo $ac_n "(cached) $ac_c" 1>&6
11238 if test "$cross_compiling" = yes; then
11239 fu_cv_sys_stat_statfs4
=no
11241 cat > conftest.
$ac_ext <<EOF
11242 #line 11243 "configure"
11243 #include "confdefs.h"
11244 #include <sys/types.h>
11245 #include <sys/statfs.h>
11249 exit (statfs (".", &fsd, sizeof fsd, 0));
11252 if { (eval echo configure
:11253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11254 fu_cv_sys_stat_statfs4
=yes
11256 echo "configure: failed program was:" >&5
11257 cat conftest.
$ac_ext >&5
11259 fu_cv_sys_stat_statfs4
=no
11266 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11267 if test $fu_cv_sys_stat_statfs4 = yes; then
11269 cat >> confdefs.h
<<\EOF
11270 #define STAT_STATFS4 1
11276 if test $space = no
; then
11277 # 4.4BSD and NetBSD
11278 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11279 echo "configure:11280: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11280 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
11281 echo $ac_n "(cached) $ac_c" 1>&6
11283 if test "$cross_compiling" = yes; then
11284 fu_cv_sys_stat_statfs2_fsize
=no
11286 cat > conftest.
$ac_ext <<EOF
11287 #line 11288 "configure"
11288 #include "confdefs.h"
11289 #include <sys/types.h>
11290 #ifdef HAVE_SYS_PARAM_H
11291 #include <sys/param.h>
11293 #ifdef HAVE_SYS_MOUNT_H
11294 #include <sys/mount.h>
11300 exit (statfs (".", &fsd));
11303 if { (eval echo configure
:11304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11305 fu_cv_sys_stat_statfs2_fsize
=yes
11307 echo "configure: failed program was:" >&5
11308 cat conftest.
$ac_ext >&5
11310 fu_cv_sys_stat_statfs2_fsize
=no
11317 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
11318 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11320 cat >> confdefs.h
<<\EOF
11321 #define STAT_STATFS2_FSIZE 1
11327 if test $space = no
; then
11329 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
11330 echo "configure:11331: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11331 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
11332 echo $ac_n "(cached) $ac_c" 1>&6
11334 if test "$cross_compiling" = yes; then
11335 fu_cv_sys_stat_fs_data
=no
11337 cat > conftest.
$ac_ext <<EOF
11338 #line 11339 "configure"
11339 #include "confdefs.h"
11340 #include <sys/types.h>
11341 #ifdef HAVE_SYS_PARAM_H
11342 #include <sys/param.h>
11344 #ifdef HAVE_SYS_MOUNT_H
11345 #include <sys/mount.h>
11347 #ifdef HAVE_SYS_FS_TYPES_H
11348 #include <sys/fs_types.h>
11352 struct fs_data fsd;
11353 /* Ultrix's statfs returns 1 for success,
11354 0 for not mounted, -1 for failure. */
11355 exit (statfs (".", &fsd) != 1);
11358 if { (eval echo configure
:11359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11360 fu_cv_sys_stat_fs_data
=yes
11362 echo "configure: failed program was:" >&5
11363 cat conftest.
$ac_ext >&5
11365 fu_cv_sys_stat_fs_data
=no
11372 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
11373 if test $fu_cv_sys_stat_fs_data = yes; then
11375 cat >> confdefs.h
<<\EOF
11376 #define STAT_STATFS2_FS_DATA 1
11383 # As a gating factor for large file support, in order to
11384 # use <4GB files we must have the following minimal support
11386 # long long, and a 64 bit off_t or off64_t.
11387 # If we don't have all of these then disable large
11390 echo "checking if large file support can be enabled"
11391 cat > conftest.
$ac_ext <<EOF
11392 #line 11393 "configure"
11393 #include "confdefs.h"
11395 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
11396 #include <sys/types.h>
11405 if { (eval echo configure
:11406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11407 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
11409 echo "configure: failed program was:" >&5
11410 cat conftest.
$ac_ext >&5
11412 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
11415 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
11417 cat >> confdefs.h
<<\EOF
11418 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
11425 echo "checking configure summary"
11426 if test "$cross_compiling" = yes; then
11429 cat > conftest.
$ac_ext <<EOF
11430 #line 11431 "configure"
11431 #include "confdefs.h"
11432 #include "${srcdir-.}/tests/summary.c"
11434 if { (eval echo configure
:11435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11436 echo "configure OK";
11438 echo "configure: failed program was:" >&5
11439 cat conftest.
$ac_ext >&5
11441 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
11451 cat > confcache
<<\EOF
11452 # This file is a shell script that caches the results of configure
11453 # tests run on this system so they can be shared between configure
11454 # scripts and configure runs. It is not useful on other systems.
11455 # If it contains results you don't want to keep, you may remove or edit it.
11457 # By default, configure uses ./config.cache as the cache file,
11458 # creating it if it does not exist already. You can give configure
11459 # the --cache-file=FILE option to use a different cache file; that is
11460 # what configure does when it calls configure scripts in
11461 # subdirectories, so they share the cache.
11462 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11463 # config.status only pays attention to the cache file if you give it the
11464 # --recheck option to rerun configure.
11467 # The following way of writing the cache mishandles newlines in values,
11468 # but we know of no workaround that is simple, portable, and efficient.
11469 # So, don't put newlines in cache variables' values.
11470 # Ultrix sh set writes to stderr and can't be redirected directly,
11471 # and sets the high bit in the cache file unless we assign to the vars.
11473 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11475 # `set' does not quote correctly, so add quotes (double-quote substitution
11476 # turns \\\\ into \\, and sed turns \\ into \).
11478 -e "s/'/'\\\\''/g" \
11479 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11482 # `set' quotes correctly as required by POSIX, so do not add quotes.
11483 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11486 if cmp -s $cache_file confcache
; then
11489 if test -w $cache_file; then
11490 echo "updating cache $cache_file"
11491 cat confcache
> $cache_file
11493 echo "not updating unwritable cache $cache_file"
11498 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11500 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11501 # Let make expand exec_prefix.
11502 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11504 # Any assignment to VPATH causes Sun make to only execute
11505 # the first set of double-colon rules, so remove it if not needed.
11506 # If there is a colon in the path, we need to keep it.
11507 if test "x$srcdir" = x.
; then
11508 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
11511 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11513 DEFS
=-DHAVE_CONFIG_H
11515 # Without the "./", some shells look in PATH for config.status.
11516 : ${CONFIG_STATUS=./config.status}
11518 echo creating
$CONFIG_STATUS
11519 rm -f $CONFIG_STATUS
11520 cat > $CONFIG_STATUS <<EOF
11522 # Generated automatically by configure.
11523 # Run this file to recreate the current configuration.
11524 # This directory was configured as follows,
11525 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11527 # $0 $ac_configure_args
11529 # Compiler output produced by configure, useful for debugging
11530 # configure, is in ./config.log if it exists.
11532 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11535 case "\$ac_option" in
11536 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11537 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11538 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11539 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11540 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11542 -help | --help | --hel | --he | --h)
11543 echo "\$ac_cs_usage"; exit 0 ;;
11544 *) echo "\$ac_cs_usage"; exit 1 ;;
11548 ac_given_srcdir=$srcdir
11549 ac_given_INSTALL="$INSTALL"
11551 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11553 cat >> $CONFIG_STATUS <<EOF
11555 # Protect against being on the right side of a sed subst in config.status.
11556 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11557 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11561 s%@CFLAGS@%$CFLAGS%g
11562 s%@CPPFLAGS@%$CPPFLAGS%g
11563 s%@CXXFLAGS@%$CXXFLAGS%g
11564 s%@FFLAGS@%$FFLAGS%g
11566 s%@LDFLAGS@%$LDFLAGS%g
11568 s%@exec_prefix@%$exec_prefix%g
11569 s%@prefix@%$prefix%g
11570 s%@program_transform_name@%$program_transform_name%g
11571 s%@bindir@%$bindir%g
11572 s%@sbindir@%$sbindir%g
11573 s%@libexecdir@%$libexecdir%g
11574 s%@datadir@%$datadir%g
11575 s%@sysconfdir@%$sysconfdir%g
11576 s%@sharedstatedir@%$sharedstatedir%g
11577 s%@localstatedir@%$localstatedir%g
11578 s%@libdir@%$libdir%g
11579 s%@includedir@%$includedir%g
11580 s%@oldincludedir@%$oldincludedir%g
11581 s%@infodir@%$infodir%g
11582 s%@mandir@%$mandir%g
11583 s%@RUNPROG@%$RUNPROG%g
11584 s%@MPROGS@%$MPROGS%g
11585 s%@LDSHFLAGS@%$LDSHFLAGS%g
11586 s%@HOST_OS@%$HOST_OS%g
11588 s%@WRAP32@%$WRAP32%g
11589 s%@PICFLAG@%$PICFLAG%g
11590 s%@SHLIBEXT@%$SHLIBEXT%g
11592 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11593 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11594 s%@INSTALL_DATA@%$INSTALL_DATA%g
11597 s%@host_alias@%$host_alias%g
11598 s%@host_cpu@%$host_cpu%g
11599 s%@host_vendor@%$host_vendor%g
11600 s%@host_os@%$host_os%g
11602 s%@build_alias@%$build_alias%g
11603 s%@build_cpu@%$build_cpu%g
11604 s%@build_vendor@%$build_vendor%g
11605 s%@build_os@%$build_os%g
11606 s%@RANLIB@%$RANLIB%g
11608 s%@LIBTOOL@%$LIBTOOL%g
11609 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
11610 s%@BROKEN_CC@%$BROKEN_CC%g
11611 s%@target@%$target%g
11612 s%@target_alias@%$target_alias%g
11613 s%@target_cpu@%$target_cpu%g
11614 s%@target_vendor@%$target_vendor%g
11615 s%@target_os@%$target_os%g
11617 s%@LIBOBJS@%$LIBOBJS%g
11619 s%@QUOTAOBJS@%$QUOTAOBJS%g
11620 s%@privatedir@%$privatedir%g
11621 s%@lockdir@%$lockdir%g
11622 s%@swatdir@%$swatdir%g
11623 s%@builddir@%$builddir%g
11628 cat >> $CONFIG_STATUS <<\EOF
11630 # Split the substitutions into bite-sized pieces for seds with
11631 # small command number limits, like on Digital OSF/1 and HP-UX.
11632 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
11633 ac_file
=1 # Number of current file.
11634 ac_beg
=1 # First line for current file.
11635 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
11638 while $ac_more_lines; do
11639 if test $ac_beg -gt 1; then
11640 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
11642 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
11644 if test ! -s conftest.s
$ac_file; then
11645 ac_more_lines
=false
11646 rm -f conftest.s
$ac_file
11648 if test -z "$ac_sed_cmds"; then
11649 ac_sed_cmds
="sed -f conftest.s$ac_file"
11651 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
11653 ac_file
=`expr $ac_file + 1`
11655 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
11658 if test -z "$ac_sed_cmds"; then
11663 cat >> $CONFIG_STATUS <<EOF
11665 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
11667 cat >> $CONFIG_STATUS <<\EOF
11668 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
11669 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11671 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11672 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11673 *) ac_file_in
="${ac_file}.in" ;;
11676 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11678 # Remove last slash and all that follows it. Not all systems have dirname.
11679 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11680 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
11681 # The file is in a subdirectory.
11682 test ! -d "$ac_dir" && mkdir
"$ac_dir"
11683 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
11684 # A "../" for each directory in $ac_dir_suffix.
11685 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11687 ac_dir_suffix
= ac_dots
=
11690 case "$ac_given_srcdir" in
11692 if test -z "$ac_dots"; then top_srcdir
=.
11693 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11694 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
11695 *) # Relative path.
11696 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11697 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
11700 case "$ac_given_INSTALL" in
11701 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
11702 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
11705 echo creating
"$ac_file"
11707 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11709 *Makefile
*) ac_comsub
="1i\\
11710 # $configure_input" ;;
11714 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11716 s%@configure_input@%$configure_input%g
11717 s%@srcdir@%$srcdir%g
11718 s%@top_srcdir@%$top_srcdir%g
11719 s%@INSTALL@%$INSTALL%g
11720 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
11724 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11725 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11727 # ac_d sets the value in "#define NAME VALUE" lines.
11728 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11729 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
11732 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11733 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11734 ac_uB
='\([ ]\)%\1#\2define\3'
11737 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11738 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11739 ac_eB
='$%\1#\2define\3'
11743 if test "${CONFIG_HEADERS+set}" != set; then
11745 cat >> $CONFIG_STATUS <<EOF
11746 CONFIG_HEADERS="include/config.h"
11748 cat >> $CONFIG_STATUS <<\EOF
11750 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
11751 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11753 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11754 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11755 *) ac_file_in
="${ac_file}.in" ;;
11758 echo creating
$ac_file
11760 rm -f conftest.frag conftest.
in conftest.out
11761 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11762 cat $ac_file_inputs > conftest.
in
11766 # Transform confdefs.h into a sed script conftest.vals that substitutes
11767 # the proper values into config.h.in to produce config.h. And first:
11768 # Protect against being on the right side of a sed subst in config.status.
11769 # Protect against being in an unquoted here document in config.status.
11770 rm -f conftest.vals
11771 cat > conftest.hdr
<<\EOF
11774 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11778 sed -n -f conftest.hdr confdefs.h > conftest.vals
11781 # This sed command replaces #undef with comments. This is necessary, for
11782 # example, in the case of _POSIX_SOURCE, which is predefined and required
11783 # on some systems where configure will not decide to define it.
11784 cat >> conftest.vals <<\EOF
11785 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11788 # Break up conftest.vals because some shells have a limit on
11789 # the size of here documents, and old seds have small limits too.
11791 rm -f conftest.tail
11794 ac_lines=`grep -c . conftest.vals
`
11795 # grep -c gives empty output for an empty file on some AIX systems.
11796 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11797 # Write a limited-size here document to conftest.frag.
11798 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11799 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11801 sed -f conftest.frag conftest.in > conftest.out
11803 mv conftest.out conftest.in
11804 ' >> $CONFIG_STATUS
11805 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11806 rm -f conftest.vals
11807 mv conftest.tail conftest.vals
11809 rm -f conftest.vals
11811 cat >> $CONFIG_STATUS <<\EOF
11812 rm -f conftest.frag conftest.h
11813 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11814 cat conftest.in >> conftest.h
11816 if cmp -s $ac_file conftest.h 2>/dev/null; then
11817 echo "$ac_file is unchanged"
11820 # Remove last slash and all that follows it. Not all systems have dirname.
11821 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
11822 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11823 # The file is in a subdirectory.
11824 test ! -d "$ac_dir" && mkdir "$ac_dir"
11827 mv conftest.h $ac_file
11832 cat >> $CONFIG_STATUS <<EOF
11835 cat >> $CONFIG_STATUS <<\EOF
11839 chmod +x $CONFIG_STATUS
11840 rm -fr confdefs* $ac_clean_files
11841 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1