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-static[=PKGS] build static libraries [default=no]"
18 --enable-shared[=PKGS] build shared 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 --enable-maintainer-mode enable some make rules for maintainers"
28 --with-smbwrapper Include SMB wrapper support
29 --without-smbwrapper Don't include SMB wrapper support (default)"
31 --with-afs Include AFS support
32 --without-afs Don't include AFS support (default)"
34 --with-dfs Include DFS support
35 --without-dfs Don't include DFS support (default)"
37 --with-krb4=base-dir Include Kerberos IV support
38 --without-krb4 Don't include Kerberos IV support (default)"
40 --with-srvtab[=instance] Include renewable AFS tickets
41 --without-srvtab Don't renewable AFS tickets (default)"
43 --with-krb5=base-dir Include Kerberos 5 support
44 --without-krb5 Don't include Kerberos 5 support (default)"
46 --with-automount Include AUTOMOUNT support
47 --without-automount Don't include AUTOMOUNT support (default)"
49 --with-smbmount Include SMBMOUNT (Linux only) support
50 --without-smbmount Don't include SMBMOUNT support (default)"
52 --with-pam Include PAM password database support
53 --without-pam Don't include PAM password database support (default)"
55 --with-ldap Include LDAP support
56 --without-ldap Don't include LDAP support (default)"
58 --with-nt5ldap Include NT5 LDAP support
59 --without-nt5ldap Don't include NT5 LDAP support (default)"
61 --with-nt5ldap Include NT5 LDAP support
62 --without-nt5ldap Don't include NT5 LDAP support (default)"
64 --with-nisplus Include NISPLUS password database support
65 --without-nisplus Don't include NISPLUS password database support (default)"
67 --with-sam-pwdb={passdb,tdb,nt5ldap}
68 which password-database to use (passdb)"
70 --with-surstdb Use SURS tdb database
71 --without-surstdb Don't use SURS tdb database (default)"
73 --with-nisplus-home Include NISPLUS_HOME support
74 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
76 --with-ssl Include SSL support
77 --without-ssl Don't include SSL support (default)
78 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
80 --with-syslog Include experimental SYSLOG support
81 --without-syslog Don't include SYSLOG support (default)"
83 --with-profile Include profile support
84 --without-profile Don't include profile support (default)"
86 --with-netatalk Include experimental Netatalk support
87 --without-netatalk Don't include experimental Netatalk support (default)"
89 --with-quotas Include experimental disk-quota support
90 --without-quotas Don't include experimental disk-quota support (default)"
92 --with-utmp Include experimental utmp accounting
93 --without-utmp Don't include experimental utmp accounting (default)"
95 --with-msdfs Include MS Dfs support
96 --without-msdfs Don't include MS Dfs support (default)"
98 --with-sambaconfdir=DIR Where to put smb.conf etc. ($ac_default_prefix/lib)"
100 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
102 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
104 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
106 # Initialize some variables set by options.
107 # The variables have the same names as the options, with
108 # dashes changed to underlines.
110 cache_file
=.
/config.cache
119 program_transform_name
=s
,x
,x
,
127 bindir
='${exec_prefix}/bin'
128 sbindir
='${exec_prefix}/sbin'
129 libexecdir
='${exec_prefix}/libexec'
130 datadir
='${prefix}/share'
131 sysconfdir
='${prefix}/etc'
132 sharedstatedir
='${prefix}/com'
133 localstatedir
='${prefix}/var'
134 libdir
='${exec_prefix}/lib'
135 includedir
='${prefix}/include'
136 oldincludedir
='/usr/include'
137 infodir
='${prefix}/info'
138 mandir
='${prefix}/man'
140 # Initialize some other variables.
143 SHELL
=${CONFIG_SHELL-/bin/sh}
144 # Maximum number of lines to put in a shell here document.
151 # If the previous option needs an argument, assign it.
152 if test -n "$ac_prev"; then
153 eval "$ac_prev=\$ac_option"
159 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
163 # Accept the important Cygnus configure options, so we can diagnose typos.
167 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
169 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
170 bindir
="$ac_optarg" ;;
172 -build |
--build |
--buil |
--bui |
--bu)
174 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
175 build
="$ac_optarg" ;;
177 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
178 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
179 ac_prev
=cache_file
;;
180 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
181 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
182 cache_file
="$ac_optarg" ;;
184 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
186 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
188 datadir
="$ac_optarg" ;;
190 -disable-* |
--disable-*)
191 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
192 # Reject names that are not valid shell variable names.
193 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
194 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
196 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
197 eval "enable_${ac_feature}=no" ;;
199 -enable-* |
--enable-*)
200 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
201 # Reject names that are not valid shell variable names.
202 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
203 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
205 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
210 eval "enable_${ac_feature}='$ac_optarg'" ;;
212 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
213 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
214 |
--exec |
--exe |
--ex)
215 ac_prev
=exec_prefix
;;
216 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
217 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
218 |
--exec=* |
--exe=* |
--ex=*)
219 exec_prefix
="$ac_optarg" ;;
221 -gas |
--gas |
--ga |
--g)
222 # Obsolete; use --with-gas.
225 -help |
--help |
--hel |
--he)
226 # Omit some internal or obsolete options to make the list less imposing.
227 # This message is too long to be a string in the A/UX 3.1 sh.
229 Usage: configure [options] [host]
230 Options: [defaults in brackets after descriptions]
232 --cache-file=FILE cache test results in FILE
233 --help print this message
234 --no-create do not create output files
235 --quiet, --silent do not print \`checking...' messages
236 --version print the version of autoconf that created configure
237 Directory and file names:
238 --prefix=PREFIX install architecture-independent files in PREFIX
240 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
242 --bindir=DIR user executables in DIR [EPREFIX/bin]
243 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
244 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
245 --datadir=DIR read-only architecture-independent data in DIR
247 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
248 --sharedstatedir=DIR modifiable architecture-independent data in DIR
250 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
251 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
252 --includedir=DIR C header files in DIR [PREFIX/include]
253 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
254 --infodir=DIR info documentation in DIR [PREFIX/info]
255 --mandir=DIR man documentation in DIR [PREFIX/man]
256 --srcdir=DIR find the sources in DIR [configure dir or ..]
257 --program-prefix=PREFIX prepend PREFIX to installed program names
258 --program-suffix=SUFFIX append SUFFIX to installed program names
259 --program-transform-name=PROGRAM
260 run sed PROGRAM on installed program names
264 --build=BUILD configure for building on BUILD [BUILD=HOST]
265 --host=HOST configure for HOST [guessed]
266 --target=TARGET configure for TARGET [TARGET=HOST]
267 Features and packages:
268 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
269 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
270 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
271 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
272 --x-includes=DIR X include files are in DIR
273 --x-libraries=DIR X library files are in DIR
275 if test -n "$ac_help"; then
276 echo "--enable and --with options recognized:$ac_help"
280 -host |
--host |
--hos |
--ho)
282 -host=* |
--host=* |
--hos=* |
--ho=*)
285 -includedir |
--includedir |
--includedi |
--included |
--include \
286 |
--includ |
--inclu |
--incl |
--inc)
287 ac_prev
=includedir
;;
288 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
289 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
290 includedir
="$ac_optarg" ;;
292 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
294 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
295 infodir
="$ac_optarg" ;;
297 -libdir |
--libdir |
--libdi |
--libd)
299 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
300 libdir
="$ac_optarg" ;;
302 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
303 |
--libexe |
--libex |
--libe)
304 ac_prev
=libexecdir
;;
305 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
306 |
--libexe=* |
--libex=* |
--libe=*)
307 libexecdir
="$ac_optarg" ;;
309 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
310 |
--localstate |
--localstat |
--localsta |
--localst \
311 |
--locals |
--local |
--loca |
--loc |
--lo)
312 ac_prev
=localstatedir
;;
313 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
314 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
315 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
316 localstatedir
="$ac_optarg" ;;
318 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
320 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
321 mandir
="$ac_optarg" ;;
324 # Obsolete; use --without-fp.
327 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
331 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
332 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
335 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
336 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
337 |
--oldin |
--oldi |
--old |
--ol |
--o)
338 ac_prev
=oldincludedir
;;
339 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
340 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
341 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
342 oldincludedir
="$ac_optarg" ;;
344 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
346 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
347 prefix
="$ac_optarg" ;;
349 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
350 |
--program-pre |
--program-pr |
--program-p)
351 ac_prev
=program_prefix
;;
352 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
353 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
354 program_prefix
="$ac_optarg" ;;
356 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
357 |
--program-suf |
--program-su |
--program-s)
358 ac_prev
=program_suffix
;;
359 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
360 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
361 program_suffix
="$ac_optarg" ;;
363 -program-transform-name |
--program-transform-name \
364 |
--program-transform-nam |
--program-transform-na \
365 |
--program-transform-n |
--program-transform- \
366 |
--program-transform |
--program-transfor \
367 |
--program-transfo |
--program-transf \
368 |
--program-trans |
--program-tran \
369 |
--progr-tra |
--program-tr |
--program-t)
370 ac_prev
=program_transform_name
;;
371 -program-transform-name=* |
--program-transform-name=* \
372 |
--program-transform-nam=* |
--program-transform-na=* \
373 |
--program-transform-n=* |
--program-transform-=* \
374 |
--program-transform=* |
--program-transfor=* \
375 |
--program-transfo=* |
--program-transf=* \
376 |
--program-trans=* |
--program-tran=* \
377 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
378 program_transform_name
="$ac_optarg" ;;
380 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
381 |
-silent |
--silent |
--silen |
--sile |
--sil)
384 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
386 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
388 sbindir
="$ac_optarg" ;;
390 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
391 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
392 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
394 ac_prev
=sharedstatedir
;;
395 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
396 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
397 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
399 sharedstatedir
="$ac_optarg" ;;
401 -site |
--site |
--sit)
403 -site=* |
--site=* |
--sit=*)
406 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
408 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
409 srcdir
="$ac_optarg" ;;
411 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
412 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
413 ac_prev
=sysconfdir
;;
414 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
415 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
416 sysconfdir
="$ac_optarg" ;;
418 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
420 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
421 target
="$ac_optarg" ;;
423 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
426 -version |
--version |
--versio |
--versi |
--vers)
427 echo "configure generated by autoconf version 2.13"
431 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
432 # Reject names that are not valid shell variable names.
433 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
434 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
436 ac_package
=`echo $ac_package| sed 's/-/_/g'`
441 eval "with_${ac_package}='$ac_optarg'" ;;
443 -without-* |
--without-*)
444 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
445 # Reject names that are not valid shell variable names.
446 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
447 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
449 ac_package
=`echo $ac_package| sed 's/-/_/g'`
450 eval "with_${ac_package}=no" ;;
453 # Obsolete; use --with-x.
456 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
457 |
--x-incl |
--x-inc |
--x-in |
--x-i)
458 ac_prev
=x_includes
;;
459 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
460 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
461 x_includes
="$ac_optarg" ;;
463 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
464 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
465 ac_prev
=x_libraries
;;
466 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
467 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
468 x_libraries
="$ac_optarg" ;;
470 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
474 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
475 echo "configure: warning: $ac_option: invalid host type" 1>&2
477 if test "x$nonopt" != xNONE
; then
478 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
486 if test -n "$ac_prev"; then
487 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
490 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
492 # File descriptor usage:
495 # 2 errors and warnings
496 # 3 some systems may open it to /dev/tty
497 # 4 used on the Kubota Titan
498 # 6 checking for... messages and results
499 # 5 compiler messages saved in config.log
500 if test "$silent" = yes; then
508 This file contains any messages produced by compilers while
509 running configure, to aid debugging if configure makes a mistake.
512 # Strip out --no-create and --no-recursion so they do not pile up.
513 # Also quote any args containing shell metacharacters.
518 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
519 |
--no-cr |
--no-c) ;;
520 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
521 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
522 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
523 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
524 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
529 # Only set these to C if already set. These must not be set unconditionally
530 # because not all systems understand e.g. LANG=C (notably SCO).
531 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
532 # Non-C LC_CTYPE values break the ctype check.
533 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
534 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
535 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
536 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
538 # confdefs.h avoids OS command line length limits that DEFS can exceed.
539 rm -rf conftest
* confdefs.h
540 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
543 # A filename unique to this package, relative to the directory that
544 # configure is in, which we can look for to find out if srcdir is correct.
545 ac_unique_file
=include
/includes.h
547 # Find the source files, if location was not specified.
548 if test -z "$srcdir"; then
549 ac_srcdir_defaulted
=yes
550 # Try the directory containing this script, then its parent.
552 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
553 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
555 if test ! -r $srcdir/$ac_unique_file; then
559 ac_srcdir_defaulted
=no
561 if test ! -r $srcdir/$ac_unique_file; then
562 if test "$ac_srcdir_defaulted" = yes; then
563 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
565 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
568 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
570 # Prefer explicitly selected file to automatically selected ones.
571 if test -z "$CONFIG_SITE"; then
572 if test "x$prefix" != xNONE
; then
573 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
575 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
578 for ac_site_file
in $CONFIG_SITE; do
579 if test -r "$ac_site_file"; then
580 echo "loading site script $ac_site_file"
585 if test -r "$cache_file"; then
586 echo "loading cache $cache_file"
589 echo "creating cache $cache_file"
594 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
595 ac_cpp
='$CPP $CPPFLAGS'
596 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
597 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
598 cross_compiling
=$ac_cv_prog_cc_cross
602 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
603 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
604 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
611 ac_n
= ac_c
='\c' ac_t
=
616 # we want to be compatibe with older versions of Samba
629 # compile with optimisation and without debugging by default
630 CFLAGS
=${CFLAGS-"-O"}
632 # Extract the first word of "gcc", so it can be a program name with args.
633 set dummy gcc
; ac_word
=$2
634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
635 echo "configure:636: checking for $ac_word" >&5
636 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
637 echo $ac_n "(cached) $ac_c" 1>&6
639 if test -n "$CC"; then
640 ac_cv_prog_CC
="$CC" # Let the user override the test.
642 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
644 for ac_dir
in $ac_dummy; do
645 test -z "$ac_dir" && ac_dir
=.
646 if test -f $ac_dir/$ac_word; then
655 if test -n "$CC"; then
656 echo "$ac_t""$CC" 1>&6
658 echo "$ac_t""no" 1>&6
661 if test -z "$CC"; then
662 # Extract the first word of "cc", so it can be a program name with args.
663 set dummy cc
; ac_word
=$2
664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
665 echo "configure:666: checking for $ac_word" >&5
666 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
667 echo $ac_n "(cached) $ac_c" 1>&6
669 if test -n "$CC"; then
670 ac_cv_prog_CC
="$CC" # Let the user override the test.
672 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
675 for ac_dir
in $ac_dummy; do
676 test -z "$ac_dir" && ac_dir
=.
677 if test -f $ac_dir/$ac_word; then
678 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
687 if test $ac_prog_rejected = yes; then
688 # We found a bogon in the path, so make sure we never use it.
689 set dummy
$ac_cv_prog_CC
691 if test $# -gt 0; then
692 # We chose a different compiler from the bogus one.
693 # However, it has the same basename, so the bogon will be chosen
694 # first if we set CC to just the basename; use the full file name.
696 set dummy
"$ac_dir/$ac_word" "$@"
704 if test -n "$CC"; then
705 echo "$ac_t""$CC" 1>&6
707 echo "$ac_t""no" 1>&6
710 if test -z "$CC"; then
713 # Extract the first word of "cl", so it can be a program name with args.
714 set dummy cl
; ac_word
=$2
715 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
716 echo "configure:717: checking for $ac_word" >&5
717 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
718 echo $ac_n "(cached) $ac_c" 1>&6
720 if test -n "$CC"; then
721 ac_cv_prog_CC
="$CC" # Let the user override the test.
723 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
725 for ac_dir
in $ac_dummy; do
726 test -z "$ac_dir" && ac_dir
=.
727 if test -f $ac_dir/$ac_word; then
736 if test -n "$CC"; then
737 echo "$ac_t""$CC" 1>&6
739 echo "$ac_t""no" 1>&6
744 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
747 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
748 echo "configure:749: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
751 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
752 ac_cpp
='$CPP $CPPFLAGS'
753 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
754 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
755 cross_compiling
=$ac_cv_prog_cc_cross
757 cat > conftest.
$ac_ext << EOF
759 #line 760 "configure"
760 #include "confdefs.h"
764 if { (eval echo configure
:765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
765 ac_cv_prog_cc_works
=yes
766 # If we can't run a trivial program, we are probably using a cross compiler.
767 if (.
/conftest
; exit) 2>/dev
/null
; then
768 ac_cv_prog_cc_cross
=no
770 ac_cv_prog_cc_cross
=yes
773 echo "configure: failed program was:" >&5
774 cat conftest.
$ac_ext >&5
775 ac_cv_prog_cc_works
=no
779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
780 ac_cpp
='$CPP $CPPFLAGS'
781 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
782 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
783 cross_compiling
=$ac_cv_prog_cc_cross
785 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
786 if test $ac_cv_prog_cc_works = no
; then
787 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
789 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
790 echo "configure:791: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
791 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
792 cross_compiling
=$ac_cv_prog_cc_cross
794 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
795 echo "configure:796: checking whether we are using GNU C" >&5
796 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
799 cat > conftest.c
<<EOF
804 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
811 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
813 if test $ac_cv_prog_gcc = yes; then
819 ac_test_CFLAGS
="${CFLAGS+set}"
820 ac_save_CFLAGS
="$CFLAGS"
822 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
823 echo "configure:824: checking whether ${CC-cc} accepts -g" >&5
824 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
827 echo 'void f(){}' > conftest.c
828 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
837 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
838 if test "$ac_test_CFLAGS" = set; then
839 CFLAGS
="$ac_save_CFLAGS"
840 elif test $ac_cv_prog_cc_g = yes; then
841 if test "$GCC" = yes; then
847 if test "$GCC" = yes; then
854 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
855 echo "configure:856: checking how to run the C preprocessor" >&5
856 # On Suns, sometimes $CPP names a directory.
857 if test -n "$CPP" && test -d "$CPP"; then
860 if test -z "$CPP"; then
861 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
862 echo $ac_n "(cached) $ac_c" 1>&6
864 # This must be in double quotes, not single quotes, because CPP may get
865 # substituted into the Makefile and "${CC-cc}" will confuse make.
867 # On the NeXT, cc -E runs the code through the compiler's parser,
868 # not just through cpp.
869 cat > conftest.
$ac_ext <<EOF
870 #line 871 "configure"
871 #include "confdefs.h"
875 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
876 { (eval echo configure
:877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
877 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
878 if test -z "$ac_err"; then
882 echo "configure: failed program was:" >&5
883 cat conftest.
$ac_ext >&5
885 CPP
="${CC-cc} -E -traditional-cpp"
886 cat > conftest.
$ac_ext <<EOF
887 #line 888 "configure"
888 #include "confdefs.h"
892 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
893 { (eval echo configure
:894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
894 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
895 if test -z "$ac_err"; then
899 echo "configure: failed program was:" >&5
900 cat conftest.
$ac_ext >&5
902 CPP
="${CC-cc} -nologo -E"
903 cat > conftest.
$ac_ext <<EOF
904 #line 905 "configure"
905 #include "confdefs.h"
909 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
910 { (eval echo configure
:911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
911 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
912 if test -z "$ac_err"; then
916 echo "configure: failed program was:" >&5
917 cat conftest.
$ac_ext >&5
926 ac_cv_prog_CPP
="$CPP"
928 CPP
="$ac_cv_prog_CPP"
930 ac_cv_prog_CPP
="$CPP"
932 echo "$ac_t""$CPP" 1>&6
935 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
936 if test -f $ac_dir/install-sh
; then
938 ac_install_sh
="$ac_aux_dir/install-sh -c"
940 elif test -f $ac_dir/install.sh
; then
942 ac_install_sh
="$ac_aux_dir/install.sh -c"
946 if test -z "$ac_aux_dir"; then
947 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
949 ac_config_guess
=$ac_aux_dir/config.guess
950 ac_config_sub
=$ac_aux_dir/config.sub
951 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
953 # Find a good install program. We prefer a C program (faster),
954 # so one script is as good as another. But avoid the broken or
955 # incompatible versions:
956 # SysV /etc/install, /usr/sbin/install
957 # SunOS /usr/etc/install
960 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
961 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
962 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
963 # ./install, which can be erroneously created by make from ./install.sh.
964 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
965 echo "configure:966: checking for a BSD compatible install" >&5
966 if test -z "$INSTALL"; then
967 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
970 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
971 for ac_dir
in $PATH; do
972 # Account for people who put trailing slashes in PATH elements.
974 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
976 # OSF1 and SCO ODT 3.0 have their own names for install.
977 # Don't use installbsd from OSF since it installs stuff as root
979 for ac_prog
in ginstall scoinst
install; do
980 if test -f $ac_dir/$ac_prog; then
981 if test $ac_prog = install &&
982 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
983 # AIX install. It has an incompatible calling convention.
986 ac_cv_path_install
="$ac_dir/$ac_prog -c"
997 if test "${ac_cv_path_install+set}" = set; then
998 INSTALL
="$ac_cv_path_install"
1000 # As a last resort, use the slow shell script. We don't cache a
1001 # path for INSTALL within a source directory, because that will
1002 # break other packages using the cache if that directory is
1003 # removed, or if the path is relative.
1004 INSTALL
="$ac_install_sh"
1007 echo "$ac_t""$INSTALL" 1>&6
1009 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1010 # It thinks the first close brace ends the variable substitution.
1011 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1013 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1015 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1017 for ac_prog
in mawk gawk nawk
awk
1019 # Extract the first word of "$ac_prog", so it can be a program name with args.
1020 set dummy
$ac_prog; ac_word
=$2
1021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1022 echo "configure:1023: checking for $ac_word" >&5
1023 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1026 if test -n "$AWK"; then
1027 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1029 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1031 for ac_dir
in $ac_dummy; do
1032 test -z "$ac_dir" && ac_dir
=.
1033 if test -f $ac_dir/$ac_word; then
1034 ac_cv_prog_AWK
="$ac_prog"
1041 AWK
="$ac_cv_prog_AWK"
1042 if test -n "$AWK"; then
1043 echo "$ac_t""$AWK" 1>&6
1045 echo "$ac_t""no" 1>&6
1048 test -n "$AWK" && break
1052 # Check whether --enable-static or --disable-static was given.
1053 if test "${enable_static+set}" = set; then
1054 enableval
="$enable_static"
1055 p
=${PACKAGE-default}
1056 case "$enableval" in
1057 yes) enable_static
=yes ;;
1058 no
) enable_static
=no
;;
1061 # Look at the argument we got. We use all the common list separators.
1062 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1063 for pkg
in $enableval; do
1064 if test "X$pkg" = "X$p"; then
1077 # Check whether --enable-shared or --disable-shared was given.
1078 if test "${enable_shared+set}" = set; then
1079 enableval
="$enable_shared"
1080 p
=${PACKAGE-default}
1081 case "$enableval" in
1082 yes) enable_shared
=yes ;;
1083 no
) enable_shared
=no
;;
1086 # Look at the argument we got. We use all the common list separators.
1087 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1088 for pkg
in $enableval; do
1089 if test "X$pkg" = "X$p"; then
1100 # Check whether --enable-fast-install or --disable-fast-install was given.
1101 if test "${enable_fast_install+set}" = set; then
1102 enableval
="$enable_fast_install"
1103 p
=${PACKAGE-default}
1104 case "$enableval" in
1105 yes) enable_fast_install
=yes ;;
1106 no
) enable_fast_install
=no
;;
1108 enable_fast_install
=no
1109 # Look at the argument we got. We use all the common list separators.
1110 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1111 for pkg
in $enableval; do
1112 if test "X$pkg" = "X$p"; then
1113 enable_fast_install
=yes
1120 enable_fast_install
=yes
1124 # Make sure we can run config.sub.
1125 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1126 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1129 echo $ac_n "checking host system type""... $ac_c" 1>&6
1130 echo "configure:1131: checking host system type" >&5
1133 case "$host_alias" in
1137 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1138 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1140 *) host_alias
=$nonopt ;;
1144 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1145 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1146 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1147 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1148 echo "$ac_t""$host" 1>&6
1150 echo $ac_n "checking build system type""... $ac_c" 1>&6
1151 echo "configure:1152: checking build system type" >&5
1154 case "$build_alias" in
1157 NONE
) build_alias
=$host_alias ;;
1158 *) build_alias
=$nonopt ;;
1162 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1163 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1164 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1165 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1166 echo "$ac_t""$build" 1>&6
1168 # Extract the first word of "ranlib", so it can be a program name with args.
1169 set dummy ranlib
; ac_word
=$2
1170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1171 echo "configure:1172: checking for $ac_word" >&5
1172 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1173 echo $ac_n "(cached) $ac_c" 1>&6
1175 if test -n "$RANLIB"; then
1176 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1178 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1180 for ac_dir
in $ac_dummy; do
1181 test -z "$ac_dir" && ac_dir
=.
1182 if test -f $ac_dir/$ac_word; then
1183 ac_cv_prog_RANLIB
="ranlib"
1188 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1191 RANLIB
="$ac_cv_prog_RANLIB"
1192 if test -n "$RANLIB"; then
1193 echo "$ac_t""$RANLIB" 1>&6
1195 echo "$ac_t""no" 1>&6
1198 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1199 if test "${with_gnu_ld+set}" = set; then
1200 withval
="$with_gnu_ld"
1201 test "$withval" = no || with_gnu_ld
=yes
1207 if test "$ac_cv_prog_gcc" = yes; then
1208 # Check if gcc -print-prog-name=ld gives a path.
1209 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1210 echo "configure:1211: checking for ld used by GCC" >&5
1211 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1213 # Accept absolute paths.
1214 [\\/]* |
[A-Za-z
]:[\\/]*)
1215 re_direlt
='/[^/][^/]*/\.\./'
1216 # Canonicalize the path of ld
1217 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1218 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1219 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1221 test -z "$LD" && LD
="$ac_prog"
1224 # If it fails, then pretend we aren't using GCC.
1228 # If it is relative, then search for the first ld in PATH.
1232 elif test "$with_gnu_ld" = yes; then
1233 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1234 echo "configure:1235: checking for GNU ld" >&5
1236 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1237 echo "configure:1238: checking for non-GNU ld" >&5
1239 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&6
1242 if test -z "$LD"; then
1243 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1244 for ac_dir
in $PATH; do
1245 test -z "$ac_dir" && ac_dir
=.
1246 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1247 ac_cv_path_LD
="$ac_dir/$ac_prog"
1248 # Check to see if the program is GNU ld. I'd rather use --version,
1249 # but apparently some GNU ld's only accept -v.
1250 # Break only if it was the GNU/non-GNU ld that we prefer.
1251 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1252 test "$with_gnu_ld" != no
&& break
1254 test "$with_gnu_ld" != yes && break
1260 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1265 if test -n "$LD"; then
1266 echo "$ac_t""$LD" 1>&6
1268 echo "$ac_t""no" 1>&6
1270 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1271 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1272 echo "configure:1273: checking if the linker ($LD) is GNU ld" >&5
1273 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1276 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1277 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1278 ac_cv_prog_gnu_ld
=yes
1280 ac_cv_prog_gnu_ld
=no
1284 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1287 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1288 echo "configure:1289: checking for BSD-compatible nm" >&5
1289 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 if test -n "$NM"; then
1293 # Let the user override the test.
1296 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1297 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1298 test -z "$ac_dir" && ac_dir
=.
1299 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1300 # Check to see if the nm accepts a BSD-compat flag.
1301 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1302 # nm: unknown option "B" ignored
1303 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1304 ac_cv_path_NM
="$ac_dir/nm -B"
1306 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1307 ac_cv_path_NM
="$ac_dir/nm -p"
1310 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1311 continue # so that we can try to find one that supports BSD flags
1316 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1321 echo "$ac_t""$NM" 1>&6
1323 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1324 echo "configure:1325: checking whether ln -s works" >&5
1325 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1329 if ln -s X conftestdata
2>/dev
/null
1332 ac_cv_prog_LN_S
="ln -s"
1337 LN_S
="$ac_cv_prog_LN_S"
1338 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1339 echo "$ac_t""yes" 1>&6
1341 echo "$ac_t""no" 1>&6
1346 NONE
) lt_target
="$host" ;;
1347 *) lt_target
="$target" ;;
1350 # Check for any special flags to pass to ltconfig.
1351 libtool_flags
="--cache-file=$cache_file"
1352 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1353 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1354 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1355 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1356 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1357 libtool_flags
="$libtool_flags --enable-dlopen"
1359 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1360 if test "${enable_libtool_lock+set}" = set; then
1361 enableval
="$enable_libtool_lock"
1365 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1366 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1368 # Some flags need to be propagated to the compiler or linker for good
1370 case "$lt_target" in
1372 # Find out which ABI we are using.
1373 echo '#line 1374 "configure"' > conftest.
$ac_ext
1374 if { (eval echo configure
:1375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1375 case "`/usr/bin/file conftest.o`" in
1391 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1392 SAVE_CFLAGS
="$CFLAGS"
1393 CFLAGS
="$CFLAGS -belf"
1394 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1395 echo "configure:1396: checking whether the C compiler needs -belf" >&5
1396 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 cat > conftest.
$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1407 if { (eval echo configure
:1408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1409 lt_cv_cc_needs_belf
=yes
1411 echo "configure: failed program was:" >&5
1412 cat conftest.
$ac_ext >&5
1414 lt_cv_cc_needs_belf
=no
1419 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1420 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1421 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1422 CFLAGS
="$SAVE_CFLAGS"
1430 # Save cache, so that ltconfig can load it
1431 cat > confcache
<<\EOF
1432 # This file is a shell script that caches the results of configure
1433 # tests run on this system so they can be shared between configure
1434 # scripts and configure runs. It is not useful on other systems.
1435 # If it contains results you don't want to keep, you may remove or edit it.
1437 # By default, configure uses ./config.cache as the cache file,
1438 # creating it if it does not exist already. You can give configure
1439 # the --cache-file=FILE option to use a different cache file; that is
1440 # what configure does when it calls configure scripts in
1441 # subdirectories, so they share the cache.
1442 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1443 # config.status only pays attention to the cache file if you give it the
1444 # --recheck option to rerun configure.
1447 # The following way of writing the cache mishandles newlines in values,
1448 # but we know of no workaround that is simple, portable, and efficient.
1449 # So, don't put newlines in cache variables' values.
1450 # Ultrix sh set writes to stderr and can't be redirected directly,
1451 # and sets the high bit in the cache file unless we assign to the vars.
1453 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1455 # `set' does not quote correctly, so add quotes (double-quote substitution
1456 # turns \\\\ into \\, and sed turns \\ into \).
1458 -e "s/'/'\\\\''/g" \
1459 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1462 # `set' quotes correctly as required by POSIX, so do not add quotes.
1463 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1466 if cmp -s $cache_file confcache
; then
1469 if test -w $cache_file; then
1470 echo "updating cache $cache_file"
1471 cat confcache
> $cache_file
1473 echo "not updating unwritable cache $cache_file"
1479 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1480 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1481 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1482 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1483 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1484 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1485 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1486 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1488 # Reload cache, that may have been modified by ltconfig
1489 if test -r "$cache_file"; then
1490 echo "loading cache $cache_file"
1493 echo "creating cache $cache_file"
1498 # This can be used to rebuild libtool when needed
1499 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1501 # Always use our own libtool.
1502 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1504 # Redirect the config.log output again, so that the ltconfig log is not
1505 # clobbered by the next message.
1506 exec 5>>.
/config.log
1510 if test "x$CC" != xcc
; then
1511 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1512 echo "configure:1513: checking whether $CC and cc understand -c and -o together" >&5
1514 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1515 echo "configure:1516: checking whether cc understands -c and -o together" >&5
1517 set dummy
$CC; ac_cc
="`echo $2 |
1518 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1519 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1520 echo $ac_n "(cached) $ac_c" 1>&6
1522 echo 'foo(){}' > conftest.c
1523 # Make sure it works both with $CC and with simple cc.
1524 # We do the test twice because some compilers refuse to overwrite an
1525 # existing .o file with -o, though they will create one.
1526 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1527 if { (eval echo configure
:1528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1528 test -f conftest.o
&& { (eval echo configure
:1529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1530 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1531 if test "x$CC" != xcc
; then
1532 # Test first that cc exists at all.
1533 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1534 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1535 if { (eval echo configure
:1536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1536 test -f conftest.o
&& { (eval echo configure
:1537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1541 # cc exists but doesn't like -o.
1542 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1547 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1552 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1553 echo "$ac_t""yes" 1>&6
1555 echo "$ac_t""no" 1>&6
1556 cat >> confdefs.h
<<\EOF
1557 #define NO_MINUS_C_MINUS_O 1
1562 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1569 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1570 echo "configure:1571: checking that the C compiler understands volatile" >&5
1571 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1575 cat > conftest.
$ac_ext <<EOF
1576 #line 1577 "configure"
1577 #include "confdefs.h"
1578 #include <sys/types.h>
1583 if { (eval echo configure
:1584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1585 samba_cv_volatile
=yes
1587 echo "configure: failed program was:" >&5
1588 cat conftest.
$ac_ext >&5
1590 samba_cv_volatile
=no
1595 echo "$ac_t""$samba_cv_volatile" 1>&6
1596 if test x
"$samba_cv_volatile" = x
"yes"; then
1597 cat >> confdefs.h
<<\EOF
1598 #define HAVE_VOLATILE 1
1606 # Do some error checking and defaulting for the host and target type.
1608 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1611 # 1. You are not allowed to specify --host, --target, and nonopt at the
1613 # 2. Host defaults to nonopt.
1614 # 3. If nonopt is not specified, then host defaults to the current host,
1615 # as determined by config.guess.
1616 # 4. Target and build default to nonopt.
1617 # 5. If nonopt is not specified, then target and build default to host.
1619 # The aliases save the names the user supplied, while $host etc.
1620 # will get canonicalized.
1621 case $host---$target---$nonopt in
1622 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1623 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1627 # Make sure we can run config.sub.
1628 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1629 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1632 echo $ac_n "checking host system type""... $ac_c" 1>&6
1633 echo "configure:1634: checking host system type" >&5
1636 case "$host_alias" in
1640 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1641 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1643 *) host_alias
=$nonopt ;;
1647 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1648 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1649 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1650 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651 echo "$ac_t""$host" 1>&6
1653 echo $ac_n "checking target system type""... $ac_c" 1>&6
1654 echo "configure:1655: checking target system type" >&5
1656 target_alias
=$target
1657 case "$target_alias" in
1660 NONE
) target_alias
=$host_alias ;;
1661 *) target_alias
=$nonopt ;;
1665 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1666 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669 echo "$ac_t""$target" 1>&6
1671 echo $ac_n "checking build system type""... $ac_c" 1>&6
1672 echo "configure:1673: checking build system type" >&5
1675 case "$build_alias" in
1678 NONE
) build_alias
=$host_alias ;;
1679 *) build_alias
=$nonopt ;;
1683 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1684 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1685 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1686 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1687 echo "$ac_t""$build" 1>&6
1689 test "$host_alias" != "$target_alias" &&
1690 test "$program_prefix$program_suffix$program_transform_name" = \
1692 program_prefix
=${target_alias}-
1696 *irix
*) cat >> confdefs.h
<<\EOF
1697 #include <standards.h>
1705 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1706 echo "configure:1707: checking config.cache system type" >&5
1707 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1708 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1709 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1710 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1711 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1712 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1713 echo "$ac_t""different" 1>&6
1714 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1716 echo "$ac_t""same" 1>&6
1718 ac_cv_host_system_type
="$host"
1719 ac_cv_build_system_type
="$build"
1720 ac_cv_target_system_type
="$target"
1723 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1724 if test "${enable_maintainer_mode+set}" = set; then
1725 enableval
="$enable_maintainer_mode"
1726 maint_mode
=$enableval
1731 if test x
"$maint_mode" = x
"yes"; then MAINT
=; else MAINT
='#'; fi
1733 # Extract the first word of "autoconf", so it can be a program name with args.
1734 set dummy autoconf
; ac_word
=$2
1735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1736 echo "configure:1737: checking for $ac_word" >&5
1737 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1742 ac_cv_path_AUTOCONF
="$AUTOCONF" # Let the user override the test with a path.
1745 ac_cv_path_AUTOCONF
="$AUTOCONF" # Let the user override the test with a dos path.
1748 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1750 for ac_dir
in $ac_dummy; do
1751 test -z "$ac_dir" && ac_dir
=.
1752 if test -f $ac_dir/$ac_word; then
1753 ac_cv_path_AUTOCONF
="$ac_dir/$ac_word"
1758 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF
="autoconf"
1762 AUTOCONF
="$ac_cv_path_AUTOCONF"
1763 if test -n "$AUTOCONF"; then
1764 echo "$ac_t""$AUTOCONF" 1>&6
1766 echo "$ac_t""no" 1>&6
1770 # Extract the first word of "autoheader", so it can be a program name with args.
1771 set dummy autoheader
; ac_word
=$2
1772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1773 echo "configure:1774: checking for $ac_word" >&5
1774 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1777 case "$AUTOHEADER" in
1779 ac_cv_path_AUTOHEADER
="$AUTOHEADER" # Let the user override the test with a path.
1782 ac_cv_path_AUTOHEADER
="$AUTOHEADER" # Let the user override the test with a dos path.
1785 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1787 for ac_dir
in $ac_dummy; do
1788 test -z "$ac_dir" && ac_dir
=.
1789 if test -f $ac_dir/$ac_word; then
1790 ac_cv_path_AUTOHEADER
="$ac_dir/$ac_word"
1795 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER
="autoheader"
1799 AUTOHEADER
="$ac_cv_path_AUTOHEADER"
1800 if test -n "$AUTOHEADER"; then
1801 echo "$ac_t""$AUTOHEADER" 1>&6
1803 echo "$ac_t""no" 1>&6
1810 # Config CPPFLAG settings for strange OS's that must be set
1811 # before other tests.
1814 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1816 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1817 echo "configure:1818: checking whether ${CC-cc} accepts -Ae" >&5
1818 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1821 echo 'void f(){}' > conftest.c
1822 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1823 ac_cv_prog_cc_Ae
=yes
1831 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1832 if test $ac_cv_prog_cc_Ae = yes; then
1833 CPPFLAGS
="$CPPFLAGS -Ae"
1836 # Defines needed for HPUX support.
1837 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1838 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1842 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1843 cat >> confdefs.h
<<\EOF
1844 #define USE_BOTH_CRYPT_CALLS 1
1849 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1850 cat >> confdefs.h
<<\EOF
1851 #define USE_BOTH_CRYPT_CALLS 1
1858 # AIX4.x doesn't even admit to having large
1859 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1862 echo "$ac_t""enabling large file support" 1>&6
1863 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1866 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1867 # to the existance of large files..
1868 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1869 # recommendations on large file support, however it makes the
1870 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1871 # recommendation makes the compile fail on gcc2.7. JRA.
1876 echo "$ac_t""enabling large file support" 1>&6
1877 if test "$ac_cv_prog_gcc" = yes; then
1878 ${CC-cc} -v >conftest.c
2>&1
1879 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1881 case "$ac_cv_gcc_compiler_version_number" in
1882 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1883 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1886 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1890 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1896 # Tests needed for SINIX large file support.
1899 if test $host = mips-sni-sysv4
; then
1900 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1901 echo "configure:1902: checking for LFS support" >&5
1902 old_CPPFLAGS
="$CPPFLAGS"
1903 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1904 if test "$cross_compiling" = yes; then
1905 SINIX_LFS_SUPPORT
=cross
1907 cat > conftest.
$ac_ext <<EOF
1908 #line 1909 "configure"
1909 #include "confdefs.h"
1913 #if _LFS64_LARGEFILE == 1
1920 if { (eval echo configure
:1921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1922 SINIX_LFS_SUPPORT
=yes
1924 echo "configure: failed program was:" >&5
1925 cat conftest.
$ac_ext >&5
1927 SINIX_LFS_SUPPORT
=no
1932 CPPFLAGS
="$old_CPPFLAGS"
1933 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1934 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1935 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1936 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1937 LIBS
="`getconf LFS64_LIBS` $LIBS"
1939 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1944 # Tests needed for glibc 2.1 large file support.
1947 echo "$ac_t""disabling large file support for glibc2.1 on Linux" 1>&6
1950 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1951 echo "configure:1952: checking for LFS support" >&5
1952 old_CPPFLAGS
="$CPPFLAGS"
1953 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1954 if test "$cross_compiling" = yes; then
1955 GLIBC_LFS_SUPPORT
=cross
1957 cat > conftest.
$ac_ext <<EOF
1958 #line 1959 "configure"
1959 #include "confdefs.h"
1963 #if _LFS64_LARGEFILE == 1
1970 if { (eval echo configure
:1971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1972 GLIBC_LFS_SUPPORT
=yes
1974 echo "configure: failed program was:" >&5
1975 cat conftest.
$ac_ext >&5
1977 GLIBC_LFS_SUPPORT
=no
1982 CPPFLAGS
="$old_CPPFLAGS"
1983 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1984 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1986 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1991 echo $ac_n "checking for inline""... $ac_c" 1>&6
1992 echo "configure:1993: checking for inline" >&5
1993 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1994 echo $ac_n "(cached) $ac_c" 1>&6
1997 for ac_kw
in inline __inline__ __inline
; do
1998 cat > conftest.
$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2003 } int $ac_kw foo() {
2006 if { (eval echo configure
:2007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2008 ac_cv_c_inline
=$ac_kw; break
2010 echo "configure: failed program was:" >&5
2011 cat conftest.
$ac_ext >&5
2018 echo "$ac_t""$ac_cv_c_inline" 1>&6
2019 case "$ac_cv_c_inline" in
2021 no
) cat >> confdefs.h
<<\EOF
2025 *) cat >> confdefs.h
<<EOF
2026 #define inline $ac_cv_c_inline
2031 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2032 echo "configure:2033: checking for ANSI C header files" >&5
2033 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2036 cat > conftest.
$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2044 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2045 { (eval echo configure
:2046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2046 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2047 if test -z "$ac_err"; then
2049 ac_cv_header_stdc
=yes
2052 echo "configure: failed program was:" >&5
2053 cat conftest.
$ac_ext >&5
2055 ac_cv_header_stdc
=no
2059 if test $ac_cv_header_stdc = yes; then
2060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2061 cat > conftest.
$ac_ext <<EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2067 egrep "memchr" >/dev
/null
2>&1; then
2071 ac_cv_header_stdc
=no
2077 if test $ac_cv_header_stdc = yes; then
2078 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2079 cat > conftest.
$ac_ext <<EOF
2080 #line 2081 "configure"
2081 #include "confdefs.h"
2084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2085 egrep "free" >/dev
/null
2>&1; then
2089 ac_cv_header_stdc
=no
2095 if test $ac_cv_header_stdc = yes; then
2096 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2097 if test "$cross_compiling" = yes; then
2100 cat > conftest.
$ac_ext <<EOF
2101 #line 2102 "configure"
2102 #include "confdefs.h"
2104 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2105 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2107 int main () { int i; for (i = 0; i < 256; i++)
2108 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2112 if { (eval echo configure
:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2116 echo "configure: failed program was:" >&5
2117 cat conftest.
$ac_ext >&5
2119 ac_cv_header_stdc
=no
2127 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2128 if test $ac_cv_header_stdc = yes; then
2129 cat >> confdefs.h
<<\EOF
2130 #define STDC_HEADERS 1
2136 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2138 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2139 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2140 echo "configure:2141: checking for $ac_hdr that defines DIR" >&5
2141 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2144 cat > conftest.
$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2147 #include <sys/types.h>
2153 if { (eval echo configure
:2154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2155 eval "ac_cv_header_dirent_$ac_safe=yes"
2157 echo "configure: failed program was:" >&5
2158 cat conftest.
$ac_ext >&5
2160 eval "ac_cv_header_dirent_$ac_safe=no"
2164 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2165 echo "$ac_t""yes" 1>&6
2166 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2167 cat >> confdefs.h
<<EOF
2168 #define $ac_tr_hdr 1
2170 ac_header_dirent
=$ac_hdr; break
2172 echo "$ac_t""no" 1>&6
2175 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2176 if test $ac_header_dirent = dirent.h
; then
2177 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2178 echo "configure:2179: checking for opendir in -ldir" >&5
2179 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2183 ac_save_LIBS
="$LIBS"
2185 cat > conftest.
$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2188 /* Override any gcc2 internal prototype to avoid an error. */
2189 /* We use char because int might match the return type of a gcc2
2190 builtin and then its argument prototype would still apply. */
2197 if { (eval echo configure
:2198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2199 eval "ac_cv_lib_$ac_lib_var=yes"
2201 echo "configure: failed program was:" >&5
2202 cat conftest.
$ac_ext >&5
2204 eval "ac_cv_lib_$ac_lib_var=no"
2207 LIBS
="$ac_save_LIBS"
2210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2211 echo "$ac_t""yes" 1>&6
2214 echo "$ac_t""no" 1>&6
2218 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2219 echo "configure:2220: checking for opendir in -lx" >&5
2220 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2224 ac_save_LIBS
="$LIBS"
2226 cat > conftest.
$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2229 /* Override any gcc2 internal prototype to avoid an error. */
2230 /* We use char because int might match the return type of a gcc2
2231 builtin and then its argument prototype would still apply. */
2238 if { (eval echo configure
:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2240 eval "ac_cv_lib_$ac_lib_var=yes"
2242 echo "configure: failed program was:" >&5
2243 cat conftest.
$ac_ext >&5
2245 eval "ac_cv_lib_$ac_lib_var=no"
2248 LIBS
="$ac_save_LIBS"
2251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2252 echo "$ac_t""yes" 1>&6
2255 echo "$ac_t""no" 1>&6
2260 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2261 echo "configure:2262: checking whether time.h and sys/time.h may both be included" >&5
2262 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2265 cat > conftest.
$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
2268 #include <sys/types.h>
2269 #include <sys/time.h>
2275 if { (eval echo configure
:2276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2277 ac_cv_header_time
=yes
2279 echo "configure: failed program was:" >&5
2280 cat conftest.
$ac_ext >&5
2282 ac_cv_header_time
=no
2287 echo "$ac_t""$ac_cv_header_time" 1>&6
2288 if test $ac_cv_header_time = yes; then
2289 cat >> confdefs.h
<<\EOF
2290 #define TIME_WITH_SYS_TIME 1
2295 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2296 echo "configure:2297: checking for sys/wait.h that is POSIX.1 compatible" >&5
2297 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 cat > conftest.
$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2303 #include <sys/types.h>
2304 #include <sys/wait.h>
2306 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2309 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2314 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2317 if { (eval echo configure
:2318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2319 ac_cv_header_sys_wait_h
=yes
2321 echo "configure: failed program was:" >&5
2322 cat conftest.
$ac_ext >&5
2324 ac_cv_header_sys_wait_h
=no
2329 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2330 if test $ac_cv_header_sys_wait_h = yes; then
2331 cat >> confdefs.h
<<\EOF
2332 #define HAVE_SYS_WAIT_H 1
2337 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2339 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2340 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2341 echo "configure:2342: checking for $ac_hdr" >&5
2342 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2345 cat > conftest.
$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2350 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2351 { (eval echo configure
:2352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2352 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2353 if test -z "$ac_err"; then
2355 eval "ac_cv_header_$ac_safe=yes"
2358 echo "configure: failed program was:" >&5
2359 cat conftest.
$ac_ext >&5
2361 eval "ac_cv_header_$ac_safe=no"
2365 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2366 echo "$ac_t""yes" 1>&6
2367 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2368 cat >> confdefs.h
<<EOF
2369 #define $ac_tr_hdr 1
2373 echo "$ac_t""no" 1>&6
2377 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2379 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2380 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2381 echo "configure:2382: checking for $ac_hdr" >&5
2382 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 cat > conftest.
$ac_ext <<EOF
2386 #line 2387 "configure"
2387 #include "confdefs.h"
2390 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2391 { (eval echo configure
:2392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2392 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2393 if test -z "$ac_err"; then
2395 eval "ac_cv_header_$ac_safe=yes"
2398 echo "configure: failed program was:" >&5
2399 cat conftest.
$ac_ext >&5
2401 eval "ac_cv_header_$ac_safe=no"
2405 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2406 echo "$ac_t""yes" 1>&6
2407 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2408 cat >> confdefs.h
<<EOF
2409 #define $ac_tr_hdr 1
2413 echo "$ac_t""no" 1>&6
2417 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2419 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2420 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2421 echo "configure:2422: checking for $ac_hdr" >&5
2422 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6
2425 cat > conftest.
$ac_ext <<EOF
2426 #line 2427 "configure"
2427 #include "confdefs.h"
2430 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2431 { (eval echo configure
:2432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2432 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2433 if test -z "$ac_err"; then
2435 eval "ac_cv_header_$ac_safe=yes"
2438 echo "configure: failed program was:" >&5
2439 cat conftest.
$ac_ext >&5
2441 eval "ac_cv_header_$ac_safe=no"
2445 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2446 echo "$ac_t""yes" 1>&6
2447 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2448 cat >> confdefs.h
<<EOF
2449 #define $ac_tr_hdr 1
2453 echo "$ac_t""no" 1>&6
2457 for ac_hdr
in sys
/param.h ctype.h sys
/un.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/mode.h
2459 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2460 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2461 echo "configure:2462: checking for $ac_hdr" >&5
2462 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2465 cat > conftest.
$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2470 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2471 { (eval echo configure
:2472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2472 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2473 if test -z "$ac_err"; then
2475 eval "ac_cv_header_$ac_safe=yes"
2478 echo "configure: failed program was:" >&5
2479 cat conftest.
$ac_ext >&5
2481 eval "ac_cv_header_$ac_safe=no"
2485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2486 echo "$ac_t""yes" 1>&6
2487 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2488 cat >> confdefs.h
<<EOF
2489 #define $ac_tr_hdr 1
2493 echo "$ac_t""no" 1>&6
2497 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h string.h
strings.h stdlib.h sys
/socket.h
2499 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2501 echo "configure:2502: checking for $ac_hdr" >&5
2502 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2505 cat > conftest.
$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2510 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2511 { (eval echo configure
:2512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2512 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2513 if test -z "$ac_err"; then
2515 eval "ac_cv_header_$ac_safe=yes"
2518 echo "configure: failed program was:" >&5
2519 cat conftest.
$ac_ext >&5
2521 eval "ac_cv_header_$ac_safe=no"
2525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2526 echo "$ac_t""yes" 1>&6
2527 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2528 cat >> confdefs.h
<<EOF
2529 #define $ac_tr_hdr 1
2533 echo "$ac_t""no" 1>&6
2537 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2539 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2540 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2541 echo "configure:2542: checking for $ac_hdr" >&5
2542 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2545 cat > conftest.
$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2550 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2551 { (eval echo configure
:2552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2552 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2553 if test -z "$ac_err"; then
2555 eval "ac_cv_header_$ac_safe=yes"
2558 echo "configure: failed program was:" >&5
2559 cat conftest.
$ac_ext >&5
2561 eval "ac_cv_header_$ac_safe=no"
2565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2566 echo "$ac_t""yes" 1>&6
2567 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2568 cat >> confdefs.h
<<EOF
2569 #define $ac_tr_hdr 1
2573 echo "$ac_t""no" 1>&6
2577 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2579 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2581 echo "configure:2582: checking for $ac_hdr" >&5
2582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2585 cat > conftest.
$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2590 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2591 { (eval echo configure
:2592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2592 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2593 if test -z "$ac_err"; then
2595 eval "ac_cv_header_$ac_safe=yes"
2598 echo "configure: failed program was:" >&5
2599 cat conftest.
$ac_ext >&5
2601 eval "ac_cv_header_$ac_safe=no"
2605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2606 echo "$ac_t""yes" 1>&6
2607 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2608 cat >> confdefs.h
<<EOF
2609 #define $ac_tr_hdr 1
2613 echo "$ac_t""no" 1>&6
2617 for ac_hdr
in getopt.h
2619 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2620 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2621 echo "configure:2622: checking for $ac_hdr" >&5
2622 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2625 cat > conftest.
$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2630 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2631 { (eval echo configure
:2632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2632 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2633 if test -z "$ac_err"; then
2635 eval "ac_cv_header_$ac_safe=yes"
2638 echo "configure: failed program was:" >&5
2639 cat conftest.
$ac_ext >&5
2641 eval "ac_cv_header_$ac_safe=no"
2645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2646 echo "$ac_t""yes" 1>&6
2647 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2648 cat >> confdefs.h
<<EOF
2649 #define $ac_tr_hdr 1
2653 echo "$ac_t""no" 1>&6
2658 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2659 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2663 cat > conftest.
$ac_ext <<EOF
2664 #line 2665 "configure"
2665 #include "confdefs.h"
2671 if { (eval echo configure
:2672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2673 ac_cv_header_shadow_h
=yes
2675 echo "configure: failed program was:" >&5
2676 cat conftest.
$ac_ext >&5
2678 ac_cv_header_shadow_h
=no
2681 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2682 cat >> confdefs.h
<<\EOF
2683 #define HAVE_SHADOW_H 1
2689 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2691 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2693 echo "configure:2694: checking for $ac_hdr" >&5
2694 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2697 cat > conftest.
$ac_ext <<EOF
2698 #line 2699 "configure"
2699 #include "confdefs.h"
2702 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2703 { (eval echo configure
:2704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2704 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2705 if test -z "$ac_err"; then
2707 eval "ac_cv_header_$ac_safe=yes"
2710 echo "configure: failed program was:" >&5
2711 cat conftest.
$ac_ext >&5
2713 eval "ac_cv_header_$ac_safe=no"
2717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2718 echo "$ac_t""yes" 1>&6
2719 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2720 cat >> confdefs.h
<<EOF
2721 #define $ac_tr_hdr 1
2725 echo "$ac_t""no" 1>&6
2729 for ac_hdr
in sys
/security.h security
/pam_appl.h
2731 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2732 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2733 echo "configure:2734: checking for $ac_hdr" >&5
2734 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6
2737 cat > conftest.
$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2742 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2743 { (eval echo configure
:2744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2744 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2745 if test -z "$ac_err"; then
2747 eval "ac_cv_header_$ac_safe=yes"
2750 echo "configure: failed program was:" >&5
2751 cat conftest.
$ac_ext >&5
2753 eval "ac_cv_header_$ac_safe=no"
2757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2758 echo "$ac_t""yes" 1>&6
2759 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2760 cat >> confdefs.h
<<EOF
2761 #define $ac_tr_hdr 1
2765 echo "$ac_t""no" 1>&6
2769 for ac_hdr
in stropts.h poll.h readline.h
history.h readline
/readline.h
2771 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2773 echo "configure:2774: checking for $ac_hdr" >&5
2774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2777 cat > conftest.
$ac_ext <<EOF
2778 #line 2779 "configure"
2779 #include "confdefs.h"
2782 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2783 { (eval echo configure
:2784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2784 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2785 if test -z "$ac_err"; then
2787 eval "ac_cv_header_$ac_safe=yes"
2790 echo "configure: failed program was:" >&5
2791 cat conftest.
$ac_ext >&5
2793 eval "ac_cv_header_$ac_safe=no"
2797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2798 echo "$ac_t""yes" 1>&6
2799 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2800 cat >> confdefs.h
<<EOF
2801 #define $ac_tr_hdr 1
2805 echo "$ac_t""no" 1>&6
2809 for ac_hdr
in readline
/history.h sys
/capability.h syscall.h sys
/syscall.h
2811 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2812 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2813 echo "configure:2814: checking for $ac_hdr" >&5
2814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2815 echo $ac_n "(cached) $ac_c" 1>&6
2817 cat > conftest.
$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2822 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2823 { (eval echo configure
:2824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2824 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2825 if test -z "$ac_err"; then
2827 eval "ac_cv_header_$ac_safe=yes"
2830 echo "configure: failed program was:" >&5
2831 cat conftest.
$ac_ext >&5
2833 eval "ac_cv_header_$ac_safe=no"
2837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2838 echo "$ac_t""yes" 1>&6
2839 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2840 cat >> confdefs.h
<<EOF
2841 #define $ac_tr_hdr 1
2845 echo "$ac_t""no" 1>&6
2849 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2851 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2852 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2853 echo "configure:2854: checking for $ac_hdr" >&5
2854 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2857 cat > conftest.
$ac_ext <<EOF
2858 #line 2859 "configure"
2859 #include "confdefs.h"
2862 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2863 { (eval echo configure
:2864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2864 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2865 if test -z "$ac_err"; then
2867 eval "ac_cv_header_$ac_safe=yes"
2870 echo "configure: failed program was:" >&5
2871 cat conftest.
$ac_ext >&5
2873 eval "ac_cv_header_$ac_safe=no"
2877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2878 echo "$ac_t""yes" 1>&6
2879 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2880 cat >> confdefs.h
<<EOF
2881 #define $ac_tr_hdr 1
2885 echo "$ac_t""no" 1>&6
2890 # For experimental utmp support
2891 for ac_hdr
in utmp.h utmpx.h
2893 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2894 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2895 echo "configure:2896: checking for $ac_hdr" >&5
2896 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2897 echo $ac_n "(cached) $ac_c" 1>&6
2899 cat > conftest.
$ac_ext <<EOF
2900 #line 2901 "configure"
2901 #include "confdefs.h"
2904 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2905 { (eval echo configure
:2906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2906 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2907 if test -z "$ac_err"; then
2909 eval "ac_cv_header_$ac_safe=yes"
2912 echo "configure: failed program was:" >&5
2913 cat conftest.
$ac_ext >&5
2915 eval "ac_cv_header_$ac_safe=no"
2919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2920 echo "$ac_t""yes" 1>&6
2921 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2922 cat >> confdefs.h
<<EOF
2923 #define $ac_tr_hdr 1
2927 echo "$ac_t""no" 1>&6
2932 echo $ac_n "checking size of int""... $ac_c" 1>&6
2933 echo "configure:2934: checking size of int" >&5
2934 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2935 echo $ac_n "(cached) $ac_c" 1>&6
2937 if test "$cross_compiling" = yes; then
2938 ac_cv_sizeof_int
=cross
2940 cat > conftest.
$ac_ext <<EOF
2941 #line 2942 "configure"
2942 #include "confdefs.h"
2946 FILE *f=fopen("conftestval", "w");
2948 fprintf(f, "%d\n", sizeof(int));
2952 if { (eval echo configure
:2953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2954 ac_cv_sizeof_int
=`cat conftestval`
2956 echo "configure: failed program was:" >&5
2957 cat conftest.
$ac_ext >&5
2965 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2966 cat >> confdefs.h
<<EOF
2967 #define SIZEOF_INT $ac_cv_sizeof_int
2971 echo $ac_n "checking size of long""... $ac_c" 1>&6
2972 echo "configure:2973: checking size of long" >&5
2973 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2974 echo $ac_n "(cached) $ac_c" 1>&6
2976 if test "$cross_compiling" = yes; then
2977 ac_cv_sizeof_long
=cross
2979 cat > conftest.
$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2985 FILE *f=fopen("conftestval", "w");
2987 fprintf(f, "%d\n", sizeof(long));
2991 if { (eval echo configure
:2992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2993 ac_cv_sizeof_long
=`cat conftestval`
2995 echo "configure: failed program was:" >&5
2996 cat conftest.
$ac_ext >&5
3004 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3005 cat >> confdefs.h
<<EOF
3006 #define SIZEOF_LONG $ac_cv_sizeof_long
3010 echo $ac_n "checking size of short""... $ac_c" 1>&6
3011 echo "configure:3012: checking size of short" >&5
3012 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 if test "$cross_compiling" = yes; then
3016 ac_cv_sizeof_short
=cross
3018 cat > conftest.
$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3024 FILE *f=fopen("conftestval", "w");
3026 fprintf(f, "%d\n", sizeof(short));
3030 if { (eval echo configure
:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3032 ac_cv_sizeof_short
=`cat conftestval`
3034 echo "configure: failed program was:" >&5
3035 cat conftest.
$ac_ext >&5
3037 ac_cv_sizeof_short
=0
3043 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3044 cat >> confdefs.h
<<EOF
3045 #define SIZEOF_SHORT $ac_cv_sizeof_short
3050 echo $ac_n "checking for working const""... $ac_c" 1>&6
3051 echo "configure:3052: checking for working const" >&5
3052 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3053 echo $ac_n "(cached) $ac_c" 1>&6
3055 cat > conftest.
$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3061 /* Ultrix mips cc rejects this. */
3062 typedef int charset[2]; const charset x = {0,0};
3063 /* SunOS 4.1.1 cc rejects this. */
3064 char const *const *ccp;
3066 /* NEC SVR4.0.2 mips cc rejects this. */
3067 struct point {int x, y;};
3068 static struct point const zero = {0,0};
3069 /* AIX XL C 1.02.0.0 rejects this.
3070 It does not let you subtract one const X* pointer from another in an arm
3071 of an if-expression whose if-part is not a constant expression */
3072 const char *g = "string";
3073 ccp = &g + (g ? g-g : 0);
3074 /* HPUX 7.0 cc rejects these. */
3077 ccp = (char const *const *) p;
3078 { /* SCO 3.2v4 cc rejects this. */
3080 char const *s = 0 ? (char *) 0 : (char const *) 0;
3084 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3086 const int *foo = &x[0];
3089 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3090 typedef const int *iptr;
3094 { /* AIX XL C 1.02.0.0 rejects this saying
3095 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3096 struct s { int j; const int *ap[3]; };
3097 struct s *b; b->j = 5;
3099 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3105 if { (eval echo configure
:3106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3109 echo "configure: failed program was:" >&5
3110 cat conftest.
$ac_ext >&5
3117 echo "$ac_t""$ac_cv_c_const" 1>&6
3118 if test $ac_cv_c_const = no
; then
3119 cat >> confdefs.h
<<\EOF
3125 echo $ac_n "checking for inline""... $ac_c" 1>&6
3126 echo "configure:3127: checking for inline" >&5
3127 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3131 for ac_kw
in inline __inline__ __inline
; do
3132 cat > conftest.
$ac_ext <<EOF
3133 #line 3134 "configure"
3134 #include "confdefs.h"
3137 } int $ac_kw foo() {
3140 if { (eval echo configure
:3141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3142 ac_cv_c_inline
=$ac_kw; break
3144 echo "configure: failed program was:" >&5
3145 cat conftest.
$ac_ext >&5
3152 echo "$ac_t""$ac_cv_c_inline" 1>&6
3153 case "$ac_cv_c_inline" in
3155 no
) cat >> confdefs.h
<<\EOF
3159 *) cat >> confdefs.h
<<EOF
3160 #define inline $ac_cv_c_inline
3165 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3166 echo "configure:3167: checking whether byte ordering is bigendian" >&5
3167 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3168 echo $ac_n "(cached) $ac_c" 1>&6
3170 ac_cv_c_bigendian
=unknown
3171 # See if sys/param.h defines the BYTE_ORDER macro.
3172 cat > conftest.
$ac_ext <<EOF
3173 #line 3174 "configure"
3174 #include "confdefs.h"
3175 #include <sys/types.h>
3176 #include <sys/param.h>
3179 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3184 if { (eval echo configure
:3185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3186 # It does; now see whether it defined to BIG_ENDIAN or not.
3187 cat > conftest.
$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3190 #include <sys/types.h>
3191 #include <sys/param.h>
3194 #if BYTE_ORDER != BIG_ENDIAN
3199 if { (eval echo configure
:3200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3201 ac_cv_c_bigendian
=yes
3203 echo "configure: failed program was:" >&5
3204 cat conftest.
$ac_ext >&5
3206 ac_cv_c_bigendian
=no
3210 echo "configure: failed program was:" >&5
3211 cat conftest.
$ac_ext >&5
3214 if test $ac_cv_c_bigendian = unknown
; then
3215 if test "$cross_compiling" = yes; then
3216 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3218 cat > conftest.
$ac_ext <<EOF
3219 #line 3220 "configure"
3220 #include "confdefs.h"
3222 /* Are we little or big endian? From Harbison&Steele. */
3226 char c[sizeof (long)];
3229 exit (u.c[sizeof (long) - 1] == 1);
3232 if { (eval echo configure
:3233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3234 ac_cv_c_bigendian
=no
3236 echo "configure: failed program was:" >&5
3237 cat conftest.
$ac_ext >&5
3239 ac_cv_c_bigendian
=yes
3247 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3248 if test $ac_cv_c_bigendian = yes; then
3249 cat >> confdefs.h
<<\EOF
3250 #define WORDS_BIGENDIAN 1
3255 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3256 echo "configure:3257: checking whether char is unsigned" >&5
3257 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3258 echo $ac_n "(cached) $ac_c" 1>&6
3260 if test "$GCC" = yes; then
3261 # GCC predefines this symbol on systems where it applies.
3262 cat > conftest.
$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265 #ifdef __CHAR_UNSIGNED__
3270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3271 egrep "yes" >/dev
/null
2>&1; then
3273 ac_cv_c_char_unsigned
=yes
3276 ac_cv_c_char_unsigned
=no
3281 if test "$cross_compiling" = yes; then
3282 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3284 cat > conftest.
$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3287 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3288 #if !defined(__STDC__) || __STDC__ != 1
3292 volatile char c = 255; exit(c < 0);
3295 if { (eval echo configure
:3296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3297 ac_cv_c_char_unsigned
=yes
3299 echo "configure: failed program was:" >&5
3300 cat conftest.
$ac_ext >&5
3302 ac_cv_c_char_unsigned
=no
3310 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3311 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3312 cat >> confdefs.h
<<\EOF
3313 #define __CHAR_UNSIGNED__ 1
3319 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3320 echo "configure:3321: checking return type of signal handlers" >&5
3321 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3322 echo $ac_n "(cached) $ac_c" 1>&6
3324 cat > conftest.
$ac_ext <<EOF
3325 #line 3326 "configure"
3326 #include "confdefs.h"
3327 #include <sys/types.h>
3333 extern "C" void (*signal (int, void (*)(int)))(int);
3335 void (*signal ()) ();
3342 if { (eval echo configure
:3343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3344 ac_cv_type_signal
=void
3346 echo "configure: failed program was:" >&5
3347 cat conftest.
$ac_ext >&5
3349 ac_cv_type_signal
=int
3354 echo "$ac_t""$ac_cv_type_signal" 1>&6
3355 cat >> confdefs.h
<<EOF
3356 #define RETSIGTYPE $ac_cv_type_signal
3360 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3361 echo "configure:3362: checking for uid_t in sys/types.h" >&5
3362 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3365 cat > conftest.
$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 #include <sys/types.h>
3370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3371 egrep "uid_t" >/dev
/null
2>&1; then
3373 ac_cv_type_uid_t
=yes
3382 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3383 if test $ac_cv_type_uid_t = no
; then
3384 cat >> confdefs.h
<<\EOF
3388 cat >> confdefs.h
<<\EOF
3394 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3395 echo "configure:3396: checking for mode_t" >&5
3396 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3397 echo $ac_n "(cached) $ac_c" 1>&6
3399 cat > conftest.
$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3402 #include <sys/types.h>
3408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3409 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3411 ac_cv_type_mode_t
=yes
3414 ac_cv_type_mode_t
=no
3419 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3420 if test $ac_cv_type_mode_t = no
; then
3421 cat >> confdefs.h
<<\EOF
3427 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3428 echo "configure:3429: checking for off_t" >&5
3429 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3430 echo $ac_n "(cached) $ac_c" 1>&6
3432 cat > conftest.
$ac_ext <<EOF
3433 #line 3434 "configure"
3434 #include "confdefs.h"
3435 #include <sys/types.h>
3441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3442 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3444 ac_cv_type_off_t
=yes
3452 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3453 if test $ac_cv_type_off_t = no
; then
3454 cat >> confdefs.h
<<\EOF
3460 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3461 echo "configure:3462: checking for size_t" >&5
3462 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3463 echo $ac_n "(cached) $ac_c" 1>&6
3465 cat > conftest.
$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3468 #include <sys/types.h>
3474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3475 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3477 ac_cv_type_size_t
=yes
3480 ac_cv_type_size_t
=no
3485 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3486 if test $ac_cv_type_size_t = no
; then
3487 cat >> confdefs.h
<<\EOF
3488 #define size_t unsigned
3493 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3494 echo "configure:3495: checking for pid_t" >&5
3495 if eval "test \"`echo '$''{'ac_cv_type_pid_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])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3510 ac_cv_type_pid_t
=yes
3518 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3519 if test $ac_cv_type_pid_t = no
; then
3520 cat >> confdefs.h
<<\EOF
3526 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3527 echo "configure:3528: checking for st_rdev in struct stat" >&5
3528 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+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>
3535 #include <sys/stat.h>
3537 struct stat s; s.st_rdev;
3540 if { (eval echo configure
:3541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3542 ac_cv_struct_st_rdev
=yes
3544 echo "configure: failed program was:" >&5
3545 cat conftest.
$ac_ext >&5
3547 ac_cv_struct_st_rdev
=no
3552 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3553 if test $ac_cv_struct_st_rdev = yes; then
3554 cat >> confdefs.h
<<\EOF
3555 #define HAVE_ST_RDEV 1
3560 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3561 echo "configure:3562: checking for d_off in dirent" >&5
3562 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3565 cat > conftest.
$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3570 #include <sys/types.h>
3573 struct dirent d; d.d_off;
3576 if { (eval echo configure
:3577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3578 ac_cv_dirent_d_off
=yes
3580 echo "configure: failed program was:" >&5
3581 cat conftest.
$ac_ext >&5
3583 ac_cv_dirent_d_off
=no
3588 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3589 if test $ac_cv_dirent_d_off = yes; then
3590 cat >> confdefs.h
<<\EOF
3591 #define HAVE_DIRENT_D_OFF 1
3596 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3597 echo "configure:3598: checking for ino_t" >&5
3598 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3601 cat > conftest.
$ac_ext <<EOF
3602 #line 3603 "configure"
3603 #include "confdefs.h"
3604 #include <sys/types.h>
3610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3611 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3613 ac_cv_type_ino_t
=yes
3621 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3622 if test $ac_cv_type_ino_t = no
; then
3623 cat >> confdefs.h
<<\EOF
3624 #define ino_t unsigned
3629 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3630 echo "configure:3631: checking for loff_t" >&5
3631 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 cat > conftest.
$ac_ext <<EOF
3635 #line 3636 "configure"
3636 #include "confdefs.h"
3637 #include <sys/types.h>
3643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3644 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3646 ac_cv_type_loff_t
=yes
3649 ac_cv_type_loff_t
=no
3654 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3655 if test $ac_cv_type_loff_t = no
; then
3656 cat >> confdefs.h
<<\EOF
3657 #define loff_t off_t
3662 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3663 echo "configure:3664: checking for offset_t" >&5
3664 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3665 echo $ac_n "(cached) $ac_c" 1>&6
3667 cat > conftest.
$ac_ext <<EOF
3668 #line 3669 "configure"
3669 #include "confdefs.h"
3670 #include <sys/types.h>
3676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3677 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3679 ac_cv_type_offset_t
=yes
3682 ac_cv_type_offset_t
=no
3687 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3688 if test $ac_cv_type_offset_t = no
; then
3689 cat >> confdefs.h
<<\EOF
3690 #define offset_t loff_t
3695 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3696 echo "configure:3697: checking for ssize_t" >&5
3697 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3700 cat > conftest.
$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3703 #include <sys/types.h>
3709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3710 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3712 ac_cv_type_ssize_t
=yes
3715 ac_cv_type_ssize_t
=no
3720 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3721 if test $ac_cv_type_ssize_t = no
; then
3722 cat >> confdefs.h
<<\EOF
3728 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3729 echo "configure:3730: checking for wchar_t" >&5
3730 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6
3733 cat > conftest.
$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3736 #include <sys/types.h>
3742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3743 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3745 ac_cv_type_wchar_t
=yes
3748 ac_cv_type_wchar_t
=no
3753 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3754 if test $ac_cv_type_wchar_t = no
; then
3755 cat >> confdefs.h
<<\EOF
3756 #define wchar_t unsigned short
3762 # we need libcups for CUPS support...
3763 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3764 echo "configure:3765: checking for httpConnect in -lcups" >&5
3765 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3769 ac_save_LIBS
="$LIBS"
3771 cat > conftest.
$ac_ext <<EOF
3772 #line 3773 "configure"
3773 #include "confdefs.h"
3774 /* Override any gcc2 internal prototype to avoid an error. */
3775 /* We use char because int might match the return type of a gcc2
3776 builtin and then its argument prototype would still apply. */
3783 if { (eval echo configure
:3784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3785 eval "ac_cv_lib_$ac_lib_var=yes"
3787 echo "configure: failed program was:" >&5
3788 cat conftest.
$ac_ext >&5
3790 eval "ac_cv_lib_$ac_lib_var=no"
3793 LIBS
="$ac_save_LIBS"
3796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3797 echo "$ac_t""yes" 1>&6
3798 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3799 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3800 cat >> confdefs.h
<<EOF
3801 #define $ac_tr_lib 1
3807 echo "$ac_t""no" 1>&6
3811 # we need libdl for PAM and the new VFS code
3812 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3813 echo "configure:3814: checking for dlopen in -ldl" >&5
3814 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3815 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3818 ac_save_LIBS
="$LIBS"
3820 cat > conftest.
$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3823 /* Override any gcc2 internal prototype to avoid an error. */
3824 /* We use char because int might match the return type of a gcc2
3825 builtin and then its argument prototype would still apply. */
3832 if { (eval echo configure
:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3834 eval "ac_cv_lib_$ac_lib_var=yes"
3836 echo "configure: failed program was:" >&5
3837 cat conftest.
$ac_ext >&5
3839 eval "ac_cv_lib_$ac_lib_var=no"
3842 LIBS
="$ac_save_LIBS"
3845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3846 echo "$ac_t""yes" 1>&6
3848 cat >> confdefs.h
<<\EOF
3849 #define HAVE_LIBDL 1
3853 echo "$ac_t""no" 1>&6
3857 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3858 echo "configure:3859: checking for sig_atomic_t type" >&5
3859 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3863 cat > conftest.
$ac_ext <<EOF
3864 #line 3865 "configure"
3865 #include "confdefs.h"
3867 #include <sys/types.h>
3877 if { (eval echo configure
:3878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3879 samba_cv_sig_atomic_t
=yes
3881 echo "configure: failed program was:" >&5
3882 cat conftest.
$ac_ext >&5
3884 samba_cv_sig_atomic_t
=no
3889 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3890 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3891 cat >> confdefs.h
<<\EOF
3892 #define HAVE_SIG_ATOMIC_T_TYPE 1
3897 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3898 echo "configure:3899: checking for errno in errno.h" >&5
3899 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3900 echo $ac_n "(cached) $ac_c" 1>&6
3903 cat > conftest.
$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3911 if { (eval echo configure
:3912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3915 echo "configure: failed program was:" >&5
3916 cat conftest.
$ac_ext >&5
3918 samba_cv_have_errno
=no
3923 echo "$ac_t""$samba_cv_errno" 1>&6
3924 if test x
"$samba_cv_errno" = x
"yes"; then
3925 cat >> confdefs.h
<<\EOF
3926 #define HAVE_ERRNO_DECL 1
3931 # stupid glibc has the functions but no declaration. grrrr.
3932 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3933 echo "configure:3934: checking for setresuid declaration" >&5
3934 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3935 echo $ac_n "(cached) $ac_c" 1>&6
3938 cat > conftest.
$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3943 int i = (int)setresuid
3946 if { (eval echo configure
:3947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3948 samba_cv_have_setresuid_decl
=yes
3950 echo "configure: failed program was:" >&5
3951 cat conftest.
$ac_ext >&5
3953 samba_cv_have_setresuid_decl
=no
3958 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3959 if test x
"$samba_cv_have_setresuid_decl" = x
"yes"; then
3960 cat >> confdefs.h
<<\EOF
3961 #define HAVE_SETRESUID_DECL 1
3966 # stupid glibc has the functions but no declaration. grrrr.
3967 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3968 echo "configure:3969: checking for setresgid declaration" >&5
3969 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
3970 echo $ac_n "(cached) $ac_c" 1>&6
3973 cat > conftest.
$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3978 int i = (int)setresgid
3981 if { (eval echo configure
:3982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3983 samba_cv_have_setresgid_decl
=yes
3985 echo "configure: failed program was:" >&5
3986 cat conftest.
$ac_ext >&5
3988 samba_cv_have_setresgid_decl
=no
3993 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
3994 if test x
"$samba_cv_have_setresgid_decl" = x
"yes"; then
3995 cat >> confdefs.h
<<\EOF
3996 #define HAVE_SETRESGID_DECL 1
4001 # and glibc has setresuid under linux but the function does
4002 # nothing until kernel 2.1.44! very dumb.
4003 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4004 echo "configure:4005: checking for real setresuid" >&5
4005 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4006 echo $ac_n "(cached) $ac_c" 1>&6
4009 if test "$cross_compiling" = yes; then
4010 samba_cv_have_setresuid
=cross
4012 cat > conftest.
$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4016 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4018 if { (eval echo configure
:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4020 samba_cv_have_setresuid
=yes
4022 echo "configure: failed program was:" >&5
4023 cat conftest.
$ac_ext >&5
4025 samba_cv_have_setresuid
=no
4032 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4033 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4034 cat >> confdefs.h
<<\EOF
4035 #define HAVE_SETRESUID 1
4040 # Do the same check for setresguid...
4042 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4043 echo "configure:4044: checking for real setresgid" >&5
4044 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4048 if test "$cross_compiling" = yes; then
4049 samba_cv_have_setresgid
=cross
4051 cat > conftest.
$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4056 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4058 if { (eval echo configure
:4059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4060 samba_cv_have_setresgid
=yes
4062 echo "configure: failed program was:" >&5
4063 cat conftest.
$ac_ext >&5
4065 samba_cv_have_setresgid
=no
4072 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4073 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4074 cat >> confdefs.h
<<\EOF
4075 #define HAVE_SETRESGID 1
4080 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4081 echo "configure:4082: checking for 8-bit clean memcmp" >&5
4082 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4083 echo $ac_n "(cached) $ac_c" 1>&6
4085 if test "$cross_compiling" = yes; then
4086 ac_cv_func_memcmp_clean
=no
4088 cat > conftest.
$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4094 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4095 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4099 if { (eval echo configure
:4100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4101 ac_cv_func_memcmp_clean
=yes
4103 echo "configure: failed program was:" >&5
4104 cat conftest.
$ac_ext >&5
4106 ac_cv_func_memcmp_clean
=no
4113 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4114 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4117 ###############################################
4118 # test for where we get crypt() from
4119 for ac_func
in crypt
4121 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4122 echo "configure:4123: checking for $ac_func" >&5
4123 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4124 echo $ac_n "(cached) $ac_c" 1>&6
4126 cat > conftest.
$ac_ext <<EOF
4127 #line 4128 "configure"
4128 #include "confdefs.h"
4129 /* System header to define __stub macros and hopefully few prototypes,
4130 which can conflict with char $ac_func(); below. */
4132 /* Override any gcc2 internal prototype to avoid an error. */
4133 /* We use char because int might match the return type of a gcc2
4134 builtin and then its argument prototype would still apply. */
4139 /* The GNU C library defines this for functions which it implements
4140 to always fail with ENOSYS. Some functions are actually named
4141 something starting with __ and the normal name is an alias. */
4142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4150 if { (eval echo configure
:4151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4152 eval "ac_cv_func_$ac_func=yes"
4154 echo "configure: failed program was:" >&5
4155 cat conftest.
$ac_ext >&5
4157 eval "ac_cv_func_$ac_func=no"
4162 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4163 echo "$ac_t""yes" 1>&6
4164 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4165 cat >> confdefs.h
<<EOF
4166 #define $ac_tr_func 1
4170 echo "$ac_t""no" 1>&6
4174 if test x
"$ac_cv_func_crypt" = x
"no"; then
4175 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4176 echo "configure:4177: checking for crypt in -lcrypt" >&5
4177 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
4181 ac_save_LIBS
="$LIBS"
4182 LIBS
="-lcrypt $LIBS"
4183 cat > conftest.
$ac_ext <<EOF
4184 #line 4185 "configure"
4185 #include "confdefs.h"
4186 /* Override any gcc2 internal prototype to avoid an error. */
4187 /* We use char because int might match the return type of a gcc2
4188 builtin and then its argument prototype would still apply. */
4195 if { (eval echo configure
:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4197 eval "ac_cv_lib_$ac_lib_var=yes"
4199 echo "configure: failed program was:" >&5
4200 cat conftest.
$ac_ext >&5
4202 eval "ac_cv_lib_$ac_lib_var=no"
4205 LIBS
="$ac_save_LIBS"
4208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4209 echo "$ac_t""yes" 1>&6
4210 LIBS
="$LIBS -lcrypt";
4211 cat >> confdefs.h
<<\EOF
4212 #define HAVE_CRYPT 1
4216 echo "$ac_t""no" 1>&6
4222 ###############################################
4223 # test for where we get readline() from
4224 if test "$ac_cv_header_readline_h" = "yes" ||
4225 test "$ac_cv_header_readline_readline_h" = "yes"; then
4226 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
4227 echo "configure:4228: checking for readline in -lreadline" >&5
4228 ac_lib_var
=`echo readline'_'readline | sed 'y%./+-%__p_%'`
4229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4232 ac_save_LIBS
="$LIBS"
4233 LIBS
="-lreadline $LIBS"
4234 cat > conftest.
$ac_ext <<EOF
4235 #line 4236 "configure"
4236 #include "confdefs.h"
4237 /* Override any gcc2 internal prototype to avoid an error. */
4238 /* We use char because int might match the return type of a gcc2
4239 builtin and then its argument prototype would still apply. */
4246 if { (eval echo configure
:4247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4248 eval "ac_cv_lib_$ac_lib_var=yes"
4250 echo "configure: failed program was:" >&5
4251 cat conftest.
$ac_ext >&5
4253 eval "ac_cv_lib_$ac_lib_var=no"
4256 LIBS
="$ac_save_LIBS"
4259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4260 echo "$ac_t""yes" 1>&6
4261 ac_tr_lib
=HAVE_LIB
`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4262 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4263 cat >> confdefs.h
<<EOF
4264 #define $ac_tr_lib 1
4267 LIBS
="-lreadline $LIBS"
4270 echo "$ac_t""no" 1>&6
4275 echo $ac_n "checking for readline""... $ac_c" 1>&6
4276 echo "configure:4277: checking for readline" >&5
4277 if eval "test \"`echo '$''{'samba_cv_HAVE_READLINE'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4281 if test "$cross_compiling" = yes; then
4282 samba_cv_HAVE_READLINE
=cross
4284 cat > conftest.
$ac_ext <<EOF
4285 #line 4286 "configure"
4286 #include "confdefs.h"
4287 #include "${srcdir-.}/tests/readline.c"
4289 if { (eval echo configure
:4290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4291 samba_cv_HAVE_READLINE
=yes
4293 echo "configure: failed program was:" >&5
4294 cat conftest.
$ac_ext >&5
4296 samba_cv_HAVE_READLINE
=no
4303 echo "$ac_t""$samba_cv_HAVE_READLINE" 1>&6
4304 if test x
"$samba_cv_HAVE_READLINE" = x
"yes"; then
4305 cat >> confdefs.h
<<\EOF
4306 #define HAVE_READLINE 1
4312 # The following test taken from the cvs sources
4313 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4314 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4315 # libsocket.so which has a bad implementation of gethostbyname (it
4316 # only looks in /etc/hosts), so we only look for -lsocket if we need
4318 for ac_func
in connect
4320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4321 echo "configure:4322: checking for $ac_func" >&5
4322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4323 echo $ac_n "(cached) $ac_c" 1>&6
4325 cat > conftest.
$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4328 /* System header to define __stub macros and hopefully few prototypes,
4329 which can conflict with char $ac_func(); below. */
4331 /* Override any gcc2 internal prototype to avoid an error. */
4332 /* We use char because int might match the return type of a gcc2
4333 builtin and then its argument prototype would still apply. */
4338 /* The GNU C library defines this for functions which it implements
4339 to always fail with ENOSYS. Some functions are actually named
4340 something starting with __ and the normal name is an alias. */
4341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4349 if { (eval echo configure
:4350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4351 eval "ac_cv_func_$ac_func=yes"
4353 echo "configure: failed program was:" >&5
4354 cat conftest.
$ac_ext >&5
4356 eval "ac_cv_func_$ac_func=no"
4361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4362 echo "$ac_t""yes" 1>&6
4363 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4364 cat >> confdefs.h
<<EOF
4365 #define $ac_tr_func 1
4369 echo "$ac_t""no" 1>&6
4373 if test x
"$ac_cv_func_connect" = x
"no"; then
4376 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4377 echo "configure:4378: checking for printf in -lnsl_s" >&5
4378 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4380 echo $ac_n "(cached) $ac_c" 1>&6
4382 ac_save_LIBS
="$LIBS"
4383 LIBS
="-lnsl_s $LIBS"
4384 cat > conftest.
$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4387 /* Override any gcc2 internal prototype to avoid an error. */
4388 /* We use char because int might match the return type of a gcc2
4389 builtin and then its argument prototype would still apply. */
4396 if { (eval echo configure
:4397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4398 eval "ac_cv_lib_$ac_lib_var=yes"
4400 echo "configure: failed program was:" >&5
4401 cat conftest.
$ac_ext >&5
4403 eval "ac_cv_lib_$ac_lib_var=no"
4406 LIBS
="$ac_save_LIBS"
4409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4410 echo "$ac_t""yes" 1>&6
4411 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4412 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4413 cat >> confdefs.h
<<EOF
4414 #define $ac_tr_lib 1
4417 LIBS
="-lnsl_s $LIBS"
4420 echo "$ac_t""no" 1>&6
4426 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4427 echo "configure:4428: checking for printf in -lnsl" >&5
4428 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4430 echo $ac_n "(cached) $ac_c" 1>&6
4432 ac_save_LIBS
="$LIBS"
4434 cat > conftest.
$ac_ext <<EOF
4435 #line 4436 "configure"
4436 #include "confdefs.h"
4437 /* Override any gcc2 internal prototype to avoid an error. */
4438 /* We use char because int might match the return type of a gcc2
4439 builtin and then its argument prototype would still apply. */
4446 if { (eval echo configure
:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4448 eval "ac_cv_lib_$ac_lib_var=yes"
4450 echo "configure: failed program was:" >&5
4451 cat conftest.
$ac_ext >&5
4453 eval "ac_cv_lib_$ac_lib_var=no"
4456 LIBS
="$ac_save_LIBS"
4459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4460 echo "$ac_t""yes" 1>&6
4461 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4462 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4463 cat >> confdefs.h
<<EOF
4464 #define $ac_tr_lib 1
4470 echo "$ac_t""no" 1>&6
4476 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4477 echo "configure:4478: checking for connect in -lsocket" >&5
4478 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4480 echo $ac_n "(cached) $ac_c" 1>&6
4482 ac_save_LIBS
="$LIBS"
4483 LIBS
="-lsocket $LIBS"
4484 cat > conftest.
$ac_ext <<EOF
4485 #line 4486 "configure"
4486 #include "confdefs.h"
4487 /* Override any gcc2 internal prototype to avoid an error. */
4488 /* We use char because int might match the return type of a gcc2
4489 builtin and then its argument prototype would still apply. */
4496 if { (eval echo configure
:4497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4498 eval "ac_cv_lib_$ac_lib_var=yes"
4500 echo "configure: failed program was:" >&5
4501 cat conftest.
$ac_ext >&5
4503 eval "ac_cv_lib_$ac_lib_var=no"
4506 LIBS
="$ac_save_LIBS"
4509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4510 echo "$ac_t""yes" 1>&6
4511 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4512 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4513 cat >> confdefs.h
<<EOF
4514 #define $ac_tr_lib 1
4517 LIBS
="-lsocket $LIBS"
4520 echo "$ac_t""no" 1>&6
4526 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4527 echo "configure:4528: checking for connect in -linet" >&5
4528 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4532 ac_save_LIBS
="$LIBS"
4534 cat > conftest.
$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4537 /* Override any gcc2 internal prototype to avoid an error. */
4538 /* We use char because int might match the return type of a gcc2
4539 builtin and then its argument prototype would still apply. */
4546 if { (eval echo configure
:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4548 eval "ac_cv_lib_$ac_lib_var=yes"
4550 echo "configure: failed program was:" >&5
4551 cat conftest.
$ac_ext >&5
4553 eval "ac_cv_lib_$ac_lib_var=no"
4556 LIBS
="$ac_save_LIBS"
4559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4560 echo "$ac_t""yes" 1>&6
4561 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4562 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4563 cat >> confdefs.h
<<EOF
4564 #define $ac_tr_lib 1
4570 echo "$ac_t""no" 1>&6
4574 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4575 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4576 # ac_cv_func_connect=yes
4577 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4578 cat >> confdefs.h
<<\EOF
4579 #define HAVE_CONNECT 1
4585 # Check if we have execl, if not we need to compile smbrun.
4586 for ac_func
in execl
4588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4589 echo "configure:4590: checking for $ac_func" >&5
4590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4591 echo $ac_n "(cached) $ac_c" 1>&6
4593 cat > conftest.
$ac_ext <<EOF
4594 #line 4595 "configure"
4595 #include "confdefs.h"
4596 /* System header to define __stub macros and hopefully few prototypes,
4597 which can conflict with char $ac_func(); below. */
4599 /* Override any gcc2 internal prototype to avoid an error. */
4600 /* We use char because int might match the return type of a gcc2
4601 builtin and then its argument prototype would still apply. */
4606 /* The GNU C library defines this for functions which it implements
4607 to always fail with ENOSYS. Some functions are actually named
4608 something starting with __ and the normal name is an alias. */
4609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4617 if { (eval echo configure
:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4619 eval "ac_cv_func_$ac_func=yes"
4621 echo "configure: failed program was:" >&5
4622 cat conftest.
$ac_ext >&5
4624 eval "ac_cv_func_$ac_func=no"
4629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4630 echo "$ac_t""yes" 1>&6
4631 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4632 cat >> confdefs.h
<<EOF
4633 #define $ac_tr_func 1
4637 echo "$ac_t""no" 1>&6
4641 if test x
"$ac_cv_func_execl" = x
"no"; then
4642 RUNPROG
="bin/smbrun"
4647 for ac_func
in waitpid getcwd strdup strtoul strerror chown
chmod chroot
4649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4650 echo "configure:4651: checking for $ac_func" >&5
4651 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4652 echo $ac_n "(cached) $ac_c" 1>&6
4654 cat > conftest.
$ac_ext <<EOF
4655 #line 4656 "configure"
4656 #include "confdefs.h"
4657 /* System header to define __stub macros and hopefully few prototypes,
4658 which can conflict with char $ac_func(); below. */
4660 /* Override any gcc2 internal prototype to avoid an error. */
4661 /* We use char because int might match the return type of a gcc2
4662 builtin and then its argument prototype would still apply. */
4667 /* The GNU C library defines this for functions which it implements
4668 to always fail with ENOSYS. Some functions are actually named
4669 something starting with __ and the normal name is an alias. */
4670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4678 if { (eval echo configure
:4679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4680 eval "ac_cv_func_$ac_func=yes"
4682 echo "configure: failed program was:" >&5
4683 cat conftest.
$ac_ext >&5
4685 eval "ac_cv_func_$ac_func=no"
4690 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4691 echo "$ac_t""yes" 1>&6
4692 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4693 cat >> confdefs.h
<<EOF
4694 #define $ac_tr_func 1
4698 echo "$ac_t""no" 1>&6
4702 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
4704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4705 echo "configure:4706: checking for $ac_func" >&5
4706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4707 echo $ac_n "(cached) $ac_c" 1>&6
4709 cat > conftest.
$ac_ext <<EOF
4710 #line 4711 "configure"
4711 #include "confdefs.h"
4712 /* System header to define __stub macros and hopefully few prototypes,
4713 which can conflict with char $ac_func(); below. */
4715 /* Override any gcc2 internal prototype to avoid an error. */
4716 /* We use char because int might match the return type of a gcc2
4717 builtin and then its argument prototype would still apply. */
4722 /* The GNU C library defines this for functions which it implements
4723 to always fail with ENOSYS. Some functions are actually named
4724 something starting with __ and the normal name is an alias. */
4725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4733 if { (eval echo configure
:4734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4735 eval "ac_cv_func_$ac_func=yes"
4737 echo "configure: failed program was:" >&5
4738 cat conftest.
$ac_ext >&5
4740 eval "ac_cv_func_$ac_func=no"
4745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4746 echo "$ac_t""yes" 1>&6
4747 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4748 cat >> confdefs.h
<<EOF
4749 #define $ac_tr_func 1
4753 echo "$ac_t""no" 1>&6
4757 for ac_func
in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4760 echo "configure:4761: checking for $ac_func" >&5
4761 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4762 echo $ac_n "(cached) $ac_c" 1>&6
4764 cat > conftest.
$ac_ext <<EOF
4765 #line 4766 "configure"
4766 #include "confdefs.h"
4767 /* System header to define __stub macros and hopefully few prototypes,
4768 which can conflict with char $ac_func(); below. */
4770 /* Override any gcc2 internal prototype to avoid an error. */
4771 /* We use char because int might match the return type of a gcc2
4772 builtin and then its argument prototype would still apply. */
4777 /* The GNU C library defines this for functions which it implements
4778 to always fail with ENOSYS. Some functions are actually named
4779 something starting with __ and the normal name is an alias. */
4780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4788 if { (eval echo configure
:4789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4790 eval "ac_cv_func_$ac_func=yes"
4792 echo "configure: failed program was:" >&5
4793 cat conftest.
$ac_ext >&5
4795 eval "ac_cv_func_$ac_func=no"
4800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4801 echo "$ac_t""yes" 1>&6
4802 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4803 cat >> confdefs.h
<<EOF
4804 #define $ac_tr_func 1
4808 echo "$ac_t""no" 1>&6
4812 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4815 echo "configure:4816: checking for $ac_func" >&5
4816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4817 echo $ac_n "(cached) $ac_c" 1>&6
4819 cat > conftest.
$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4822 /* System header to define __stub macros and hopefully few prototypes,
4823 which can conflict with char $ac_func(); below. */
4825 /* Override any gcc2 internal prototype to avoid an error. */
4826 /* We use char because int might match the return type of a gcc2
4827 builtin and then its argument prototype would still apply. */
4832 /* The GNU C library defines this for functions which it implements
4833 to always fail with ENOSYS. Some functions are actually named
4834 something starting with __ and the normal name is an alias. */
4835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4843 if { (eval echo configure
:4844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4845 eval "ac_cv_func_$ac_func=yes"
4847 echo "configure: failed program was:" >&5
4848 cat conftest.
$ac_ext >&5
4850 eval "ac_cv_func_$ac_func=no"
4855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4856 echo "$ac_t""yes" 1>&6
4857 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4858 cat >> confdefs.h
<<EOF
4859 #define $ac_tr_func 1
4863 echo "$ac_t""no" 1>&6
4867 for ac_func
in initgroups
select rdchk getgrnam getgrent pathconf
4869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4870 echo "configure:4871: checking for $ac_func" >&5
4871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4872 echo $ac_n "(cached) $ac_c" 1>&6
4874 cat > conftest.
$ac_ext <<EOF
4875 #line 4876 "configure"
4876 #include "confdefs.h"
4877 /* System header to define __stub macros and hopefully few prototypes,
4878 which can conflict with char $ac_func(); below. */
4880 /* Override any gcc2 internal prototype to avoid an error. */
4881 /* We use char because int might match the return type of a gcc2
4882 builtin and then its argument prototype would still apply. */
4887 /* The GNU C library defines this for functions which it implements
4888 to always fail with ENOSYS. Some functions are actually named
4889 something starting with __ and the normal name is an alias. */
4890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4898 if { (eval echo configure
:4899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4900 eval "ac_cv_func_$ac_func=yes"
4902 echo "configure: failed program was:" >&5
4903 cat conftest.
$ac_ext >&5
4905 eval "ac_cv_func_$ac_func=no"
4910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4911 echo "$ac_t""yes" 1>&6
4912 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4913 cat >> confdefs.h
<<EOF
4914 #define $ac_tr_func 1
4918 echo "$ac_t""no" 1>&6
4922 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
4924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4925 echo "configure:4926: checking for $ac_func" >&5
4926 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4927 echo $ac_n "(cached) $ac_c" 1>&6
4929 cat > conftest.
$ac_ext <<EOF
4930 #line 4931 "configure"
4931 #include "confdefs.h"
4932 /* System header to define __stub macros and hopefully few prototypes,
4933 which can conflict with char $ac_func(); below. */
4935 /* Override any gcc2 internal prototype to avoid an error. */
4936 /* We use char because int might match the return type of a gcc2
4937 builtin and then its argument prototype would still apply. */
4942 /* The GNU C library defines this for functions which it implements
4943 to always fail with ENOSYS. Some functions are actually named
4944 something starting with __ and the normal name is an alias. */
4945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4953 if { (eval echo configure
:4954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4955 eval "ac_cv_func_$ac_func=yes"
4957 echo "configure: failed program was:" >&5
4958 cat conftest.
$ac_ext >&5
4960 eval "ac_cv_func_$ac_func=no"
4965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4966 echo "$ac_t""yes" 1>&6
4967 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4968 cat >> confdefs.h
<<EOF
4969 #define $ac_tr_func 1
4973 echo "$ac_t""no" 1>&6
4977 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
4979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4980 echo "configure:4981: checking for $ac_func" >&5
4981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4982 echo $ac_n "(cached) $ac_c" 1>&6
4984 cat > conftest.
$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4987 /* System header to define __stub macros and hopefully few prototypes,
4988 which can conflict with char $ac_func(); below. */
4990 /* Override any gcc2 internal prototype to avoid an error. */
4991 /* We use char because int might match the return type of a gcc2
4992 builtin and then its argument prototype would still apply. */
4997 /* The GNU C library defines this for functions which it implements
4998 to always fail with ENOSYS. Some functions are actually named
4999 something starting with __ and the normal name is an alias. */
5000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5008 if { (eval echo configure
:5009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5010 eval "ac_cv_func_$ac_func=yes"
5012 echo "configure: failed program was:" >&5
5013 cat conftest.
$ac_ext >&5
5015 eval "ac_cv_func_$ac_func=no"
5020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5021 echo "$ac_t""yes" 1>&6
5022 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5023 cat >> confdefs.h
<<EOF
5024 #define $ac_tr_func 1
5028 echo "$ac_t""no" 1>&6
5032 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid yp_get_default_domain getpwanam
5034 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5035 echo "configure:5036: checking for $ac_func" >&5
5036 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5037 echo $ac_n "(cached) $ac_c" 1>&6
5039 cat > conftest.
$ac_ext <<EOF
5040 #line 5041 "configure"
5041 #include "confdefs.h"
5042 /* System header to define __stub macros and hopefully few prototypes,
5043 which can conflict with char $ac_func(); below. */
5045 /* Override any gcc2 internal prototype to avoid an error. */
5046 /* We use char because int might match the return type of a gcc2
5047 builtin and then its argument prototype would still apply. */
5052 /* The GNU C library defines this for functions which it implements
5053 to always fail with ENOSYS. Some functions are actually named
5054 something starting with __ and the normal name is an alias. */
5055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5063 if { (eval echo configure
:5064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5065 eval "ac_cv_func_$ac_func=yes"
5067 echo "configure: failed program was:" >&5
5068 cat conftest.
$ac_ext >&5
5070 eval "ac_cv_func_$ac_func=no"
5075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5076 echo "$ac_t""yes" 1>&6
5077 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5078 cat >> confdefs.h
<<EOF
5079 #define $ac_tr_func 1
5083 echo "$ac_t""no" 1>&6
5087 for ac_func
in srandom random srand rand setenv
usleep mmap64 strcasecmp fcvt fcvtl
5089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5090 echo "configure:5091: checking for $ac_func" >&5
5091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5092 echo $ac_n "(cached) $ac_c" 1>&6
5094 cat > conftest.
$ac_ext <<EOF
5095 #line 5096 "configure"
5096 #include "confdefs.h"
5097 /* System header to define __stub macros and hopefully few prototypes,
5098 which can conflict with char $ac_func(); below. */
5100 /* Override any gcc2 internal prototype to avoid an error. */
5101 /* We use char because int might match the return type of a gcc2
5102 builtin and then its argument prototype would still apply. */
5107 /* The GNU C library defines this for functions which it implements
5108 to always fail with ENOSYS. Some functions are actually named
5109 something starting with __ and the normal name is an alias. */
5110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5118 if { (eval echo configure
:5119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5120 eval "ac_cv_func_$ac_func=yes"
5122 echo "configure: failed program was:" >&5
5123 cat conftest.
$ac_ext >&5
5125 eval "ac_cv_func_$ac_func=no"
5130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5131 echo "$ac_t""yes" 1>&6
5132 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5133 cat >> confdefs.h
<<EOF
5134 #define $ac_tr_func 1
5138 echo "$ac_t""no" 1>&6
5143 # syscall() is needed for smbwrapper.
5144 for ac_func
in syscall
5146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5147 echo "configure:5148: checking for $ac_func" >&5
5148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5149 echo $ac_n "(cached) $ac_c" 1>&6
5151 cat > conftest.
$ac_ext <<EOF
5152 #line 5153 "configure"
5153 #include "confdefs.h"
5154 /* System header to define __stub macros and hopefully few prototypes,
5155 which can conflict with char $ac_func(); below. */
5157 /* Override any gcc2 internal prototype to avoid an error. */
5158 /* We use char because int might match the return type of a gcc2
5159 builtin and then its argument prototype would still apply. */
5164 /* The GNU C library defines this for functions which it implements
5165 to always fail with ENOSYS. Some functions are actually named
5166 something starting with __ and the normal name is an alias. */
5167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5175 if { (eval echo configure
:5176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5177 eval "ac_cv_func_$ac_func=yes"
5179 echo "configure: failed program was:" >&5
5180 cat conftest.
$ac_ext >&5
5182 eval "ac_cv_func_$ac_func=no"
5187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5188 echo "$ac_t""yes" 1>&6
5189 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5190 cat >> confdefs.h
<<EOF
5191 #define $ac_tr_func 1
5195 echo "$ac_t""no" 1>&6
5200 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5203 echo "configure:5204: checking for $ac_func" >&5
5204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5205 echo $ac_n "(cached) $ac_c" 1>&6
5207 cat > conftest.
$ac_ext <<EOF
5208 #line 5209 "configure"
5209 #include "confdefs.h"
5210 /* System header to define __stub macros and hopefully few prototypes,
5211 which can conflict with char $ac_func(); below. */
5213 /* Override any gcc2 internal prototype to avoid an error. */
5214 /* We use char because int might match the return type of a gcc2
5215 builtin and then its argument prototype would still apply. */
5220 /* The GNU C library defines this for functions which it implements
5221 to always fail with ENOSYS. Some functions are actually named
5222 something starting with __ and the normal name is an alias. */
5223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5231 if { (eval echo configure
:5232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5233 eval "ac_cv_func_$ac_func=yes"
5235 echo "configure: failed program was:" >&5
5236 cat conftest.
$ac_ext >&5
5238 eval "ac_cv_func_$ac_func=no"
5243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5244 echo "$ac_t""yes" 1>&6
5245 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5246 cat >> confdefs.h
<<EOF
5247 #define $ac_tr_func 1
5251 echo "$ac_t""no" 1>&6
5255 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5258 echo "configure:5259: checking for $ac_func" >&5
5259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5260 echo $ac_n "(cached) $ac_c" 1>&6
5262 cat > conftest.
$ac_ext <<EOF
5263 #line 5264 "configure"
5264 #include "confdefs.h"
5265 /* System header to define __stub macros and hopefully few prototypes,
5266 which can conflict with char $ac_func(); below. */
5268 /* Override any gcc2 internal prototype to avoid an error. */
5269 /* We use char because int might match the return type of a gcc2
5270 builtin and then its argument prototype would still apply. */
5275 /* The GNU C library defines this for functions which it implements
5276 to always fail with ENOSYS. Some functions are actually named
5277 something starting with __ and the normal name is an alias. */
5278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5286 if { (eval echo configure
:5287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5288 eval "ac_cv_func_$ac_func=yes"
5290 echo "configure: failed program was:" >&5
5291 cat conftest.
$ac_ext >&5
5293 eval "ac_cv_func_$ac_func=no"
5298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5299 echo "$ac_t""yes" 1>&6
5300 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5301 cat >> confdefs.h
<<EOF
5302 #define $ac_tr_func 1
5306 echo "$ac_t""no" 1>&6
5310 for ac_func
in __getcwd _getcwd
5312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5313 echo "configure:5314: checking for $ac_func" >&5
5314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5315 echo $ac_n "(cached) $ac_c" 1>&6
5317 cat > conftest.
$ac_ext <<EOF
5318 #line 5319 "configure"
5319 #include "confdefs.h"
5320 /* System header to define __stub macros and hopefully few prototypes,
5321 which can conflict with char $ac_func(); below. */
5323 /* Override any gcc2 internal prototype to avoid an error. */
5324 /* We use char because int might match the return type of a gcc2
5325 builtin and then its argument prototype would still apply. */
5330 /* The GNU C library defines this for functions which it implements
5331 to always fail with ENOSYS. Some functions are actually named
5332 something starting with __ and the normal name is an alias. */
5333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5341 if { (eval echo configure
:5342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5343 eval "ac_cv_func_$ac_func=yes"
5345 echo "configure: failed program was:" >&5
5346 cat conftest.
$ac_ext >&5
5348 eval "ac_cv_func_$ac_func=no"
5353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5354 echo "$ac_t""yes" 1>&6
5355 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5356 cat >> confdefs.h
<<EOF
5357 #define $ac_tr_func 1
5361 echo "$ac_t""no" 1>&6
5365 for ac_func
in __xstat __fxstat __lxstat
5367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5368 echo "configure:5369: checking for $ac_func" >&5
5369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5372 cat > conftest.
$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5375 /* System header to define __stub macros and hopefully few prototypes,
5376 which can conflict with char $ac_func(); below. */
5378 /* Override any gcc2 internal prototype to avoid an error. */
5379 /* We use char because int might match the return type of a gcc2
5380 builtin and then its argument prototype would still apply. */
5385 /* The GNU C library defines this for functions which it implements
5386 to always fail with ENOSYS. Some functions are actually named
5387 something starting with __ and the normal name is an alias. */
5388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5396 if { (eval echo configure
:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5398 eval "ac_cv_func_$ac_func=yes"
5400 echo "configure: failed program was:" >&5
5401 cat conftest.
$ac_ext >&5
5403 eval "ac_cv_func_$ac_func=no"
5408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5409 echo "$ac_t""yes" 1>&6
5410 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5411 cat >> confdefs.h
<<EOF
5412 #define $ac_tr_func 1
5416 echo "$ac_t""no" 1>&6
5420 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
5422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5423 echo "configure:5424: checking for $ac_func" >&5
5424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5425 echo $ac_n "(cached) $ac_c" 1>&6
5427 cat > conftest.
$ac_ext <<EOF
5428 #line 5429 "configure"
5429 #include "confdefs.h"
5430 /* System header to define __stub macros and hopefully few prototypes,
5431 which can conflict with char $ac_func(); below. */
5433 /* Override any gcc2 internal prototype to avoid an error. */
5434 /* We use char because int might match the return type of a gcc2
5435 builtin and then its argument prototype would still apply. */
5440 /* The GNU C library defines this for functions which it implements
5441 to always fail with ENOSYS. Some functions are actually named
5442 something starting with __ and the normal name is an alias. */
5443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5451 if { (eval echo configure
:5452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5453 eval "ac_cv_func_$ac_func=yes"
5455 echo "configure: failed program was:" >&5
5456 cat conftest.
$ac_ext >&5
5458 eval "ac_cv_func_$ac_func=no"
5463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5464 echo "$ac_t""yes" 1>&6
5465 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5466 cat >> confdefs.h
<<EOF
5467 #define $ac_tr_func 1
5471 echo "$ac_t""no" 1>&6
5475 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5478 echo "configure:5479: checking for $ac_func" >&5
5479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5480 echo $ac_n "(cached) $ac_c" 1>&6
5482 cat > conftest.
$ac_ext <<EOF
5483 #line 5484 "configure"
5484 #include "confdefs.h"
5485 /* System header to define __stub macros and hopefully few prototypes,
5486 which can conflict with char $ac_func(); below. */
5488 /* Override any gcc2 internal prototype to avoid an error. */
5489 /* We use char because int might match the return type of a gcc2
5490 builtin and then its argument prototype would still apply. */
5495 /* The GNU C library defines this for functions which it implements
5496 to always fail with ENOSYS. Some functions are actually named
5497 something starting with __ and the normal name is an alias. */
5498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5506 if { (eval echo configure
:5507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5508 eval "ac_cv_func_$ac_func=yes"
5510 echo "configure: failed program was:" >&5
5511 cat conftest.
$ac_ext >&5
5513 eval "ac_cv_func_$ac_func=no"
5518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5519 echo "$ac_t""yes" 1>&6
5520 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5521 cat >> confdefs.h
<<EOF
5522 #define $ac_tr_func 1
5526 echo "$ac_t""no" 1>&6
5530 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
5532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5533 echo "configure:5534: checking for $ac_func" >&5
5534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5535 echo $ac_n "(cached) $ac_c" 1>&6
5537 cat > conftest.
$ac_ext <<EOF
5538 #line 5539 "configure"
5539 #include "confdefs.h"
5540 /* System header to define __stub macros and hopefully few prototypes,
5541 which can conflict with char $ac_func(); below. */
5543 /* Override any gcc2 internal prototype to avoid an error. */
5544 /* We use char because int might match the return type of a gcc2
5545 builtin and then its argument prototype would still apply. */
5550 /* The GNU C library defines this for functions which it implements
5551 to always fail with ENOSYS. Some functions are actually named
5552 something starting with __ and the normal name is an alias. */
5553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5561 if { (eval echo configure
:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5563 eval "ac_cv_func_$ac_func=yes"
5565 echo "configure: failed program was:" >&5
5566 cat conftest.
$ac_ext >&5
5568 eval "ac_cv_func_$ac_func=no"
5573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5574 echo "$ac_t""yes" 1>&6
5575 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5576 cat >> confdefs.h
<<EOF
5577 #define $ac_tr_func 1
5581 echo "$ac_t""no" 1>&6
5585 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
5587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5588 echo "configure:5589: checking for $ac_func" >&5
5589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5590 echo $ac_n "(cached) $ac_c" 1>&6
5592 cat > conftest.
$ac_ext <<EOF
5593 #line 5594 "configure"
5594 #include "confdefs.h"
5595 /* System header to define __stub macros and hopefully few prototypes,
5596 which can conflict with char $ac_func(); below. */
5598 /* Override any gcc2 internal prototype to avoid an error. */
5599 /* We use char because int might match the return type of a gcc2
5600 builtin and then its argument prototype would still apply. */
5605 /* The GNU C library defines this for functions which it implements
5606 to always fail with ENOSYS. Some functions are actually named
5607 something starting with __ and the normal name is an alias. */
5608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5616 if { (eval echo configure
:5617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5618 eval "ac_cv_func_$ac_func=yes"
5620 echo "configure: failed program was:" >&5
5621 cat conftest.
$ac_ext >&5
5623 eval "ac_cv_func_$ac_func=no"
5628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5629 echo "$ac_t""yes" 1>&6
5630 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5631 cat >> confdefs.h
<<EOF
5632 #define $ac_tr_func 1
5636 echo "$ac_t""no" 1>&6
5640 for ac_func
in _write __write _fork __fork
5642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5643 echo "configure:5644: checking for $ac_func" >&5
5644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5647 cat > conftest.
$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5650 /* System header to define __stub macros and hopefully few prototypes,
5651 which can conflict with char $ac_func(); below. */
5653 /* Override any gcc2 internal prototype to avoid an error. */
5654 /* We use char because int might match the return type of a gcc2
5655 builtin and then its argument prototype would still apply. */
5660 /* The GNU C library defines this for functions which it implements
5661 to always fail with ENOSYS. Some functions are actually named
5662 something starting with __ and the normal name is an alias. */
5663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5671 if { (eval echo configure
:5672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5673 eval "ac_cv_func_$ac_func=yes"
5675 echo "configure: failed program was:" >&5
5676 cat conftest.
$ac_ext >&5
5678 eval "ac_cv_func_$ac_func=no"
5683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5684 echo "$ac_t""yes" 1>&6
5685 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5686 cat >> confdefs.h
<<EOF
5687 #define $ac_tr_func 1
5691 echo "$ac_t""no" 1>&6
5695 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
5697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5698 echo "configure:5699: checking for $ac_func" >&5
5699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5700 echo $ac_n "(cached) $ac_c" 1>&6
5702 cat > conftest.
$ac_ext <<EOF
5703 #line 5704 "configure"
5704 #include "confdefs.h"
5705 /* System header to define __stub macros and hopefully few prototypes,
5706 which can conflict with char $ac_func(); below. */
5708 /* Override any gcc2 internal prototype to avoid an error. */
5709 /* We use char because int might match the return type of a gcc2
5710 builtin and then its argument prototype would still apply. */
5715 /* The GNU C library defines this for functions which it implements
5716 to always fail with ENOSYS. Some functions are actually named
5717 something starting with __ and the normal name is an alias. */
5718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5726 if { (eval echo configure
:5727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5728 eval "ac_cv_func_$ac_func=yes"
5730 echo "configure: failed program was:" >&5
5731 cat conftest.
$ac_ext >&5
5733 eval "ac_cv_func_$ac_func=no"
5738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5739 echo "$ac_t""yes" 1>&6
5740 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5741 cat >> confdefs.h
<<EOF
5742 #define $ac_tr_func 1
5746 echo "$ac_t""no" 1>&6
5750 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5753 echo "configure:5754: checking for $ac_func" >&5
5754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5755 echo $ac_n "(cached) $ac_c" 1>&6
5757 cat > conftest.
$ac_ext <<EOF
5758 #line 5759 "configure"
5759 #include "confdefs.h"
5760 /* System header to define __stub macros and hopefully few prototypes,
5761 which can conflict with char $ac_func(); below. */
5763 /* Override any gcc2 internal prototype to avoid an error. */
5764 /* We use char because int might match the return type of a gcc2
5765 builtin and then its argument prototype would still apply. */
5770 /* The GNU C library defines this for functions which it implements
5771 to always fail with ENOSYS. Some functions are actually named
5772 something starting with __ and the normal name is an alias. */
5773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5781 if { (eval echo configure
:5782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5783 eval "ac_cv_func_$ac_func=yes"
5785 echo "configure: failed program was:" >&5
5786 cat conftest.
$ac_ext >&5
5788 eval "ac_cv_func_$ac_func=no"
5793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5794 echo "$ac_t""yes" 1>&6
5795 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5796 cat >> confdefs.h
<<EOF
5797 #define $ac_tr_func 1
5801 echo "$ac_t""no" 1>&6
5805 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
5807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5808 echo "configure:5809: checking for $ac_func" >&5
5809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5810 echo $ac_n "(cached) $ac_c" 1>&6
5812 cat > conftest.
$ac_ext <<EOF
5813 #line 5814 "configure"
5814 #include "confdefs.h"
5815 /* System header to define __stub macros and hopefully few prototypes,
5816 which can conflict with char $ac_func(); below. */
5818 /* Override any gcc2 internal prototype to avoid an error. */
5819 /* We use char because int might match the return type of a gcc2
5820 builtin and then its argument prototype would still apply. */
5825 /* The GNU C library defines this for functions which it implements
5826 to always fail with ENOSYS. Some functions are actually named
5827 something starting with __ and the normal name is an alias. */
5828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5836 if { (eval echo configure
:5837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5838 eval "ac_cv_func_$ac_func=yes"
5840 echo "configure: failed program was:" >&5
5841 cat conftest.
$ac_ext >&5
5843 eval "ac_cv_func_$ac_func=no"
5848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5849 echo "$ac_t""yes" 1>&6
5850 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5851 cat >> confdefs.h
<<EOF
5852 #define $ac_tr_func 1
5856 echo "$ac_t""no" 1>&6
5860 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
5862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5863 echo "configure:5864: checking for $ac_func" >&5
5864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5865 echo $ac_n "(cached) $ac_c" 1>&6
5867 cat > conftest.
$ac_ext <<EOF
5868 #line 5869 "configure"
5869 #include "confdefs.h"
5870 /* System header to define __stub macros and hopefully few prototypes,
5871 which can conflict with char $ac_func(); below. */
5873 /* Override any gcc2 internal prototype to avoid an error. */
5874 /* We use char because int might match the return type of a gcc2
5875 builtin and then its argument prototype would still apply. */
5880 /* The GNU C library defines this for functions which it implements
5881 to always fail with ENOSYS. Some functions are actually named
5882 something starting with __ and the normal name is an alias. */
5883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5891 if { (eval echo configure
:5892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5893 eval "ac_cv_func_$ac_func=yes"
5895 echo "configure: failed program was:" >&5
5896 cat conftest.
$ac_ext >&5
5898 eval "ac_cv_func_$ac_func=no"
5903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5904 echo "$ac_t""yes" 1>&6
5905 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5906 cat >> confdefs.h
<<EOF
5907 #define $ac_tr_func 1
5911 echo "$ac_t""no" 1>&6
5915 for ac_func
in open64 _open64 __open64 creat64
5917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5918 echo "configure:5919: checking for $ac_func" >&5
5919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5920 echo $ac_n "(cached) $ac_c" 1>&6
5922 cat > conftest.
$ac_ext <<EOF
5923 #line 5924 "configure"
5924 #include "confdefs.h"
5925 /* System header to define __stub macros and hopefully few prototypes,
5926 which can conflict with char $ac_func(); below. */
5928 /* Override any gcc2 internal prototype to avoid an error. */
5929 /* We use char because int might match the return type of a gcc2
5930 builtin and then its argument prototype would still apply. */
5935 /* The GNU C library defines this for functions which it implements
5936 to always fail with ENOSYS. Some functions are actually named
5937 something starting with __ and the normal name is an alias. */
5938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5946 if { (eval echo configure
:5947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5948 eval "ac_cv_func_$ac_func=yes"
5950 echo "configure: failed program was:" >&5
5951 cat conftest.
$ac_ext >&5
5953 eval "ac_cv_func_$ac_func=no"
5958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5959 echo "$ac_t""yes" 1>&6
5960 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5961 cat >> confdefs.h
<<EOF
5962 #define $ac_tr_func 1
5966 echo "$ac_t""no" 1>&6
5972 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
5975 if test x
$ac_cv_func_stat64 = xno
; then
5976 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
5977 echo "configure:5978: checking for stat64 in <sys/stat.h>" >&5
5978 cat > conftest.
$ac_ext <<EOF
5979 #line 5980 "configure"
5980 #include "confdefs.h"
5982 #if defined(HAVE_UNISTD_H)
5985 #include <sys/stat.h>
5988 struct stat64 st64; exit(stat64(".",&st64));
5991 if { (eval echo configure
:5992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5993 ac_cv_func_stat64
=yes
5995 echo "configure: failed program was:" >&5
5996 cat conftest.
$ac_ext >&5
5999 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6000 if test x
$ac_cv_func_stat64 = xyes
; then
6001 cat >> confdefs.h
<<\EOF
6002 #define HAVE_STAT64 1
6008 if test x
$ac_cv_func_lstat64 = xno
; then
6009 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6010 echo "configure:6011: checking for lstat64 in <sys/stat.h>" >&5
6011 cat > conftest.
$ac_ext <<EOF
6012 #line 6013 "configure"
6013 #include "confdefs.h"
6015 #if defined(HAVE_UNISTD_H)
6018 #include <sys/stat.h>
6021 struct stat64 st64; exit(lstat64(".",&st64));
6024 if { (eval echo configure
:6025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6026 ac_cv_func_lstat64
=yes
6028 echo "configure: failed program was:" >&5
6029 cat conftest.
$ac_ext >&5
6032 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6033 if test x
$ac_cv_func_lstat64 = xyes
; then
6034 cat >> confdefs.h
<<\EOF
6035 #define HAVE_LSTAT64 1
6041 if test x
$ac_cv_func_fstat64 = xno
; then
6042 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6043 echo "configure:6044: checking for fstat64 in <sys/stat.h>" >&5
6044 cat > conftest.
$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6048 #if defined(HAVE_UNISTD_H)
6051 #include <sys/stat.h>
6054 struct stat64 st64; exit(fstat64(0,&st64));
6057 if { (eval echo configure
:6058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6059 ac_cv_func_fstat64
=yes
6061 echo "configure: failed program was:" >&5
6062 cat conftest.
$ac_ext >&5
6065 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6066 if test x
$ac_cv_func_fstat64 = xyes
; then
6067 cat >> confdefs.h
<<\EOF
6068 #define HAVE_FSTAT64 1
6075 # If no strcasecmp, check for it in some known places
6076 # It is in -lresolv on ReliantUNIX and UnixWare
6077 # -lresolve *must* follow -lnsl for name resolution to work properly
6080 if test x
$ac_cv_func_strcasecmp = xno
; then
6081 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6082 echo "configure:6083: checking for strcasecmp in -lresolv" >&5
6083 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6085 echo $ac_n "(cached) $ac_c" 1>&6
6087 ac_save_LIBS
="$LIBS"
6088 LIBS
="-lresolv $LIBS"
6089 cat > conftest.
$ac_ext <<EOF
6090 #line 6091 "configure"
6091 #include "confdefs.h"
6092 /* Override any gcc2 internal prototype to avoid an error. */
6093 /* We use char because int might match the return type of a gcc2
6094 builtin and then its argument prototype would still apply. */
6101 if { (eval echo configure
:6102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6103 eval "ac_cv_lib_$ac_lib_var=yes"
6105 echo "configure: failed program was:" >&5
6106 cat conftest.
$ac_ext >&5
6108 eval "ac_cv_lib_$ac_lib_var=no"
6111 LIBS
="$ac_save_LIBS"
6114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6115 echo "$ac_t""yes" 1>&6
6116 LIBS
="$LIBS -lresolv"
6117 cat >> confdefs.h
<<\EOF
6118 #define HAVE_STRCASECMP 1
6122 echo "$ac_t""no" 1>&6
6128 # Check for the functions putprpwnam, set_auth_parameters,
6129 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6130 # Needed for OSF1 and HPUX.
6134 *-lsecurity*) for ac_func
in putprpwnam
6136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6137 echo "configure:6138: checking for $ac_func" >&5
6138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6139 echo $ac_n "(cached) $ac_c" 1>&6
6141 cat > conftest.
$ac_ext <<EOF
6142 #line 6143 "configure"
6143 #include "confdefs.h"
6144 /* System header to define __stub macros and hopefully few prototypes,
6145 which can conflict with char $ac_func(); below. */
6147 /* Override any gcc2 internal prototype to avoid an error. */
6148 /* We use char because int might match the return type of a gcc2
6149 builtin and then its argument prototype would still apply. */
6154 /* The GNU C library defines this for functions which it implements
6155 to always fail with ENOSYS. Some functions are actually named
6156 something starting with __ and the normal name is an alias. */
6157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6165 if { (eval echo configure
:6166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6167 eval "ac_cv_func_$ac_func=yes"
6169 echo "configure: failed program was:" >&5
6170 cat conftest.
$ac_ext >&5
6172 eval "ac_cv_func_$ac_func=no"
6177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6178 echo "$ac_t""yes" 1>&6
6179 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6180 cat >> confdefs.h
<<EOF
6181 #define $ac_tr_func 1
6185 echo "$ac_t""no" 1>&6
6189 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6190 echo "configure:6191: checking for putprpwnam in -lsecurity" >&5
6191 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6193 echo $ac_n "(cached) $ac_c" 1>&6
6195 ac_save_LIBS
="$LIBS"
6196 LIBS
="-lsecurity $LIBS"
6197 cat > conftest.
$ac_ext <<EOF
6198 #line 6199 "configure"
6199 #include "confdefs.h"
6200 /* Override any gcc2 internal prototype to avoid an error. */
6201 /* We use char because int might match the return type of a gcc2
6202 builtin and then its argument prototype would still apply. */
6209 if { (eval echo configure
:6210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6211 eval "ac_cv_lib_$ac_lib_var=yes"
6213 echo "configure: failed program was:" >&5
6214 cat conftest.
$ac_ext >&5
6216 eval "ac_cv_lib_$ac_lib_var=no"
6219 LIBS
="$ac_save_LIBS"
6222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6223 echo "$ac_t""yes" 1>&6
6224 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6225 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6226 cat >> confdefs.h
<<EOF
6227 #define $ac_tr_lib 1
6230 LIBS
="-lsecurity $LIBS"
6233 echo "$ac_t""no" 1>&6
6236 for ac_func
in putprpwnam
6238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6239 echo "configure:6240: checking for $ac_func" >&5
6240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6241 echo $ac_n "(cached) $ac_c" 1>&6
6243 cat > conftest.
$ac_ext <<EOF
6244 #line 6245 "configure"
6245 #include "confdefs.h"
6246 /* System header to define __stub macros and hopefully few prototypes,
6247 which can conflict with char $ac_func(); below. */
6249 /* Override any gcc2 internal prototype to avoid an error. */
6250 /* We use char because int might match the return type of a gcc2
6251 builtin and then its argument prototype would still apply. */
6256 /* The GNU C library defines this for functions which it implements
6257 to always fail with ENOSYS. Some functions are actually named
6258 something starting with __ and the normal name is an alias. */
6259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6267 if { (eval echo configure
:6268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6269 eval "ac_cv_func_$ac_func=yes"
6271 echo "configure: failed program was:" >&5
6272 cat conftest.
$ac_ext >&5
6274 eval "ac_cv_func_$ac_func=no"
6279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6280 echo "$ac_t""yes" 1>&6
6281 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6282 cat >> confdefs.h
<<EOF
6283 #define $ac_tr_func 1
6287 echo "$ac_t""no" 1>&6
6295 *-lsec*) for ac_func
in putprpwnam
6297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6298 echo "configure:6299: checking for $ac_func" >&5
6299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6300 echo $ac_n "(cached) $ac_c" 1>&6
6302 cat > conftest.
$ac_ext <<EOF
6303 #line 6304 "configure"
6304 #include "confdefs.h"
6305 /* System header to define __stub macros and hopefully few prototypes,
6306 which can conflict with char $ac_func(); below. */
6308 /* Override any gcc2 internal prototype to avoid an error. */
6309 /* We use char because int might match the return type of a gcc2
6310 builtin and then its argument prototype would still apply. */
6315 /* The GNU C library defines this for functions which it implements
6316 to always fail with ENOSYS. Some functions are actually named
6317 something starting with __ and the normal name is an alias. */
6318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6326 if { (eval echo configure
:6327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6328 eval "ac_cv_func_$ac_func=yes"
6330 echo "configure: failed program was:" >&5
6331 cat conftest.
$ac_ext >&5
6333 eval "ac_cv_func_$ac_func=no"
6338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6339 echo "$ac_t""yes" 1>&6
6340 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6341 cat >> confdefs.h
<<EOF
6342 #define $ac_tr_func 1
6346 echo "$ac_t""no" 1>&6
6350 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6351 echo "configure:6352: checking for putprpwnam in -lsec" >&5
6352 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6354 echo $ac_n "(cached) $ac_c" 1>&6
6356 ac_save_LIBS
="$LIBS"
6358 cat > conftest.
$ac_ext <<EOF
6359 #line 6360 "configure"
6360 #include "confdefs.h"
6361 /* Override any gcc2 internal prototype to avoid an error. */
6362 /* We use char because int might match the return type of a gcc2
6363 builtin and then its argument prototype would still apply. */
6370 if { (eval echo configure
:6371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6372 eval "ac_cv_lib_$ac_lib_var=yes"
6374 echo "configure: failed program was:" >&5
6375 cat conftest.
$ac_ext >&5
6377 eval "ac_cv_lib_$ac_lib_var=no"
6380 LIBS
="$ac_save_LIBS"
6383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6384 echo "$ac_t""yes" 1>&6
6385 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6386 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6387 cat >> confdefs.h
<<EOF
6388 #define $ac_tr_lib 1
6394 echo "$ac_t""no" 1>&6
6397 for ac_func
in putprpwnam
6399 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6400 echo "configure:6401: checking for $ac_func" >&5
6401 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6402 echo $ac_n "(cached) $ac_c" 1>&6
6404 cat > conftest.
$ac_ext <<EOF
6405 #line 6406 "configure"
6406 #include "confdefs.h"
6407 /* System header to define __stub macros and hopefully few prototypes,
6408 which can conflict with char $ac_func(); below. */
6410 /* Override any gcc2 internal prototype to avoid an error. */
6411 /* We use char because int might match the return type of a gcc2
6412 builtin and then its argument prototype would still apply. */
6417 /* The GNU C library defines this for functions which it implements
6418 to always fail with ENOSYS. Some functions are actually named
6419 something starting with __ and the normal name is an alias. */
6420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6428 if { (eval echo configure
:6429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6430 eval "ac_cv_func_$ac_func=yes"
6432 echo "configure: failed program was:" >&5
6433 cat conftest.
$ac_ext >&5
6435 eval "ac_cv_func_$ac_func=no"
6440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6441 echo "$ac_t""yes" 1>&6
6442 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6443 cat >> confdefs.h
<<EOF
6444 #define $ac_tr_func 1
6448 echo "$ac_t""no" 1>&6
6457 *-lsecurity*) for ac_func
in set_auth_parameters
6459 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6460 echo "configure:6461: checking for $ac_func" >&5
6461 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6462 echo $ac_n "(cached) $ac_c" 1>&6
6464 cat > conftest.
$ac_ext <<EOF
6465 #line 6466 "configure"
6466 #include "confdefs.h"
6467 /* System header to define __stub macros and hopefully few prototypes,
6468 which can conflict with char $ac_func(); below. */
6470 /* Override any gcc2 internal prototype to avoid an error. */
6471 /* We use char because int might match the return type of a gcc2
6472 builtin and then its argument prototype would still apply. */
6477 /* The GNU C library defines this for functions which it implements
6478 to always fail with ENOSYS. Some functions are actually named
6479 something starting with __ and the normal name is an alias. */
6480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6488 if { (eval echo configure
:6489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6490 eval "ac_cv_func_$ac_func=yes"
6492 echo "configure: failed program was:" >&5
6493 cat conftest.
$ac_ext >&5
6495 eval "ac_cv_func_$ac_func=no"
6500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6501 echo "$ac_t""yes" 1>&6
6502 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6503 cat >> confdefs.h
<<EOF
6504 #define $ac_tr_func 1
6508 echo "$ac_t""no" 1>&6
6512 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6513 echo "configure:6514: checking for set_auth_parameters in -lsecurity" >&5
6514 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6516 echo $ac_n "(cached) $ac_c" 1>&6
6518 ac_save_LIBS
="$LIBS"
6519 LIBS
="-lsecurity $LIBS"
6520 cat > conftest.
$ac_ext <<EOF
6521 #line 6522 "configure"
6522 #include "confdefs.h"
6523 /* Override any gcc2 internal prototype to avoid an error. */
6524 /* We use char because int might match the return type of a gcc2
6525 builtin and then its argument prototype would still apply. */
6526 char set_auth_parameters();
6529 set_auth_parameters()
6532 if { (eval echo configure
:6533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6534 eval "ac_cv_lib_$ac_lib_var=yes"
6536 echo "configure: failed program was:" >&5
6537 cat conftest.
$ac_ext >&5
6539 eval "ac_cv_lib_$ac_lib_var=no"
6542 LIBS
="$ac_save_LIBS"
6545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6546 echo "$ac_t""yes" 1>&6
6547 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6548 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6549 cat >> confdefs.h
<<EOF
6550 #define $ac_tr_lib 1
6553 LIBS
="-lsecurity $LIBS"
6556 echo "$ac_t""no" 1>&6
6559 for ac_func
in set_auth_parameters
6561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6562 echo "configure:6563: checking for $ac_func" >&5
6563 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6564 echo $ac_n "(cached) $ac_c" 1>&6
6566 cat > conftest.
$ac_ext <<EOF
6567 #line 6568 "configure"
6568 #include "confdefs.h"
6569 /* System header to define __stub macros and hopefully few prototypes,
6570 which can conflict with char $ac_func(); below. */
6572 /* Override any gcc2 internal prototype to avoid an error. */
6573 /* We use char because int might match the return type of a gcc2
6574 builtin and then its argument prototype would still apply. */
6579 /* The GNU C library defines this for functions which it implements
6580 to always fail with ENOSYS. Some functions are actually named
6581 something starting with __ and the normal name is an alias. */
6582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6590 if { (eval echo configure
:6591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6592 eval "ac_cv_func_$ac_func=yes"
6594 echo "configure: failed program was:" >&5
6595 cat conftest.
$ac_ext >&5
6597 eval "ac_cv_func_$ac_func=no"
6602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6603 echo "$ac_t""yes" 1>&6
6604 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6605 cat >> confdefs.h
<<EOF
6606 #define $ac_tr_func 1
6610 echo "$ac_t""no" 1>&6
6618 *-lsec*) for ac_func
in set_auth_parameters
6620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6621 echo "configure:6622: checking for $ac_func" >&5
6622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6623 echo $ac_n "(cached) $ac_c" 1>&6
6625 cat > conftest.
$ac_ext <<EOF
6626 #line 6627 "configure"
6627 #include "confdefs.h"
6628 /* System header to define __stub macros and hopefully few prototypes,
6629 which can conflict with char $ac_func(); below. */
6631 /* Override any gcc2 internal prototype to avoid an error. */
6632 /* We use char because int might match the return type of a gcc2
6633 builtin and then its argument prototype would still apply. */
6638 /* The GNU C library defines this for functions which it implements
6639 to always fail with ENOSYS. Some functions are actually named
6640 something starting with __ and the normal name is an alias. */
6641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6649 if { (eval echo configure
:6650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6651 eval "ac_cv_func_$ac_func=yes"
6653 echo "configure: failed program was:" >&5
6654 cat conftest.
$ac_ext >&5
6656 eval "ac_cv_func_$ac_func=no"
6661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6662 echo "$ac_t""yes" 1>&6
6663 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6664 cat >> confdefs.h
<<EOF
6665 #define $ac_tr_func 1
6669 echo "$ac_t""no" 1>&6
6673 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6674 echo "configure:6675: checking for set_auth_parameters in -lsec" >&5
6675 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6677 echo $ac_n "(cached) $ac_c" 1>&6
6679 ac_save_LIBS
="$LIBS"
6681 cat > conftest.
$ac_ext <<EOF
6682 #line 6683 "configure"
6683 #include "confdefs.h"
6684 /* Override any gcc2 internal prototype to avoid an error. */
6685 /* We use char because int might match the return type of a gcc2
6686 builtin and then its argument prototype would still apply. */
6687 char set_auth_parameters();
6690 set_auth_parameters()
6693 if { (eval echo configure
:6694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6695 eval "ac_cv_lib_$ac_lib_var=yes"
6697 echo "configure: failed program was:" >&5
6698 cat conftest.
$ac_ext >&5
6700 eval "ac_cv_lib_$ac_lib_var=no"
6703 LIBS
="$ac_save_LIBS"
6706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6707 echo "$ac_t""yes" 1>&6
6708 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6709 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6710 cat >> confdefs.h
<<EOF
6711 #define $ac_tr_lib 1
6717 echo "$ac_t""no" 1>&6
6720 for ac_func
in set_auth_parameters
6722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6723 echo "configure:6724: checking for $ac_func" >&5
6724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6725 echo $ac_n "(cached) $ac_c" 1>&6
6727 cat > conftest.
$ac_ext <<EOF
6728 #line 6729 "configure"
6729 #include "confdefs.h"
6730 /* System header to define __stub macros and hopefully few prototypes,
6731 which can conflict with char $ac_func(); below. */
6733 /* Override any gcc2 internal prototype to avoid an error. */
6734 /* We use char because int might match the return type of a gcc2
6735 builtin and then its argument prototype would still apply. */
6740 /* The GNU C library defines this for functions which it implements
6741 to always fail with ENOSYS. Some functions are actually named
6742 something starting with __ and the normal name is an alias. */
6743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6751 if { (eval echo configure
:6752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6753 eval "ac_cv_func_$ac_func=yes"
6755 echo "configure: failed program was:" >&5
6756 cat conftest.
$ac_ext >&5
6758 eval "ac_cv_func_$ac_func=no"
6763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6764 echo "$ac_t""yes" 1>&6
6765 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6766 cat >> confdefs.h
<<EOF
6767 #define $ac_tr_func 1
6771 echo "$ac_t""no" 1>&6
6779 # UnixWare 7.x has its getspnam in -lgen
6781 *-lgen*) for ac_func
in getspnam
6783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6784 echo "configure:6785: checking for $ac_func" >&5
6785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6786 echo $ac_n "(cached) $ac_c" 1>&6
6788 cat > conftest.
$ac_ext <<EOF
6789 #line 6790 "configure"
6790 #include "confdefs.h"
6791 /* System header to define __stub macros and hopefully few prototypes,
6792 which can conflict with char $ac_func(); below. */
6794 /* Override any gcc2 internal prototype to avoid an error. */
6795 /* We use char because int might match the return type of a gcc2
6796 builtin and then its argument prototype would still apply. */
6801 /* The GNU C library defines this for functions which it implements
6802 to always fail with ENOSYS. Some functions are actually named
6803 something starting with __ and the normal name is an alias. */
6804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6812 if { (eval echo configure
:6813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6814 eval "ac_cv_func_$ac_func=yes"
6816 echo "configure: failed program was:" >&5
6817 cat conftest.
$ac_ext >&5
6819 eval "ac_cv_func_$ac_func=no"
6824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6825 echo "$ac_t""yes" 1>&6
6826 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6827 cat >> confdefs.h
<<EOF
6828 #define $ac_tr_func 1
6832 echo "$ac_t""no" 1>&6
6836 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
6837 echo "configure:6838: checking for getspnam in -lgen" >&5
6838 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
6839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6840 echo $ac_n "(cached) $ac_c" 1>&6
6842 ac_save_LIBS
="$LIBS"
6844 cat > conftest.
$ac_ext <<EOF
6845 #line 6846 "configure"
6846 #include "confdefs.h"
6847 /* Override any gcc2 internal prototype to avoid an error. */
6848 /* We use char because int might match the return type of a gcc2
6849 builtin and then its argument prototype would still apply. */
6856 if { (eval echo configure
:6857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6858 eval "ac_cv_lib_$ac_lib_var=yes"
6860 echo "configure: failed program was:" >&5
6861 cat conftest.
$ac_ext >&5
6863 eval "ac_cv_lib_$ac_lib_var=no"
6866 LIBS
="$ac_save_LIBS"
6869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6870 echo "$ac_t""yes" 1>&6
6871 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6872 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6873 cat >> confdefs.h
<<EOF
6874 #define $ac_tr_lib 1
6880 echo "$ac_t""no" 1>&6
6883 for ac_func
in getspnam
6885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6886 echo "configure:6887: checking for $ac_func" >&5
6887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6888 echo $ac_n "(cached) $ac_c" 1>&6
6890 cat > conftest.
$ac_ext <<EOF
6891 #line 6892 "configure"
6892 #include "confdefs.h"
6893 /* System header to define __stub macros and hopefully few prototypes,
6894 which can conflict with char $ac_func(); below. */
6896 /* Override any gcc2 internal prototype to avoid an error. */
6897 /* We use char because int might match the return type of a gcc2
6898 builtin and then its argument prototype would still apply. */
6903 /* The GNU C library defines this for functions which it implements
6904 to always fail with ENOSYS. Some functions are actually named
6905 something starting with __ and the normal name is an alias. */
6906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6914 if { (eval echo configure
:6915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6916 eval "ac_cv_func_$ac_func=yes"
6918 echo "configure: failed program was:" >&5
6919 cat conftest.
$ac_ext >&5
6921 eval "ac_cv_func_$ac_func=no"
6926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6927 echo "$ac_t""yes" 1>&6
6928 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6929 cat >> confdefs.h
<<EOF
6930 #define $ac_tr_func 1
6934 echo "$ac_t""no" 1>&6
6943 *-lsecurity*) for ac_func
in getspnam
6945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6946 echo "configure:6947: checking for $ac_func" >&5
6947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6948 echo $ac_n "(cached) $ac_c" 1>&6
6950 cat > conftest.
$ac_ext <<EOF
6951 #line 6952 "configure"
6952 #include "confdefs.h"
6953 /* System header to define __stub macros and hopefully few prototypes,
6954 which can conflict with char $ac_func(); below. */
6956 /* Override any gcc2 internal prototype to avoid an error. */
6957 /* We use char because int might match the return type of a gcc2
6958 builtin and then its argument prototype would still apply. */
6963 /* The GNU C library defines this for functions which it implements
6964 to always fail with ENOSYS. Some functions are actually named
6965 something starting with __ and the normal name is an alias. */
6966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6974 if { (eval echo configure
:6975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6976 eval "ac_cv_func_$ac_func=yes"
6978 echo "configure: failed program was:" >&5
6979 cat conftest.
$ac_ext >&5
6981 eval "ac_cv_func_$ac_func=no"
6986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6987 echo "$ac_t""yes" 1>&6
6988 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6989 cat >> confdefs.h
<<EOF
6990 #define $ac_tr_func 1
6994 echo "$ac_t""no" 1>&6
6998 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
6999 echo "configure:7000: checking for getspnam in -lsecurity" >&5
7000 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7001 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7002 echo $ac_n "(cached) $ac_c" 1>&6
7004 ac_save_LIBS
="$LIBS"
7005 LIBS
="-lsecurity $LIBS"
7006 cat > conftest.
$ac_ext <<EOF
7007 #line 7008 "configure"
7008 #include "confdefs.h"
7009 /* Override any gcc2 internal prototype to avoid an error. */
7010 /* We use char because int might match the return type of a gcc2
7011 builtin and then its argument prototype would still apply. */
7018 if { (eval echo configure
:7019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7020 eval "ac_cv_lib_$ac_lib_var=yes"
7022 echo "configure: failed program was:" >&5
7023 cat conftest.
$ac_ext >&5
7025 eval "ac_cv_lib_$ac_lib_var=no"
7028 LIBS
="$ac_save_LIBS"
7031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7032 echo "$ac_t""yes" 1>&6
7033 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7034 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7035 cat >> confdefs.h
<<EOF
7036 #define $ac_tr_lib 1
7039 LIBS
="-lsecurity $LIBS"
7042 echo "$ac_t""no" 1>&6
7045 for ac_func
in getspnam
7047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7048 echo "configure:7049: checking for $ac_func" >&5
7049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7050 echo $ac_n "(cached) $ac_c" 1>&6
7052 cat > conftest.
$ac_ext <<EOF
7053 #line 7054 "configure"
7054 #include "confdefs.h"
7055 /* System header to define __stub macros and hopefully few prototypes,
7056 which can conflict with char $ac_func(); below. */
7058 /* Override any gcc2 internal prototype to avoid an error. */
7059 /* We use char because int might match the return type of a gcc2
7060 builtin and then its argument prototype would still apply. */
7065 /* The GNU C library defines this for functions which it implements
7066 to always fail with ENOSYS. Some functions are actually named
7067 something starting with __ and the normal name is an alias. */
7068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7076 if { (eval echo configure
:7077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7078 eval "ac_cv_func_$ac_func=yes"
7080 echo "configure: failed program was:" >&5
7081 cat conftest.
$ac_ext >&5
7083 eval "ac_cv_func_$ac_func=no"
7088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7089 echo "$ac_t""yes" 1>&6
7090 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7091 cat >> confdefs.h
<<EOF
7092 #define $ac_tr_func 1
7096 echo "$ac_t""no" 1>&6
7104 *-lsec*) for ac_func
in getspnam
7106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7107 echo "configure:7108: checking for $ac_func" >&5
7108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7109 echo $ac_n "(cached) $ac_c" 1>&6
7111 cat > conftest.
$ac_ext <<EOF
7112 #line 7113 "configure"
7113 #include "confdefs.h"
7114 /* System header to define __stub macros and hopefully few prototypes,
7115 which can conflict with char $ac_func(); below. */
7117 /* Override any gcc2 internal prototype to avoid an error. */
7118 /* We use char because int might match the return type of a gcc2
7119 builtin and then its argument prototype would still apply. */
7124 /* The GNU C library defines this for functions which it implements
7125 to always fail with ENOSYS. Some functions are actually named
7126 something starting with __ and the normal name is an alias. */
7127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7135 if { (eval echo configure
:7136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7137 eval "ac_cv_func_$ac_func=yes"
7139 echo "configure: failed program was:" >&5
7140 cat conftest.
$ac_ext >&5
7142 eval "ac_cv_func_$ac_func=no"
7147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7148 echo "$ac_t""yes" 1>&6
7149 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7150 cat >> confdefs.h
<<EOF
7151 #define $ac_tr_func 1
7155 echo "$ac_t""no" 1>&6
7159 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7160 echo "configure:7161: checking for getspnam in -lsec" >&5
7161 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7163 echo $ac_n "(cached) $ac_c" 1>&6
7165 ac_save_LIBS
="$LIBS"
7167 cat > conftest.
$ac_ext <<EOF
7168 #line 7169 "configure"
7169 #include "confdefs.h"
7170 /* Override any gcc2 internal prototype to avoid an error. */
7171 /* We use char because int might match the return type of a gcc2
7172 builtin and then its argument prototype would still apply. */
7179 if { (eval echo configure
:7180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7181 eval "ac_cv_lib_$ac_lib_var=yes"
7183 echo "configure: failed program was:" >&5
7184 cat conftest.
$ac_ext >&5
7186 eval "ac_cv_lib_$ac_lib_var=no"
7189 LIBS
="$ac_save_LIBS"
7192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7193 echo "$ac_t""yes" 1>&6
7194 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7195 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7196 cat >> confdefs.h
<<EOF
7197 #define $ac_tr_lib 1
7203 echo "$ac_t""no" 1>&6
7206 for ac_func
in getspnam
7208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7209 echo "configure:7210: checking for $ac_func" >&5
7210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7211 echo $ac_n "(cached) $ac_c" 1>&6
7213 cat > conftest.
$ac_ext <<EOF
7214 #line 7215 "configure"
7215 #include "confdefs.h"
7216 /* System header to define __stub macros and hopefully few prototypes,
7217 which can conflict with char $ac_func(); below. */
7219 /* Override any gcc2 internal prototype to avoid an error. */
7220 /* We use char because int might match the return type of a gcc2
7221 builtin and then its argument prototype would still apply. */
7226 /* The GNU C library defines this for functions which it implements
7227 to always fail with ENOSYS. Some functions are actually named
7228 something starting with __ and the normal name is an alias. */
7229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7237 if { (eval echo configure
:7238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7239 eval "ac_cv_func_$ac_func=yes"
7241 echo "configure: failed program was:" >&5
7242 cat conftest.
$ac_ext >&5
7244 eval "ac_cv_func_$ac_func=no"
7249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7250 echo "$ac_t""yes" 1>&6
7251 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7252 cat >> confdefs.h
<<EOF
7253 #define $ac_tr_func 1
7257 echo "$ac_t""no" 1>&6
7266 *-lsecurity*) for ac_func
in bigcrypt
7268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7269 echo "configure:7270: checking for $ac_func" >&5
7270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7271 echo $ac_n "(cached) $ac_c" 1>&6
7273 cat > conftest.
$ac_ext <<EOF
7274 #line 7275 "configure"
7275 #include "confdefs.h"
7276 /* System header to define __stub macros and hopefully few prototypes,
7277 which can conflict with char $ac_func(); below. */
7279 /* Override any gcc2 internal prototype to avoid an error. */
7280 /* We use char because int might match the return type of a gcc2
7281 builtin and then its argument prototype would still apply. */
7286 /* The GNU C library defines this for functions which it implements
7287 to always fail with ENOSYS. Some functions are actually named
7288 something starting with __ and the normal name is an alias. */
7289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7297 if { (eval echo configure
:7298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7299 eval "ac_cv_func_$ac_func=yes"
7301 echo "configure: failed program was:" >&5
7302 cat conftest.
$ac_ext >&5
7304 eval "ac_cv_func_$ac_func=no"
7309 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7310 echo "$ac_t""yes" 1>&6
7311 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7312 cat >> confdefs.h
<<EOF
7313 #define $ac_tr_func 1
7317 echo "$ac_t""no" 1>&6
7321 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7322 echo "configure:7323: checking for bigcrypt in -lsecurity" >&5
7323 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7325 echo $ac_n "(cached) $ac_c" 1>&6
7327 ac_save_LIBS
="$LIBS"
7328 LIBS
="-lsecurity $LIBS"
7329 cat > conftest.
$ac_ext <<EOF
7330 #line 7331 "configure"
7331 #include "confdefs.h"
7332 /* Override any gcc2 internal prototype to avoid an error. */
7333 /* We use char because int might match the return type of a gcc2
7334 builtin and then its argument prototype would still apply. */
7341 if { (eval echo configure
:7342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7343 eval "ac_cv_lib_$ac_lib_var=yes"
7345 echo "configure: failed program was:" >&5
7346 cat conftest.
$ac_ext >&5
7348 eval "ac_cv_lib_$ac_lib_var=no"
7351 LIBS
="$ac_save_LIBS"
7354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7355 echo "$ac_t""yes" 1>&6
7356 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7357 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7358 cat >> confdefs.h
<<EOF
7359 #define $ac_tr_lib 1
7362 LIBS
="-lsecurity $LIBS"
7365 echo "$ac_t""no" 1>&6
7368 for ac_func
in bigcrypt
7370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7371 echo "configure:7372: checking for $ac_func" >&5
7372 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7373 echo $ac_n "(cached) $ac_c" 1>&6
7375 cat > conftest.
$ac_ext <<EOF
7376 #line 7377 "configure"
7377 #include "confdefs.h"
7378 /* System header to define __stub macros and hopefully few prototypes,
7379 which can conflict with char $ac_func(); below. */
7381 /* Override any gcc2 internal prototype to avoid an error. */
7382 /* We use char because int might match the return type of a gcc2
7383 builtin and then its argument prototype would still apply. */
7388 /* The GNU C library defines this for functions which it implements
7389 to always fail with ENOSYS. Some functions are actually named
7390 something starting with __ and the normal name is an alias. */
7391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7399 if { (eval echo configure
:7400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7401 eval "ac_cv_func_$ac_func=yes"
7403 echo "configure: failed program was:" >&5
7404 cat conftest.
$ac_ext >&5
7406 eval "ac_cv_func_$ac_func=no"
7411 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7412 echo "$ac_t""yes" 1>&6
7413 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7414 cat >> confdefs.h
<<EOF
7415 #define $ac_tr_func 1
7419 echo "$ac_t""no" 1>&6
7427 *-lsec*) for ac_func
in bigcrypt
7429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7430 echo "configure:7431: checking for $ac_func" >&5
7431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7432 echo $ac_n "(cached) $ac_c" 1>&6
7434 cat > conftest.
$ac_ext <<EOF
7435 #line 7436 "configure"
7436 #include "confdefs.h"
7437 /* System header to define __stub macros and hopefully few prototypes,
7438 which can conflict with char $ac_func(); below. */
7440 /* Override any gcc2 internal prototype to avoid an error. */
7441 /* We use char because int might match the return type of a gcc2
7442 builtin and then its argument prototype would still apply. */
7447 /* The GNU C library defines this for functions which it implements
7448 to always fail with ENOSYS. Some functions are actually named
7449 something starting with __ and the normal name is an alias. */
7450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7458 if { (eval echo configure
:7459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7460 eval "ac_cv_func_$ac_func=yes"
7462 echo "configure: failed program was:" >&5
7463 cat conftest.
$ac_ext >&5
7465 eval "ac_cv_func_$ac_func=no"
7470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7471 echo "$ac_t""yes" 1>&6
7472 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7473 cat >> confdefs.h
<<EOF
7474 #define $ac_tr_func 1
7478 echo "$ac_t""no" 1>&6
7482 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7483 echo "configure:7484: checking for bigcrypt in -lsec" >&5
7484 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7485 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7486 echo $ac_n "(cached) $ac_c" 1>&6
7488 ac_save_LIBS
="$LIBS"
7490 cat > conftest.
$ac_ext <<EOF
7491 #line 7492 "configure"
7492 #include "confdefs.h"
7493 /* Override any gcc2 internal prototype to avoid an error. */
7494 /* We use char because int might match the return type of a gcc2
7495 builtin and then its argument prototype would still apply. */
7502 if { (eval echo configure
:7503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7504 eval "ac_cv_lib_$ac_lib_var=yes"
7506 echo "configure: failed program was:" >&5
7507 cat conftest.
$ac_ext >&5
7509 eval "ac_cv_lib_$ac_lib_var=no"
7512 LIBS
="$ac_save_LIBS"
7515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7516 echo "$ac_t""yes" 1>&6
7517 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7518 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7519 cat >> confdefs.h
<<EOF
7520 #define $ac_tr_lib 1
7526 echo "$ac_t""no" 1>&6
7529 for ac_func
in bigcrypt
7531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7532 echo "configure:7533: checking for $ac_func" >&5
7533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7534 echo $ac_n "(cached) $ac_c" 1>&6
7536 cat > conftest.
$ac_ext <<EOF
7537 #line 7538 "configure"
7538 #include "confdefs.h"
7539 /* System header to define __stub macros and hopefully few prototypes,
7540 which can conflict with char $ac_func(); below. */
7542 /* Override any gcc2 internal prototype to avoid an error. */
7543 /* We use char because int might match the return type of a gcc2
7544 builtin and then its argument prototype would still apply. */
7549 /* The GNU C library defines this for functions which it implements
7550 to always fail with ENOSYS. Some functions are actually named
7551 something starting with __ and the normal name is an alias. */
7552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7560 if { (eval echo configure
:7561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7562 eval "ac_cv_func_$ac_func=yes"
7564 echo "configure: failed program was:" >&5
7565 cat conftest.
$ac_ext >&5
7567 eval "ac_cv_func_$ac_func=no"
7572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7573 echo "$ac_t""yes" 1>&6
7574 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7575 cat >> confdefs.h
<<EOF
7576 #define $ac_tr_func 1
7580 echo "$ac_t""no" 1>&6
7589 *-lsecurity*) for ac_func
in getprpwnam
7591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7592 echo "configure:7593: checking for $ac_func" >&5
7593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7594 echo $ac_n "(cached) $ac_c" 1>&6
7596 cat > conftest.
$ac_ext <<EOF
7597 #line 7598 "configure"
7598 #include "confdefs.h"
7599 /* System header to define __stub macros and hopefully few prototypes,
7600 which can conflict with char $ac_func(); below. */
7602 /* Override any gcc2 internal prototype to avoid an error. */
7603 /* We use char because int might match the return type of a gcc2
7604 builtin and then its argument prototype would still apply. */
7609 /* The GNU C library defines this for functions which it implements
7610 to always fail with ENOSYS. Some functions are actually named
7611 something starting with __ and the normal name is an alias. */
7612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7620 if { (eval echo configure
:7621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7622 eval "ac_cv_func_$ac_func=yes"
7624 echo "configure: failed program was:" >&5
7625 cat conftest.
$ac_ext >&5
7627 eval "ac_cv_func_$ac_func=no"
7632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7633 echo "$ac_t""yes" 1>&6
7634 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7635 cat >> confdefs.h
<<EOF
7636 #define $ac_tr_func 1
7640 echo "$ac_t""no" 1>&6
7644 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7645 echo "configure:7646: checking for getprpwnam in -lsecurity" >&5
7646 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7648 echo $ac_n "(cached) $ac_c" 1>&6
7650 ac_save_LIBS
="$LIBS"
7651 LIBS
="-lsecurity $LIBS"
7652 cat > conftest.
$ac_ext <<EOF
7653 #line 7654 "configure"
7654 #include "confdefs.h"
7655 /* Override any gcc2 internal prototype to avoid an error. */
7656 /* We use char because int might match the return type of a gcc2
7657 builtin and then its argument prototype would still apply. */
7664 if { (eval echo configure
:7665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7666 eval "ac_cv_lib_$ac_lib_var=yes"
7668 echo "configure: failed program was:" >&5
7669 cat conftest.
$ac_ext >&5
7671 eval "ac_cv_lib_$ac_lib_var=no"
7674 LIBS
="$ac_save_LIBS"
7677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7678 echo "$ac_t""yes" 1>&6
7679 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7680 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7681 cat >> confdefs.h
<<EOF
7682 #define $ac_tr_lib 1
7685 LIBS
="-lsecurity $LIBS"
7688 echo "$ac_t""no" 1>&6
7691 for ac_func
in getprpwnam
7693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7694 echo "configure:7695: checking for $ac_func" >&5
7695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7696 echo $ac_n "(cached) $ac_c" 1>&6
7698 cat > conftest.
$ac_ext <<EOF
7699 #line 7700 "configure"
7700 #include "confdefs.h"
7701 /* System header to define __stub macros and hopefully few prototypes,
7702 which can conflict with char $ac_func(); below. */
7704 /* Override any gcc2 internal prototype to avoid an error. */
7705 /* We use char because int might match the return type of a gcc2
7706 builtin and then its argument prototype would still apply. */
7711 /* The GNU C library defines this for functions which it implements
7712 to always fail with ENOSYS. Some functions are actually named
7713 something starting with __ and the normal name is an alias. */
7714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7722 if { (eval echo configure
:7723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7724 eval "ac_cv_func_$ac_func=yes"
7726 echo "configure: failed program was:" >&5
7727 cat conftest.
$ac_ext >&5
7729 eval "ac_cv_func_$ac_func=no"
7734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7735 echo "$ac_t""yes" 1>&6
7736 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7737 cat >> confdefs.h
<<EOF
7738 #define $ac_tr_func 1
7742 echo "$ac_t""no" 1>&6
7750 *-lsec*) for ac_func
in getprpwnam
7752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7753 echo "configure:7754: checking for $ac_func" >&5
7754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7755 echo $ac_n "(cached) $ac_c" 1>&6
7757 cat > conftest.
$ac_ext <<EOF
7758 #line 7759 "configure"
7759 #include "confdefs.h"
7760 /* System header to define __stub macros and hopefully few prototypes,
7761 which can conflict with char $ac_func(); below. */
7763 /* Override any gcc2 internal prototype to avoid an error. */
7764 /* We use char because int might match the return type of a gcc2
7765 builtin and then its argument prototype would still apply. */
7770 /* The GNU C library defines this for functions which it implements
7771 to always fail with ENOSYS. Some functions are actually named
7772 something starting with __ and the normal name is an alias. */
7773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7781 if { (eval echo configure
:7782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7783 eval "ac_cv_func_$ac_func=yes"
7785 echo "configure: failed program was:" >&5
7786 cat conftest.
$ac_ext >&5
7788 eval "ac_cv_func_$ac_func=no"
7793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7794 echo "$ac_t""yes" 1>&6
7795 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7796 cat >> confdefs.h
<<EOF
7797 #define $ac_tr_func 1
7801 echo "$ac_t""no" 1>&6
7805 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
7806 echo "configure:7807: checking for getprpwnam in -lsec" >&5
7807 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
7808 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7809 echo $ac_n "(cached) $ac_c" 1>&6
7811 ac_save_LIBS
="$LIBS"
7813 cat > conftest.
$ac_ext <<EOF
7814 #line 7815 "configure"
7815 #include "confdefs.h"
7816 /* Override any gcc2 internal prototype to avoid an error. */
7817 /* We use char because int might match the return type of a gcc2
7818 builtin and then its argument prototype would still apply. */
7825 if { (eval echo configure
:7826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7827 eval "ac_cv_lib_$ac_lib_var=yes"
7829 echo "configure: failed program was:" >&5
7830 cat conftest.
$ac_ext >&5
7832 eval "ac_cv_lib_$ac_lib_var=no"
7835 LIBS
="$ac_save_LIBS"
7838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7839 echo "$ac_t""yes" 1>&6
7840 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7841 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7842 cat >> confdefs.h
<<EOF
7843 #define $ac_tr_lib 1
7849 echo "$ac_t""no" 1>&6
7852 for ac_func
in getprpwnam
7854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7855 echo "configure:7856: checking for $ac_func" >&5
7856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7857 echo $ac_n "(cached) $ac_c" 1>&6
7859 cat > conftest.
$ac_ext <<EOF
7860 #line 7861 "configure"
7861 #include "confdefs.h"
7862 /* System header to define __stub macros and hopefully few prototypes,
7863 which can conflict with char $ac_func(); below. */
7865 /* Override any gcc2 internal prototype to avoid an error. */
7866 /* We use char because int might match the return type of a gcc2
7867 builtin and then its argument prototype would still apply. */
7872 /* The GNU C library defines this for functions which it implements
7873 to always fail with ENOSYS. Some functions are actually named
7874 something starting with __ and the normal name is an alias. */
7875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7883 if { (eval echo configure
:7884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7885 eval "ac_cv_func_$ac_func=yes"
7887 echo "configure: failed program was:" >&5
7888 cat conftest.
$ac_ext >&5
7890 eval "ac_cv_func_$ac_func=no"
7895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7896 echo "$ac_t""yes" 1>&6
7897 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7898 cat >> confdefs.h
<<EOF
7899 #define $ac_tr_func 1
7903 echo "$ac_t""no" 1>&6
7911 # this bit needs to be modified for each OS that is suported by
7912 # smbwrapper. You need to specify how to created a shared library and
7913 # how to compile C code to produce PIC object files
7915 # these are the defaults, good for lots of systems
7921 # and these are for particular systems
7923 *linux
*) cat >> confdefs.h
<<\EOF
7927 *solaris
*) cat >> confdefs.h
<<\EOF
7933 *sunos
*) cat >> confdefs.h
<<\EOF
7939 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
7941 *irix
*) cat >> confdefs.h
<<\EOF
7946 *irix6
*) cat >> confdefs.h
<<\EOF
7952 ATTEMPT_WRAP32_BUILD
=yes
7954 *aix
*) cat >> confdefs.h
<<\EOF
7958 *hpux
*) cat >> confdefs.h
<<\EOF
7963 # Use special PIC flags for the native HP-UX compiler.
7964 if test $ac_cv_prog_cc_Ae = yes; then
7969 *qnx
*) cat >> confdefs.h
<<\EOF
7973 *osf
*) cat >> confdefs.h
<<\EOF
7977 *sco
*) cat >> confdefs.h
<<\EOF
7981 *next2
*) cat >> confdefs.h
<<\EOF
7985 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
7986 set dummy
groff; ac_word
=$2
7987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7988 echo "configure:7989: checking for $ac_word" >&5
7989 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
7990 echo $ac_n "(cached) $ac_c" 1>&6
7992 if test -n "$ROFF"; then
7993 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
7995 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7997 for ac_dir
in $ac_dummy; do
7998 test -z "$ac_dir" && ac_dir
=.
7999 if test -f $ac_dir/$ac_word; then
8000 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8007 ROFF
="$ac_cv_prog_ROFF"
8008 if test -n "$ROFF"; then
8009 echo "$ac_t""$ROFF" 1>&6
8011 echo "$ac_t""no" 1>&6
8016 *-univel-*) if test "$GCC" != yes ; then
8017 cat >> confdefs.h
<<\EOF
8018 #define HAVE_MEMSET 1
8024 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8025 #define RELIANTUNIX 1
8031 if test "$GCC" != yes ; then
8032 cat >> confdefs.h
<<\EOF
8033 #define HAVE_MEMSET 1
8041 # try to work out how to produce pic code with this compiler
8042 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8043 echo "configure:8044: checking whether ${CC-cc} accepts -fpic" >&5
8044 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8045 echo $ac_n "(cached) $ac_c" 1>&6
8047 echo 'void f(){}' > conftest.c
8048 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8049 ac_cv_prog_cc_fpic
=yes
8051 ac_cv_prog_cc_fpic
=no
8057 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8058 if test $ac_cv_prog_cc_fpic = yes; then
8061 if test x
$PICFLAG = x
; then
8062 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8063 echo "configure:8064: checking whether ${CC-cc} accepts -Kpic" >&5
8064 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8065 echo $ac_n "(cached) $ac_c" 1>&6
8067 echo 'void f(){}' > conftest.c
8068 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8069 ac_cv_prog_cc_Kpic
=yes
8071 ac_cv_prog_cc_Kpic
=no
8077 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8078 if test $ac_cv_prog_cc_Kpic = yes; then
8082 if test x
$PICFLAG = x
; then
8083 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8084 echo "configure:8085: checking whether ${CC-cc} accepts -KPIC" >&5
8085 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8086 echo $ac_n "(cached) $ac_c" 1>&6
8088 echo 'void f(){}' > conftest.c
8089 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8090 ac_cv_prog_cc_KPIC
=yes
8092 ac_cv_prog_cc_KPIC
=no
8098 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8099 if test $ac_cv_prog_cc_KPIC = yes; then
8106 echo $ac_n "checking for long long""... $ac_c" 1>&6
8107 echo "configure:8108: checking for long long" >&5
8108 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8109 echo $ac_n "(cached) $ac_c" 1>&6
8112 if test "$cross_compiling" = yes; then
8113 samba_cv_have_longlong
=cross
8115 cat > conftest.
$ac_ext <<EOF
8116 #line 8117 "configure"
8117 #include "confdefs.h"
8119 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8121 if { (eval echo configure
:8122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8123 samba_cv_have_longlong
=yes
8125 echo "configure: failed program was:" >&5
8126 cat conftest.
$ac_ext >&5
8128 samba_cv_have_longlong
=no
8135 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8136 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8137 cat >> confdefs.h
<<\EOF
8138 #define HAVE_LONGLONG 1
8144 # Check if the compiler supports the LL prefix on long long integers.
8147 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8148 echo "configure:8149: checking for LL suffix on long long integers" >&5
8149 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8150 echo $ac_n "(cached) $ac_c" 1>&6
8153 cat > conftest.
$ac_ext <<EOF
8154 #line 8155 "configure"
8155 #include "confdefs.h"
8158 long long i = 0x8000000000LL
8161 if { (eval echo configure
:8162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8163 samba_cv_compiler_supports_ll
=yes
8165 echo "configure: failed program was:" >&5
8166 cat conftest.
$ac_ext >&5
8168 samba_cv_compiler_supports_ll
=no
8173 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8174 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8175 cat >> confdefs.h
<<\EOF
8176 #define COMPILER_SUPPORTS_LL 1
8182 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8183 echo "configure:8184: checking for 64 bit off_t" >&5
8184 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8185 echo $ac_n "(cached) $ac_c" 1>&6
8188 if test "$cross_compiling" = yes; then
8189 samba_cv_SIZEOF_OFF_T
=cross
8191 cat > conftest.
$ac_ext <<EOF
8192 #line 8193 "configure"
8193 #include "confdefs.h"
8195 #include <sys/stat.h>
8196 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8198 if { (eval echo configure
:8199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8200 samba_cv_SIZEOF_OFF_T
=yes
8202 echo "configure: failed program was:" >&5
8203 cat conftest.
$ac_ext >&5
8205 samba_cv_SIZEOF_OFF_T
=no
8212 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8213 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8214 cat >> confdefs.h
<<\EOF
8215 #define SIZEOF_OFF_T 8
8220 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8221 echo "configure:8222: checking for off64_t" >&5
8222 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8223 echo $ac_n "(cached) $ac_c" 1>&6
8226 if test "$cross_compiling" = yes; then
8227 samba_cv_HAVE_OFF64_T
=cross
8229 cat > conftest.
$ac_ext <<EOF
8230 #line 8231 "configure"
8231 #include "confdefs.h"
8233 #if defined(HAVE_UNISTD_H)
8237 #include <sys/stat.h>
8238 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8240 if { (eval echo configure
:8241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8242 samba_cv_HAVE_OFF64_T
=yes
8244 echo "configure: failed program was:" >&5
8245 cat conftest.
$ac_ext >&5
8247 samba_cv_HAVE_OFF64_T
=no
8254 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8255 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8256 cat >> confdefs.h
<<\EOF
8257 #define HAVE_OFF64_T 1
8262 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8263 echo "configure:8264: checking for 64 bit ino_t" >&5
8264 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8265 echo $ac_n "(cached) $ac_c" 1>&6
8268 if test "$cross_compiling" = yes; then
8269 samba_cv_SIZEOF_INO_T
=cross
8271 cat > conftest.
$ac_ext <<EOF
8272 #line 8273 "configure"
8273 #include "confdefs.h"
8275 #include <sys/stat.h>
8276 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8278 if { (eval echo configure
:8279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8280 samba_cv_SIZEOF_INO_T
=yes
8282 echo "configure: failed program was:" >&5
8283 cat conftest.
$ac_ext >&5
8285 samba_cv_SIZEOF_INO_T
=no
8292 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8293 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8294 cat >> confdefs.h
<<\EOF
8295 #define SIZEOF_INO_T 8
8300 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8301 echo "configure:8302: checking for ino64_t" >&5
8302 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8303 echo $ac_n "(cached) $ac_c" 1>&6
8306 if test "$cross_compiling" = yes; then
8307 samba_cv_HAVE_INO64_T
=cross
8309 cat > conftest.
$ac_ext <<EOF
8310 #line 8311 "configure"
8311 #include "confdefs.h"
8313 #if defined(HAVE_UNISTD_H)
8317 #include <sys/stat.h>
8318 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8320 if { (eval echo configure
:8321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8322 samba_cv_HAVE_INO64_T
=yes
8324 echo "configure: failed program was:" >&5
8325 cat conftest.
$ac_ext >&5
8327 samba_cv_HAVE_INO64_T
=no
8334 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8335 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8336 cat >> confdefs.h
<<\EOF
8337 #define HAVE_INO64_T 1
8342 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8343 echo "configure:8344: checking for struct dirent64" >&5
8344 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8345 echo $ac_n "(cached) $ac_c" 1>&6
8348 cat > conftest.
$ac_ext <<EOF
8349 #line 8350 "configure"
8350 #include "confdefs.h"
8352 #if defined(HAVE_UNISTD_H)
8355 #include <sys/types.h>
8361 if { (eval echo configure
:8362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8363 samba_cv_HAVE_STRUCT_DIRENT64
=yes
8365 echo "configure: failed program was:" >&5
8366 cat conftest.
$ac_ext >&5
8368 samba_cv_HAVE_STRUCT_DIRENT64
=no
8373 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8374 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
8375 cat >> confdefs.h
<<\EOF
8376 #define HAVE_STRUCT_DIRENT64 1
8381 echo $ac_n "checking for union semun""... $ac_c" 1>&6
8382 echo "configure:8383: checking for union semun" >&5
8383 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
8384 echo $ac_n "(cached) $ac_c" 1>&6
8387 if test "$cross_compiling" = yes; then
8388 samba_cv_HAVE_UNION_SEMUN
=cross
8390 cat > conftest.
$ac_ext <<EOF
8391 #line 8392 "configure"
8392 #include "confdefs.h"
8394 #include <sys/types.h>
8395 #include <sys/ipc.h>
8396 #include <sys/sem.h>
8397 main() { union semun ss; exit(0); }
8399 if { (eval echo configure
:8400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8401 samba_cv_HAVE_UNION_SEMUN
=yes
8403 echo "configure: failed program was:" >&5
8404 cat conftest.
$ac_ext >&5
8406 samba_cv_HAVE_UNION_SEMUN
=no
8413 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
8414 if test x
"$samba_cv_HAVE_UNION_SEMUN" = x
"yes"; then
8415 cat >> confdefs.h
<<\EOF
8416 #define HAVE_UNION_SEMUN 1
8421 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8422 echo "configure:8423: checking for unsigned char" >&5
8423 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8424 echo $ac_n "(cached) $ac_c" 1>&6
8427 if test "$cross_compiling" = yes; then
8428 samba_cv_HAVE_UNSIGNED_CHAR
=cross
8430 cat > conftest.
$ac_ext <<EOF
8431 #line 8432 "configure"
8432 #include "confdefs.h"
8434 main() { char c; c=250; exit((c > 0)?0:1); }
8436 if { (eval echo configure
:8437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8438 samba_cv_HAVE_UNSIGNED_CHAR
=yes
8440 echo "configure: failed program was:" >&5
8441 cat conftest.
$ac_ext >&5
8443 samba_cv_HAVE_UNSIGNED_CHAR
=no
8450 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8451 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
8452 cat >> confdefs.h
<<\EOF
8453 #define HAVE_UNSIGNED_CHAR 1
8458 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8459 echo "configure:8460: checking for sin_len in sock" >&5
8460 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8461 echo $ac_n "(cached) $ac_c" 1>&6
8464 cat > conftest.
$ac_ext <<EOF
8465 #line 8466 "configure"
8466 #include "confdefs.h"
8467 #include <sys/types.h>
8468 #include <sys/socket.h>
8469 #include <netinet/in.h>
8471 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8474 if { (eval echo configure
:8475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8476 samba_cv_HAVE_SOCK_SIN_LEN
=yes
8478 echo "configure: failed program was:" >&5
8479 cat conftest.
$ac_ext >&5
8481 samba_cv_HAVE_SOCK_SIN_LEN
=no
8486 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8487 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
8488 cat >> confdefs.h
<<\EOF
8489 #define HAVE_SOCK_SIN_LEN 1
8494 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8495 echo "configure:8496: checking whether seekdir returns void" >&5
8496 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8497 echo $ac_n "(cached) $ac_c" 1>&6
8500 cat > conftest.
$ac_ext <<EOF
8501 #line 8502 "configure"
8502 #include "confdefs.h"
8503 #include <sys/types.h>
8505 void seekdir(DIR *d, long loc) { return; }
8510 if { (eval echo configure
:8511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8512 samba_cv_SEEKDIR_RETURNS_VOID
=yes
8514 echo "configure: failed program was:" >&5
8515 cat conftest.
$ac_ext >&5
8517 samba_cv_SEEKDIR_RETURNS_VOID
=no
8522 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8523 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
8524 cat >> confdefs.h
<<\EOF
8525 #define SEEKDIR_RETURNS_VOID 1
8530 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8531 echo "configure:8532: checking for __FILE__ macro" >&5
8532 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8533 echo $ac_n "(cached) $ac_c" 1>&6
8536 cat > conftest.
$ac_ext <<EOF
8537 #line 8538 "configure"
8538 #include "confdefs.h"
8541 printf("%s\n", __FILE__);
8544 if { (eval echo configure
:8545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8546 samba_cv_HAVE_FILE_MACRO
=yes
8548 echo "configure: failed program was:" >&5
8549 cat conftest.
$ac_ext >&5
8551 samba_cv_HAVE_FILE_MACRO
=no
8556 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8557 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
8558 cat >> confdefs.h
<<\EOF
8559 #define HAVE_FILE_MACRO 1
8564 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8565 echo "configure:8566: checking for __FUNCTION__ macro" >&5
8566 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8567 echo $ac_n "(cached) $ac_c" 1>&6
8570 cat > conftest.
$ac_ext <<EOF
8571 #line 8572 "configure"
8572 #include "confdefs.h"
8575 printf("%s\n", __FUNCTION__);
8578 if { (eval echo configure
:8579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8580 samba_cv_HAVE_FUNCTION_MACRO
=yes
8582 echo "configure: failed program was:" >&5
8583 cat conftest.
$ac_ext >&5
8585 samba_cv_HAVE_FUNCTION_MACRO
=no
8590 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8591 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
8592 cat >> confdefs.h
<<\EOF
8593 #define HAVE_FUNCTION_MACRO 1
8598 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8599 echo "configure:8600: checking if gettimeofday takes tz argument" >&5
8600 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8601 echo $ac_n "(cached) $ac_c" 1>&6
8604 if test "$cross_compiling" = yes; then
8605 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
8607 cat > conftest.
$ac_ext <<EOF
8608 #line 8609 "configure"
8609 #include "confdefs.h"
8611 #include <sys/time.h>
8613 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8615 if { (eval echo configure
:8616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8617 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
8619 echo "configure: failed program was:" >&5
8620 cat conftest.
$ac_ext >&5
8622 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
8629 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8630 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
8631 cat >> confdefs.h
<<\EOF
8632 #define HAVE_GETTIMEOFDAY_TZ 1
8638 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8639 echo "configure:8640: checking for broken readdir" >&5
8640 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8641 echo $ac_n "(cached) $ac_c" 1>&6
8644 if test "$cross_compiling" = yes; then
8645 samba_cv_HAVE_BROKEN_READDIR
=cross
8647 cat > conftest.
$ac_ext <<EOF
8648 #line 8649 "configure"
8649 #include "confdefs.h"
8650 #include <sys/types.h>
8652 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8653 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8654 di->d_name[0] == 0) exit(0); exit(1);}
8656 if { (eval echo configure
:8657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8658 samba_cv_HAVE_BROKEN_READDIR
=yes
8660 echo "configure: failed program was:" >&5
8661 cat conftest.
$ac_ext >&5
8663 samba_cv_HAVE_BROKEN_READDIR
=no
8670 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
8671 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
8672 cat >> confdefs.h
<<\EOF
8673 #define HAVE_BROKEN_READDIR 1
8678 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
8679 echo "configure:8680: checking for utimbuf" >&5
8680 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
8681 echo $ac_n "(cached) $ac_c" 1>&6
8684 cat > conftest.
$ac_ext <<EOF
8685 #line 8686 "configure"
8686 #include "confdefs.h"
8687 #include <sys/types.h>
8690 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
8693 if { (eval echo configure
:8694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8695 samba_cv_HAVE_UTIMBUF
=yes
8697 echo "configure: failed program was:" >&5
8698 cat conftest.
$ac_ext >&5
8700 samba_cv_HAVE_UTIMBUF
=no
8705 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
8706 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
8707 cat >> confdefs.h
<<\EOF
8708 #define HAVE_UTIMBUF 1
8713 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
8714 echo "configure:8715: checking for ut_syslen in utmpx" >&5
8715 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
8716 echo $ac_n "(cached) $ac_c" 1>&6
8719 cat > conftest.
$ac_ext <<EOF
8720 #line 8721 "configure"
8721 #include "confdefs.h"
8724 struct utmpx ux; ux.ut_syslen = 0;
8727 if { (eval echo configure
:8728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8729 samba_cv_HAVE_UX_UT_SYSLEN
=yes
8731 echo "configure: failed program was:" >&5
8732 cat conftest.
$ac_ext >&5
8734 samba_cv_HAVE_UX_UT_SYSLEN
=no
8739 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
8740 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
8741 cat >> confdefs.h
<<\EOF
8742 #define HAVE_UX_UT_SYSLEN 1
8747 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
8748 echo "configure:8749: checking for kernel oplock type definitions" >&5
8749 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
8750 echo $ac_n "(cached) $ac_c" 1>&6
8753 cat > conftest.
$ac_ext <<EOF
8754 #line 8755 "configure"
8755 #include "confdefs.h"
8756 #include <sys/types.h>
8759 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
8762 if { (eval echo configure
:8763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8764 samba_cv_HAVE_KERNEL_OPLOCKS
=yes
8766 echo "configure: failed program was:" >&5
8767 cat conftest.
$ac_ext >&5
8769 samba_cv_HAVE_KERNEL_OPLOCKS
=no
8774 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
8775 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS" = x
"yes"; then
8776 cat >> confdefs.h
<<\EOF
8777 #define HAVE_KERNEL_OPLOCKS 1
8782 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
8783 echo "configure:8784: checking for irix specific capabilities" >&5
8784 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
8785 echo $ac_n "(cached) $ac_c" 1>&6
8788 if test "$cross_compiling" = yes; then
8789 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
8791 cat > conftest.
$ac_ext <<EOF
8792 #line 8793 "configure"
8793 #include "confdefs.h"
8794 #include <sys/types.h>
8795 #include <sys/capability.h>
8798 if ((cap = cap_get_proc()) == NULL)
8800 cap->cap_effective |= CAP_NETWORK_MGT;
8801 cap->cap_inheritable |= CAP_NETWORK_MGT;
8807 if { (eval echo configure
:8808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8809 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
8811 echo "configure: failed program was:" >&5
8812 cat conftest.
$ac_ext >&5
8814 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
8821 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
8822 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
8823 cat >> confdefs.h
<<\EOF
8824 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
8830 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
8831 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
8834 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8835 echo "configure:8836: checking for int16 typedef included by rpc/rpc.h" >&5
8836 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
8837 echo $ac_n "(cached) $ac_c" 1>&6
8840 cat > conftest.
$ac_ext <<EOF
8841 #line 8842 "configure"
8842 #include "confdefs.h"
8843 #include <sys/types.h>
8844 #if defined(HAVE_RPC_RPC_H)
8845 #include <rpc/rpc.h>
8851 if { (eval echo configure
:8852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8853 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
8855 echo "configure: failed program was:" >&5
8856 cat conftest.
$ac_ext >&5
8858 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
8863 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
8864 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
8865 cat >> confdefs.h
<<\EOF
8866 #define HAVE_INT16_FROM_RPC_RPC_H 1
8871 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8872 echo "configure:8873: checking for uint16 typedef included by rpc/rpc.h" >&5
8873 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
8874 echo $ac_n "(cached) $ac_c" 1>&6
8877 cat > conftest.
$ac_ext <<EOF
8878 #line 8879 "configure"
8879 #include "confdefs.h"
8880 #include <sys/types.h>
8881 #if defined(HAVE_RPC_RPC_H)
8882 #include <rpc/rpc.h>
8888 if { (eval echo configure
:8889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8890 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
8892 echo "configure: failed program was:" >&5
8893 cat conftest.
$ac_ext >&5
8895 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
8900 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
8901 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
8902 cat >> confdefs.h
<<\EOF
8903 #define HAVE_UINT16_FROM_RPC_RPC_H 1
8908 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8909 echo "configure:8910: checking for int32 typedef included by rpc/rpc.h" >&5
8910 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
8911 echo $ac_n "(cached) $ac_c" 1>&6
8914 cat > conftest.
$ac_ext <<EOF
8915 #line 8916 "configure"
8916 #include "confdefs.h"
8917 #include <sys/types.h>
8918 #if defined(HAVE_RPC_RPC_H)
8919 #include <rpc/rpc.h>
8925 if { (eval echo configure
:8926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8927 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
8929 echo "configure: failed program was:" >&5
8930 cat conftest.
$ac_ext >&5
8932 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
8937 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
8938 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
8939 cat >> confdefs.h
<<\EOF
8940 #define HAVE_INT32_FROM_RPC_RPC_H 1
8945 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8946 echo "configure:8947: checking for uint32 typedef included by rpc/rpc.h" >&5
8947 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
8948 echo $ac_n "(cached) $ac_c" 1>&6
8951 cat > conftest.
$ac_ext <<EOF
8952 #line 8953 "configure"
8953 #include "confdefs.h"
8954 #include <sys/types.h>
8955 #if defined(HAVE_RPC_RPC_H)
8956 #include <rpc/rpc.h>
8962 if { (eval echo configure
:8963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8964 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
8966 echo "configure: failed program was:" >&5
8967 cat conftest.
$ac_ext >&5
8969 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
8974 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
8975 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
8976 cat >> confdefs.h
<<\EOF
8977 #define HAVE_UINT32_FROM_RPC_RPC_H 1
8983 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
8984 echo "configure:8985: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
8985 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
8986 echo $ac_n "(cached) $ac_c" 1>&6
8989 cat > conftest.
$ac_ext <<EOF
8990 #line 8991 "configure"
8991 #include "confdefs.h"
8992 #include <sys/types.h>
8993 #ifdef HAVE_SYS_SECURITY_H
8994 #include <sys/security.h>
8996 #endif /* HAVE_SYS_SECURITY_H */
8997 #if defined(HAVE_RPC_RPC_H)
8998 #include <rpc/rpc.h>
9004 if { (eval echo configure
:9005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9006 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
9008 echo "configure: failed program was:" >&5
9009 cat conftest.
$ac_ext >&5
9011 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
9016 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9017 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
9018 cat >> confdefs.h
<<\EOF
9019 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9024 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9025 echo "configure:9026: checking for test routines" >&5
9026 if test "$cross_compiling" = yes; then
9027 echo "configure: warning: cannot run when cross-compiling" 1>&2
9029 cat > conftest.
$ac_ext <<EOF
9030 #line 9031 "configure"
9031 #include "confdefs.h"
9032 #include "${srcdir-.}/tests/trivial.c"
9034 if { (eval echo configure
:9035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9036 echo "$ac_t""yes" 1>&6
9038 echo "configure: failed program was:" >&5
9039 cat conftest.
$ac_ext >&5
9041 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9047 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9048 echo "configure:9049: checking for ftruncate extend" >&5
9049 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
9050 echo $ac_n "(cached) $ac_c" 1>&6
9053 if test "$cross_compiling" = yes; then
9054 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
9056 cat > conftest.
$ac_ext <<EOF
9057 #line 9058 "configure"
9058 #include "confdefs.h"
9059 #include "${srcdir-.}/tests/ftruncate.c"
9061 if { (eval echo configure
:9062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9063 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
9065 echo "configure: failed program was:" >&5
9066 cat conftest.
$ac_ext >&5
9068 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
9075 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
9076 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
9077 cat >> confdefs.h
<<\EOF
9078 #define HAVE_FTRUNCATE_EXTEND 1
9083 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
9084 echo "configure:9085: checking for broken getgroups" >&5
9085 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
9086 echo $ac_n "(cached) $ac_c" 1>&6
9089 if test "$cross_compiling" = yes; then
9090 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
9092 cat > conftest.
$ac_ext <<EOF
9093 #line 9094 "configure"
9094 #include "confdefs.h"
9095 #include "${srcdir-.}/tests/getgroups.c"
9097 if { (eval echo configure
:9098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9099 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
9101 echo "configure: failed program was:" >&5
9102 cat conftest.
$ac_ext >&5
9104 samba_cv_HAVE_BROKEN_GETGROUPS
=no
9111 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
9112 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
9113 cat >> confdefs.h
<<\EOF
9114 #define HAVE_BROKEN_GETGROUPS 1
9119 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
9120 echo "configure:9121: checking whether getpass should be replaced" >&5
9121 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
9122 echo $ac_n "(cached) $ac_c" 1>&6
9125 SAVE_CPPFLAGS
="$CPPFLAGS"
9126 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
9127 cat > conftest.
$ac_ext <<EOF
9128 #line 9129 "configure"
9129 #include "confdefs.h"
9131 #define REPLACE_GETPASS 1
9132 #define NO_CONFIG_H 1
9133 #define main dont_declare_main
9134 #include "${srcdir-.}/lib/getsmbpass.c"
9141 if { (eval echo configure
:9142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9143 samba_cv_REPLACE_GETPASS
=yes
9145 echo "configure: failed program was:" >&5
9146 cat conftest.
$ac_ext >&5
9148 samba_cv_REPLACE_GETPASS
=no
9151 CPPFLAGS
="$SAVE_CPPFLAGS"
9155 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
9156 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
9157 cat >> confdefs.h
<<\EOF
9158 #define REPLACE_GETPASS 1
9163 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
9164 echo "configure:9165: checking for working fnmatch" >&5
9165 if eval "test \"`echo '$''{'samba_cv_HAVE_FNMATCH'+set}'`\" = set"; then
9166 echo $ac_n "(cached) $ac_c" 1>&6
9169 if test "$cross_compiling" = yes; then
9170 samba_cv_HAVE_FNMATCH
=cross
9172 cat > conftest.
$ac_ext <<EOF
9173 #line 9174 "configure"
9174 #include "confdefs.h"
9175 #include <fnmatch.h>
9176 main() { exit(fnmatch("*.o", "x.o", FNM_PATHNAME) == 0? 0: 1); }
9178 if { (eval echo configure
:9179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9180 samba_cv_HAVE_FNMATCH
=yes
9182 echo "configure: failed program was:" >&5
9183 cat conftest.
$ac_ext >&5
9185 samba_cv_HAVE_FNMATCH
=no
9192 echo "$ac_t""$samba_cv_HAVE_FNMATCH" 1>&6
9193 if test x
"$samba_cv_HAVE_FNMATCH" = x
"yes"; then
9194 cat >> confdefs.h
<<\EOF
9195 #define HAVE_FNMATCH 1
9200 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
9201 echo "configure:9202: checking for broken inet_ntoa" >&5
9202 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
9203 echo $ac_n "(cached) $ac_c" 1>&6
9206 if test "$cross_compiling" = yes; then
9207 samba_cv_REPLACE_INET_NTOA
=cross
9209 cat > conftest.
$ac_ext <<EOF
9210 #line 9211 "configure"
9211 #include "confdefs.h"
9214 #include <sys/types.h>
9215 #include <netinet/in.h>
9216 #ifdef HAVE_ARPA_INET_H
9217 #include <arpa/inet.h>
9219 main() { struct in_addr ip; ip.s_addr = 0x12345678;
9220 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
9221 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
9224 if { (eval echo configure
:9225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9226 samba_cv_REPLACE_INET_NTOA
=yes
9228 echo "configure: failed program was:" >&5
9229 cat conftest.
$ac_ext >&5
9231 samba_cv_REPLACE_INET_NTOA
=no
9238 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
9239 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
9240 cat >> confdefs.h
<<\EOF
9241 #define REPLACE_INET_NTOA 1
9246 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
9247 echo "configure:9248: checking for sysconf(_SC_NGROUPS_MAX)" >&5
9248 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
9249 echo $ac_n "(cached) $ac_c" 1>&6
9252 if test "$cross_compiling" = yes; then
9253 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
9255 cat > conftest.
$ac_ext <<EOF
9256 #line 9257 "configure"
9257 #include "confdefs.h"
9259 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
9261 if { (eval echo configure
:9262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9263 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
9265 echo "configure: failed program was:" >&5
9266 cat conftest.
$ac_ext >&5
9268 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
9275 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
9276 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
9277 cat >> confdefs.h
<<\EOF
9278 #define SYSCONF_SC_NGROUPS_MAX 1
9283 echo $ac_n "checking for root""... $ac_c" 1>&6
9284 echo "configure:9285: checking for root" >&5
9285 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
9286 echo $ac_n "(cached) $ac_c" 1>&6
9289 if test "$cross_compiling" = yes; then
9290 samba_cv_HAVE_ROOT
=cross
9292 cat > conftest.
$ac_ext <<EOF
9293 #line 9294 "configure"
9294 #include "confdefs.h"
9295 main() { exit(getuid() != 0); }
9297 if { (eval echo configure
:9298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9299 samba_cv_HAVE_ROOT
=yes
9301 echo "configure: failed program was:" >&5
9302 cat conftest.
$ac_ext >&5
9304 samba_cv_HAVE_ROOT
=no
9311 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
9312 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
9313 cat >> confdefs.h
<<\EOF
9318 echo "configure: warning: running as non-root will disable some tests" 1>&2
9322 # look for a method of finding the list of network interfaces
9324 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
9325 echo "configure:9326: checking for iface AIX" >&5
9326 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
9327 echo $ac_n "(cached) $ac_c" 1>&6
9330 if test "$cross_compiling" = yes; then
9331 samba_cv_HAVE_IFACE_AIX
=cross
9333 cat > conftest.
$ac_ext <<EOF
9334 #line 9335 "configure"
9335 #include "confdefs.h"
9337 #define HAVE_IFACE_AIX 1
9338 #define AUTOCONF_TEST 1
9339 #include "confdefs.h"
9340 #include "${srcdir-.}/lib/interfaces.c"
9342 if { (eval echo configure
:9343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9344 samba_cv_HAVE_IFACE_AIX
=yes
9346 echo "configure: failed program was:" >&5
9347 cat conftest.
$ac_ext >&5
9349 samba_cv_HAVE_IFACE_AIX
=no
9356 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
9357 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
9358 iface
=yes;cat >> confdefs.h
<<\EOF
9359 #define HAVE_IFACE_AIX 1
9364 if test $iface = no
; then
9365 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
9366 echo "configure:9367: checking for iface ifconf" >&5
9367 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
9368 echo $ac_n "(cached) $ac_c" 1>&6
9371 if test "$cross_compiling" = yes; then
9372 samba_cv_HAVE_IFACE_IFCONF
=cross
9374 cat > conftest.
$ac_ext <<EOF
9375 #line 9376 "configure"
9376 #include "confdefs.h"
9378 #define HAVE_IFACE_IFCONF 1
9379 #define AUTOCONF_TEST 1
9380 #include "confdefs.h"
9381 #include "${srcdir-.}/lib/interfaces.c"
9383 if { (eval echo configure
:9384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9385 samba_cv_HAVE_IFACE_IFCONF
=yes
9387 echo "configure: failed program was:" >&5
9388 cat conftest.
$ac_ext >&5
9390 samba_cv_HAVE_IFACE_IFCONF
=no
9397 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
9398 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
9399 iface
=yes;cat >> confdefs.h
<<\EOF
9400 #define HAVE_IFACE_IFCONF 1
9406 if test $iface = no
; then
9407 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
9408 echo "configure:9409: checking for iface ifreq" >&5
9409 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
9410 echo $ac_n "(cached) $ac_c" 1>&6
9413 if test "$cross_compiling" = yes; then
9414 samba_cv_HAVE_IFACE_IFREQ
=cross
9416 cat > conftest.
$ac_ext <<EOF
9417 #line 9418 "configure"
9418 #include "confdefs.h"
9420 #define HAVE_IFACE_IFREQ 1
9421 #define AUTOCONF_TEST 1
9422 #include "confdefs.h"
9423 #include "${srcdir-.}/lib/interfaces.c"
9425 if { (eval echo configure
:9426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9427 samba_cv_HAVE_IFACE_IFREQ
=yes
9429 echo "configure: failed program was:" >&5
9430 cat conftest.
$ac_ext >&5
9432 samba_cv_HAVE_IFACE_IFREQ
=no
9439 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
9440 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
9441 iface
=yes;cat >> confdefs.h
<<\EOF
9442 #define HAVE_IFACE_IFREQ 1
9449 ################################################
9450 # look for a method of setting the effective uid
9452 if test $seteuid = no
; then
9453 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
9454 echo "configure:9455: checking for setresuid" >&5
9455 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
9456 echo $ac_n "(cached) $ac_c" 1>&6
9459 if test "$cross_compiling" = yes; then
9460 samba_cv_USE_SETRESUID
=cross
9462 cat > conftest.
$ac_ext <<EOF
9463 #line 9464 "configure"
9464 #include "confdefs.h"
9466 #define AUTOCONF_TEST 1
9467 #define USE_SETRESUID 1
9468 #include "confdefs.h"
9469 #include "${srcdir-.}/lib/util_sec.c"
9471 if { (eval echo configure
:9472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9473 samba_cv_USE_SETRESUID
=yes
9475 echo "configure: failed program was:" >&5
9476 cat conftest.
$ac_ext >&5
9478 samba_cv_USE_SETRESUID
=no
9485 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
9486 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
9487 seteuid
=yes;cat >> confdefs.h
<<\EOF
9488 #define USE_SETRESUID 1
9495 if test $seteuid = no
; then
9496 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
9497 echo "configure:9498: checking for setreuid" >&5
9498 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
9499 echo $ac_n "(cached) $ac_c" 1>&6
9502 if test "$cross_compiling" = yes; then
9503 samba_cv_USE_SETREUID
=cross
9505 cat > conftest.
$ac_ext <<EOF
9506 #line 9507 "configure"
9507 #include "confdefs.h"
9509 #define AUTOCONF_TEST 1
9510 #define USE_SETREUID 1
9511 #include "confdefs.h"
9512 #include "${srcdir-.}/lib/util_sec.c"
9514 if { (eval echo configure
:9515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9516 samba_cv_USE_SETREUID
=yes
9518 echo "configure: failed program was:" >&5
9519 cat conftest.
$ac_ext >&5
9521 samba_cv_USE_SETREUID
=no
9528 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
9529 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
9530 seteuid
=yes;cat >> confdefs.h
<<\EOF
9531 #define USE_SETREUID 1
9537 if test $seteuid = no
; then
9538 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
9539 echo "configure:9540: checking for seteuid" >&5
9540 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
9541 echo $ac_n "(cached) $ac_c" 1>&6
9544 if test "$cross_compiling" = yes; then
9545 samba_cv_USE_SETEUID
=cross
9547 cat > conftest.
$ac_ext <<EOF
9548 #line 9549 "configure"
9549 #include "confdefs.h"
9551 #define AUTOCONF_TEST 1
9552 #define USE_SETEUID 1
9553 #include "confdefs.h"
9554 #include "${srcdir-.}/lib/util_sec.c"
9556 if { (eval echo configure
:9557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9558 samba_cv_USE_SETEUID
=yes
9560 echo "configure: failed program was:" >&5
9561 cat conftest.
$ac_ext >&5
9563 samba_cv_USE_SETEUID
=no
9570 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
9571 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
9572 seteuid
=yes;cat >> confdefs.h
<<\EOF
9573 #define USE_SETEUID 1
9579 if test $seteuid = no
; then
9580 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
9581 echo "configure:9582: checking for setuidx" >&5
9582 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
9583 echo $ac_n "(cached) $ac_c" 1>&6
9586 if test "$cross_compiling" = yes; then
9587 samba_cv_USE_SETUIDX
=cross
9589 cat > conftest.
$ac_ext <<EOF
9590 #line 9591 "configure"
9591 #include "confdefs.h"
9593 #define AUTOCONF_TEST 1
9594 #define USE_SETUIDX 1
9595 #include "confdefs.h"
9596 #include "${srcdir-.}/lib/util_sec.c"
9598 if { (eval echo configure
:9599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9600 samba_cv_USE_SETUIDX
=yes
9602 echo "configure: failed program was:" >&5
9603 cat conftest.
$ac_ext >&5
9605 samba_cv_USE_SETUIDX
=no
9612 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
9613 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
9614 seteuid
=yes;cat >> confdefs.h
<<\EOF
9615 #define USE_SETUIDX 1
9622 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
9623 echo "configure:9624: checking for shared mmap" >&5
9624 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
9625 echo $ac_n "(cached) $ac_c" 1>&6
9628 if test "$cross_compiling" = yes; then
9629 samba_cv_HAVE_SHARED_MMAP
=cross
9631 cat > conftest.
$ac_ext <<EOF
9632 #line 9633 "configure"
9633 #include "confdefs.h"
9634 #include "${srcdir-.}/tests/shared_mmap.c"
9636 if { (eval echo configure
:9637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9638 samba_cv_HAVE_SHARED_MMAP
=yes
9640 echo "configure: failed program was:" >&5
9641 cat conftest.
$ac_ext >&5
9643 samba_cv_HAVE_SHARED_MMAP
=no
9650 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
9651 if test x
"$samba_cv_HAVE_SHARED_MMAP" = x
"yes"; then
9652 cat >> confdefs.h
<<\EOF
9653 #define HAVE_SHARED_MMAP 1
9656 cat >> confdefs.h
<<\EOF
9662 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
9663 echo "configure:9664: checking for ftruncate needs root" >&5
9664 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
9665 echo $ac_n "(cached) $ac_c" 1>&6
9668 if test "$cross_compiling" = yes; then
9669 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
9671 cat > conftest.
$ac_ext <<EOF
9672 #line 9673 "configure"
9673 #include "confdefs.h"
9674 #include "${srcdir-.}/tests/ftruncroot.c"
9676 if { (eval echo configure
:9677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9678 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
9680 echo "configure: failed program was:" >&5
9681 cat conftest.
$ac_ext >&5
9683 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
9690 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
9691 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
9692 cat >> confdefs.h
<<\EOF
9693 #define FTRUNCATE_NEEDS_ROOT 1
9698 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
9699 echo "configure:9700: checking for fcntl locking" >&5
9700 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
9701 echo $ac_n "(cached) $ac_c" 1>&6
9704 if test "$cross_compiling" = yes; then
9705 samba_cv_HAVE_FCNTL_LOCK
=cross
9707 cat > conftest.
$ac_ext <<EOF
9708 #line 9709 "configure"
9709 #include "confdefs.h"
9710 #include "${srcdir-.}/tests/fcntl_lock.c"
9712 if { (eval echo configure
:9713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9714 samba_cv_HAVE_FCNTL_LOCK
=yes
9716 echo "configure: failed program was:" >&5
9717 cat conftest.
$ac_ext >&5
9719 samba_cv_HAVE_FCNTL_LOCK
=no
9726 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
9727 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
9728 cat >> confdefs.h
<<\EOF
9729 #define HAVE_FCNTL_LOCK 1
9734 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
9735 echo "configure:9736: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
9736 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
9737 echo $ac_n "(cached) $ac_c" 1>&6
9740 if test "$cross_compiling" = yes; then
9741 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
9743 cat > conftest.
$ac_ext <<EOF
9744 #line 9745 "configure"
9745 #include "confdefs.h"
9746 #include "${srcdir-.}/tests/fcntl_lock64.c"
9748 if { (eval echo configure
:9749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9750 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
9752 echo "configure: failed program was:" >&5
9753 cat conftest.
$ac_ext >&5
9755 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
9762 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
9763 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
9764 cat >> confdefs.h
<<\EOF
9765 #define HAVE_BROKEN_FCNTL64_LOCKS 1
9772 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
9773 echo "configure:9774: checking for 64 bit fcntl locking" >&5
9774 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
9775 echo $ac_n "(cached) $ac_c" 1>&6
9778 if test "$cross_compiling" = yes; then
9779 samba_cv_HAVE_STRUCT_FLOCK64
=cross
9781 cat > conftest.
$ac_ext <<EOF
9782 #line 9783 "configure"
9783 #include "confdefs.h"
9785 #if defined(HAVE_UNISTD_H)
9795 #ifdef HAVE_SYS_FCNTL_H
9796 #include <sys/fcntl.h>
9798 main() { struct flock64 fl64;
9799 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
9806 if { (eval echo configure
:9807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9808 samba_cv_HAVE_STRUCT_FLOCK64
=yes
9810 echo "configure: failed program was:" >&5
9811 cat conftest.
$ac_ext >&5
9813 samba_cv_HAVE_STRUCT_FLOCK64
=no
9820 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
9822 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
9823 cat >> confdefs.h
<<\EOF
9824 #define HAVE_STRUCT_FLOCK64 1
9830 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
9831 echo "configure:9832: checking for sysv ipc" >&5
9832 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
9833 echo $ac_n "(cached) $ac_c" 1>&6
9836 if test "$cross_compiling" = yes; then
9837 samba_cv_HAVE_SYSV_IPC
=cross
9839 cat > conftest.
$ac_ext <<EOF
9840 #line 9841 "configure"
9841 #include "confdefs.h"
9842 #include "${srcdir-.}/tests/sysv_ipc.c"
9844 if { (eval echo configure
:9845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9846 samba_cv_HAVE_SYSV_IPC
=yes
9848 echo "configure: failed program was:" >&5
9849 cat conftest.
$ac_ext >&5
9851 samba_cv_HAVE_SYSV_IPC
=no
9858 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
9859 if test x
"$samba_cv_HAVE_SYSV_IPC" = x
"yes"; then
9860 cat >> confdefs.h
<<\EOF
9861 #define HAVE_SYSV_IPC 1
9866 echo $ac_n "checking for IRIX sysv ipc semun problem using gcc""... $ac_c" 1>&6
9867 echo "configure:9868: checking for IRIX sysv ipc semun problem using gcc" >&5
9868 if eval "test \"`echo '$''{'samba_cv_NEED_SGI_SEMUN_HACK'+set}'`\" = set"; then
9869 echo $ac_n "(cached) $ac_c" 1>&6
9872 if test "$cross_compiling" = yes; then
9873 samba_cv_NEED_SGI_SEMUN_HACK
=cross
9875 cat > conftest.
$ac_ext <<EOF
9876 #line 9877 "configure"
9877 #include "confdefs.h"
9878 #include "${srcdir-.}/tests/sgi_sysv_hack.c"
9880 if { (eval echo configure
:9881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9882 samba_cv_NEED_SGI_SEMUN_HACK
=yes
9884 echo "configure: failed program was:" >&5
9885 cat conftest.
$ac_ext >&5
9887 samba_cv_NEED_SGI_SEMUN_HACK
=no
9894 echo "$ac_t""$samba_cv_NEED_SGI_SEMUN_HACK" 1>&6
9895 if test x
"$samba_cv_NEED_SGI_SEMUN_HACK" = x
"yes"; then
9896 cat >> confdefs.h
<<\EOF
9897 #define NEED_SGI_SEMUN_HACK 1
9902 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
9903 echo "configure:9904: checking for a crypt that needs truncated salt" >&5
9904 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
9905 echo $ac_n "(cached) $ac_c" 1>&6
9908 if test "$cross_compiling" = yes; then
9909 samba_cv_HAVE_TRUNCATED_SALT
=cross
9911 cat > conftest.
$ac_ext <<EOF
9912 #line 9913 "configure"
9913 #include "confdefs.h"
9914 #include "${srcdir-.}/tests/crypttest.c"
9916 if { (eval echo configure
:9917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9918 samba_cv_HAVE_TRUNCATED_SALT
=no
9920 echo "configure: failed program was:" >&5
9921 cat conftest.
$ac_ext >&5
9923 samba_cv_HAVE_TRUNCATED_SALT
=yes
9930 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
9931 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
9932 cat >> confdefs.h
<<\EOF
9933 #define HAVE_TRUNCATED_SALT 1
9938 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
9939 echo "configure:9940: checking for broken nisplus include files" >&5
9940 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
9941 echo $ac_n "(cached) $ac_c" 1>&6
9944 cat > conftest.
$ac_ext <<EOF
9945 #line 9946 "configure"
9946 #include "confdefs.h"
9947 #include <sys/acl.h>
9948 #if defined(HAVE_RPCSVC_NIS_H)
9949 #include <rpcsvc/nis.h>
9955 if { (eval echo configure
:9956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9957 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
9959 echo "configure: failed program was:" >&5
9960 cat conftest.
$ac_ext >&5
9962 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
9967 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
9968 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
9969 cat >> confdefs.h
<<\EOF
9970 #define BROKEN_NISPLUS_INCLUDE_FILES 1
9976 #################################################
9977 # check for smbwrapper support
9978 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
9979 echo "configure:9980: checking whether to use smbwrapper" >&5
9980 # Check whether --with-smbwrapper or --without-smbwrapper was given.
9981 if test "${with_smbwrapper+set}" = set; then
9982 withval
="$with_smbwrapper"
9985 echo "$ac_t""yes" 1>&6
9986 cat >> confdefs.h
<<\EOF
9987 #define WITH_SMBWRAPPER 1
9990 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
9992 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
9995 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
9998 # Conditions under which smbwrapper should not be built.
10000 if test x
$PICFLAG = x
; then
10001 echo No support
for PIC code
- disabling smbwrapper and smbsh
10004 elif test x
$ac_cv_func_syscall = xno
; then
10005 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10011 echo "$ac_t""no" 1>&6
10015 echo "$ac_t""no" 1>&6
10020 #################################################
10021 # check for the AFS filesystem
10022 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10023 echo "configure:10024: checking whether to use AFS" >&5
10024 # Check whether --with-afs or --without-afs was given.
10025 if test "${with_afs+set}" = set; then
10026 withval
="$with_afs"
10029 echo "$ac_t""yes" 1>&6
10030 cat >> confdefs.h
<<\EOF
10036 echo "$ac_t""no" 1>&6
10040 echo "$ac_t""no" 1>&6
10045 #################################################
10046 # check for the DFS auth system
10047 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
10048 echo "configure:10049: checking whether to use DFS auth" >&5
10049 # Check whether --with-dfs or --without-dfs was given.
10050 if test "${with_dfs+set}" = set; then
10051 withval
="$with_dfs"
10054 echo "$ac_t""yes" 1>&6
10055 cat >> confdefs.h
<<\EOF
10061 echo "$ac_t""no" 1>&6
10065 echo "$ac_t""no" 1>&6
10070 #################################################
10071 # check for Kerberos IV auth system
10072 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10073 echo "configure:10074: checking whether to use Kerberos IV" >&5
10074 # Check whether --with-krb4 or --without-krb4 was given.
10075 if test "${with_krb4+set}" = set; then
10076 withval
="$with_krb4"
10077 echo "$ac_t""yes" 1>&6
10078 cat >> confdefs.h
<<\EOF
10079 #define KRB4_AUTH 1
10082 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10083 echo "configure:10084: checking for dn_expand in -lresolv" >&5
10084 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10085 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10086 echo $ac_n "(cached) $ac_c" 1>&6
10088 ac_save_LIBS
="$LIBS"
10089 LIBS
="-lresolv $LIBS"
10090 cat > conftest.
$ac_ext <<EOF
10091 #line 10092 "configure"
10092 #include "confdefs.h"
10093 /* Override any gcc2 internal prototype to avoid an error. */
10094 /* We use char because int might match the return type of a gcc2
10095 builtin and then its argument prototype would still apply. */
10102 if { (eval echo configure
:10103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10104 eval "ac_cv_lib_$ac_lib_var=yes"
10106 echo "configure: failed program was:" >&5
10107 cat conftest.
$ac_ext >&5
10109 eval "ac_cv_lib_$ac_lib_var=no"
10112 LIBS
="$ac_save_LIBS"
10115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10116 echo "$ac_t""yes" 1>&6
10117 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10118 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10119 cat >> confdefs.h
<<EOF
10120 #define $ac_tr_lib 1
10123 LIBS
="-lresolv $LIBS"
10126 echo "$ac_t""no" 1>&6
10129 LIBS
="$LIBS -lkrb -ldes"
10130 CFLAGS
="$CFLAGS -I$withval/include"
10131 LDFLAGS
="$LDFLAGS -L$withval/lib"
10132 ac_safe
=`echo "kerberos/krb.h" | sed 'y%./+-%__p_%'`
10133 echo $ac_n "checking for kerberos/krb.h""... $ac_c" 1>&6
10134 echo "configure:10135: checking for kerberos/krb.h" >&5
10135 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10136 echo $ac_n "(cached) $ac_c" 1>&6
10138 cat > conftest.
$ac_ext <<EOF
10139 #line 10140 "configure"
10140 #include "confdefs.h"
10141 #include <kerberos/krb.h>
10143 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10144 { (eval echo configure
:10145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10145 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10146 if test -z "$ac_err"; then
10148 eval "ac_cv_header_$ac_safe=yes"
10151 echo "configure: failed program was:" >&5
10152 cat conftest.
$ac_ext >&5
10154 eval "ac_cv_header_$ac_safe=no"
10158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10159 echo "$ac_t""yes" 1>&6
10160 echo $ac_n "checking whether both krb.h and kerberos/krb.h can be included""... $ac_c" 1>&6
10161 echo "configure:10162: checking whether both krb.h and kerberos/krb.h can be included" >&5
10162 if eval "test \"`echo '$''{'samba_cv_no_kerberos_inconsistency'+set}'`\" = set"; then
10163 echo $ac_n "(cached) $ac_c" 1>&6
10166 cat > conftest.
$ac_ext <<EOF
10167 #line 10168 "configure"
10168 #include "confdefs.h"
10169 #include<kerberos/krb.h>
10175 if { (eval echo configure
:10176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10177 samba_cv_no_kerberos_inconsistency
=yes
10179 echo "configure: failed program was:" >&5
10180 cat conftest.
$ac_ext >&5
10182 samba_cv_no_kerberos_inconsistency
=no
10188 echo "$ac_t""$samba_cv_no_kerberos_inconsistency" 1>&6
10189 if test x
"$samba_cv_no_kerberos_inconsistency" = x
"no"; then
10190 echo $ac_n "checking whether a Kerberos define work around is needed""... $ac_c" 1>&6
10191 echo "configure:10192: checking whether a Kerberos define work around is needed" >&5
10192 if eval "test \"`echo '$''{'samba_cv_kerberos_define_workaround'+set}'`\" = set"; then
10193 echo $ac_n "(cached) $ac_c" 1>&6
10196 cat > conftest.
$ac_ext <<EOF
10197 #line 10198 "configure"
10198 #include "confdefs.h"
10199 #define _KERBEROS_KRB_H
10200 #include<kerberos/krb.h>
10206 if { (eval echo configure
:10207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10208 samba_cv_kerberos_define_workaround
=yes
10210 echo "configure: failed program was:" >&5
10211 cat conftest.
$ac_ext >&5
10213 samba_cv_kerberos_define_workaround
=no
10219 echo "$ac_t""$samba_cv_kerberos_define_workaround" 1>&6
10220 if test x
"$samba_cv_kerberos_define_workaround" = x
"yes"; then
10221 cat >> confdefs.h
<<\EOF
10222 #define USE_KRB4_DEFINE_WORK_AROUND 1
10228 echo "$ac_t""no" 1>&6
10232 echo "$ac_t""no" 1>&6
10237 #################################################
10238 # check for the AFS tickets from srvtabs
10239 echo $ac_n "checking whether to use AFS tickets from srvtabs""... $ac_c" 1>&6
10240 echo "configure:10241: checking whether to use AFS tickets from srvtabs" >&5
10241 # Check whether --with-srvtab or --without-srvtab was given.
10242 if test "${with_srvtab+set}" = set; then
10243 withval
="$with_srvtab"
10246 echo "$ac_t""yes" 1>&6
10247 cat >> confdefs.h
<<\EOF
10248 #define USE_RENEWABLE_AFS_TICKET ""
10251 LIBS
="$LIBS -lkafs"
10254 echo "$ac_t""no" 1>&6
10257 echo "$ac_t""yes using instance $withval" 1>&6
10258 cat >> confdefs.h
<<EOF
10259 #define USE_RENEWABLE_AFS_TICKET $withval
10262 LIBS
="$LIBS -lkafs"
10266 echo "$ac_t""no" 1>&6
10271 #################################################
10272 # check for Kerberos 5 auth system
10273 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10274 echo "configure:10275: checking whether to use Kerberos 5" >&5
10275 # Check whether --with-krb5 or --without-krb5 was given.
10276 if test "${with_krb5+set}" = set; then
10277 withval
="$with_krb5"
10278 echo "$ac_t""yes" 1>&6
10279 cat >> confdefs.h
<<\EOF
10280 #define KRB5_AUTH 1
10283 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
10284 CFLAGS
="$CFLAGS -I$withval/include"
10285 LDFLAGS
="$LDFLAGS -L$withval/lib"
10287 echo "$ac_t""no" 1>&6
10292 #################################################
10293 # check for automount support
10294 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
10295 echo "configure:10296: checking whether to use AUTOMOUNT" >&5
10296 # Check whether --with-automount or --without-automount was given.
10297 if test "${with_automount+set}" = set; then
10298 withval
="$with_automount"
10301 echo "$ac_t""yes" 1>&6
10302 cat >> confdefs.h
<<\EOF
10303 #define WITH_AUTOMOUNT 1
10308 echo "$ac_t""no" 1>&6
10312 echo "$ac_t""no" 1>&6
10317 #################################################
10318 # check for smbmount support
10319 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
10320 echo "configure:10321: checking whether to use SMBMOUNT" >&5
10321 # Check whether --with-smbmount or --without-smbmount was given.
10322 if test "${with_smbmount+set}" = set; then
10323 withval
="$with_smbmount"
10326 echo "$ac_t""yes" 1>&6
10327 cat >> confdefs.h
<<\EOF
10328 #define WITH_SMBMOUNT 1
10331 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
10334 echo "$ac_t""no" 1>&6
10339 echo "$ac_t""no" 1>&6
10346 #################################################
10347 # check for a PAM password database
10348 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
10349 echo "configure:10350: checking whether to use PAM password database" >&5
10350 # Check whether --with-pam or --without-pam was given.
10351 if test "${with_pam+set}" = set; then
10352 withval
="$with_pam"
10355 echo "$ac_t""yes" 1>&6
10356 cat >> confdefs.h
<<\EOF
10363 echo "$ac_t""no" 1>&6
10367 echo "$ac_t""no" 1>&6
10373 #################################################
10374 # check for a LDAP password database
10375 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10376 echo "configure:10377: checking whether to use LDAP password database" >&5
10377 # Check whether --with-ldap or --without-ldap was given.
10378 if test "${with_ldap+set}" = set; then
10379 withval
="$with_ldap"
10382 echo "$ac_t""yes" 1>&6
10383 cat >> confdefs.h
<<\EOF
10384 #define WITH_LDAP 1
10387 LIBS
="$LIBS -lldap -llber"
10390 echo "$ac_t""no" 1>&6
10394 echo "$ac_t""no" 1>&6
10399 #################################################
10400 # check for a LDAP password database
10401 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10402 echo "configure:10403: checking whether to use LDAP password database" >&5
10403 # Check whether --with-nt5ldap or --without-nt5ldap was given.
10404 if test "${with_nt5ldap+set}" = set; then
10405 withval
="$with_nt5ldap"
10408 echo "$ac_t""yes" 1>&6
10409 cat >> confdefs.h
<<\EOF
10410 #define WITH_NT5LDAP 1
10413 LIBS
="$LIBS -lldap -llber"
10416 echo "$ac_t""no" 1>&6
10420 echo "$ac_t""no" 1>&6
10425 #################################################
10426 # check for a LDAP password database
10427 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10428 echo "configure:10429: checking whether to use LDAP password database" >&5
10429 # Check whether --with-nt5ldap or --without-nt5ldap was given.
10430 if test "${with_nt5ldap+set}" = set; then
10431 withval
="$with_nt5ldap"
10434 echo "$ac_t""yes" 1>&6
10435 cat >> confdefs.h
<<\EOF
10436 #define WITH_NT5LDAP 1
10439 LIBS
="$LIBS -lldap -llber"
10442 echo "$ac_t""no" 1>&6
10446 echo "$ac_t""no" 1>&6
10451 #################################################
10452 # check for a NISPLUS password database
10453 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
10454 echo "configure:10455: checking whether to use NISPLUS password database" >&5
10455 # Check whether --with-nisplus or --without-nisplus was given.
10456 if test "${with_nisplus+set}" = set; then
10457 withval
="$with_nisplus"
10460 echo "$ac_t""yes" 1>&6
10461 cat >> confdefs.h
<<\EOF
10462 #define WITH_NISPLUS 1
10467 echo "$ac_t""no" 1>&6
10471 echo "$ac_t""no" 1>&6
10476 #################################################
10477 # decide for the default sam-password-database
10478 echo $ac_n "checking which sam password database to use""... $ac_c" 1>&6
10479 echo "configure:10480: checking which sam password database to use" >&5
10480 # Check whether --with-sam_pwdb or --without-sam_pwdb was given.
10481 if test "${with_sam_pwdb+set}" = set; then
10482 withval
="$with_sam_pwdb"
10485 SAM_PWDB_LIB
='$(SAMRPASSLIB) $(SMBPWLIB)'
10486 sampwlibname
="passdb"
10489 SAM_PWDB_LIB
='$(SAMRTDBLIB)'
10493 SAM_PWDB_LIB
='$(SAMRNT5LDAPLIB)'
10494 sampwlibname
="nt5ldap (must also specify --with-nt5ldap)"
10497 SAM_PWDB_LIB
='$(SAMRPASSLIB)'
10498 sampwlibname
="passdb (unknown specified!)"
10503 SAM_PWDB_LIB
='$(SAMRPASSLIB) $(SMBPWLIB)'
10504 sampwlibname
="passdb (default)"
10508 echo "$ac_t""$sampwlibname" 1>&6
10512 #################################################
10513 # check to use a tdb surs database
10514 echo $ac_n "checking whether to use SURS tdb database""... $ac_c" 1>&6
10515 echo "configure:10516: checking whether to use SURS tdb database" >&5
10516 # Check whether --with-surstdb or --without-surstdb was given.
10517 if test "${with_surstdb+set}" = set; then
10518 withval
="$with_surstdb"
10521 echo "$ac_t""yes" 1>&6
10522 cat >> confdefs.h
<<\EOF
10523 #define WITH_TDBSURS 1
10528 echo "$ac_t""no" 1>&6
10532 echo "$ac_t""no" 1>&6
10538 #################################################
10539 # check for a NISPLUS_HOME support
10540 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
10541 echo "configure:10542: checking whether to use NISPLUS_HOME" >&5
10542 # Check whether --with-nisplus-home or --without-nisplus-home was given.
10543 if test "${with_nisplus_home+set}" = set; then
10544 withval
="$with_nisplus_home"
10547 echo "$ac_t""yes" 1>&6
10548 cat >> confdefs.h
<<\EOF
10549 #define WITH_NISPLUS_HOME 1
10554 echo "$ac_t""no" 1>&6
10558 echo "$ac_t""no" 1>&6
10563 #################################################
10564 # check for the secure socket layer
10565 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
10566 echo "configure:10567: checking whether to use SSL" >&5
10567 # Check whether --with-ssl or --without-ssl was given.
10568 if test "${with_ssl+set}" = set; then
10569 withval
="$with_ssl"
10572 echo "$ac_t""yes" 1>&6
10573 cat >> confdefs.h
<<\EOF
10577 withval
="/usr/local/ssl" # default
10579 if test "${with_sslinc+set}" = set; then
10581 withval
="$with_sslinc"
10584 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
10585 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
10586 LIBS
="-lssl -lcrypto $LIBS"
10587 LDFLAGS
="=L/usr/local/ssl/lib $LDFLAGS"
10590 CFLAGS
="-I${withval} $CFLAGS"
10591 LIBS
="-lssl -lcrypto $LIBS"
10592 # LDFLAGS="-L${withval}/lib $LDFLAGS"
10598 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
10599 LIBS
="-lssl -lcrypto $LIBS"
10600 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
10604 if test ! -d ${withval}; then
10605 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
10609 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
10613 echo "$ac_t""no" 1>&6
10617 echo "$ac_t""no" 1>&6
10622 #################################################
10623 # check for syslog logging
10624 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
10625 echo "configure:10626: checking whether to use syslog logging" >&5
10626 # Check whether --with-syslog or --without-syslog was given.
10627 if test "${with_syslog+set}" = set; then
10628 withval
="$with_syslog"
10631 echo "$ac_t""yes" 1>&6
10632 cat >> confdefs.h
<<\EOF
10633 #define WITH_SYSLOG 1
10638 echo "$ac_t""no" 1>&6
10642 echo "$ac_t""no" 1>&6
10647 #################################################
10648 # check for a shared memory profiling support
10649 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
10650 echo "configure:10651: checking whether to use profiling" >&5
10651 # Check whether --with-profile or --without-profile was given.
10652 if test "${with_profile+set}" = set; then
10653 withval
="$with_profile"
10656 echo "$ac_t""yes" 1>&6
10657 cat >> confdefs.h
<<\EOF
10658 #define WITH_PROFILE 1
10663 echo "$ac_t""no" 1>&6
10667 echo "$ac_t""no" 1>&6
10673 #################################################
10674 # check for experimental netatalk resource fork support
10675 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
10676 echo "configure:10677: checking whether to support netatalk" >&5
10677 # Check whether --with-netatalk or --without-netatalk was given.
10678 if test "${with_netatalk+set}" = set; then
10679 withval
="$with_netatalk"
10682 echo "$ac_t""yes" 1>&6
10683 cat >> confdefs.h
<<\EOF
10684 #define WITH_NETATALK 1
10689 echo "$ac_t""no" 1>&6
10693 echo "$ac_t""no" 1>&6
10698 #################################################
10699 # check for experimental disk-quotas support
10700 QUOTAOBJS
=noquotas.o
10702 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
10703 echo "configure:10704: checking whether to support disk-quotas" >&5
10704 # Check whether --with-quotas or --without-quotas was given.
10705 if test "${with_quotas+set}" = set; then
10706 withval
="$with_quotas"
10709 echo "$ac_t""yes" 1>&6
10713 echo "$ac_t""no" 1>&6
10717 echo "$ac_t""no" 1>&6
10723 #################################################
10724 # check for experimental utmp accounting
10726 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
10727 echo "configure:10728: checking whether to support utmp accounting" >&5
10728 # Check whether --with-utmp or --without-utmp was given.
10729 if test "${with_utmp+set}" = set; then
10730 withval
="$with_utmp"
10733 echo "$ac_t""yes" 1>&6
10734 cat >> confdefs.h
<<\EOF
10735 #define WITH_UTMP 1
10740 echo "$ac_t""no" 1>&6
10744 echo "$ac_t""no" 1>&6
10749 #################################################
10750 # check for MS Dfs support
10752 echo $ac_n "checking whether to support MS Dfs""... $ac_c" 1>&6
10753 echo "configure:10754: checking whether to support MS Dfs" >&5
10754 # Check whether --with-msdfs or --without-msdfs was given.
10755 if test "${with_msdfs+set}" = set; then
10756 withval
="$with_msdfs"
10759 echo "$ac_t""yes" 1>&6
10760 cat >> confdefs.h
<<\EOF
10766 echo "$ac_t""no" 1>&6
10770 echo "$ac_t""no" 1>&6
10775 #################################################
10776 # set samba configuration directory location
10778 if test "$sysconfdir" = '${prefix}/etc'
10780 # default sysconfdir, decide on prefix
10783 # if the prefix already contains the word samba,
10784 # we don't need to use a subdir for smb.conf
10785 sambaconfdir
='${sysconfdir}'
10788 # otherwise, we use a separate dir
10789 sambaconfdir
='${sysconfdir}/samba'
10793 # sysconfdir given, use that directly
10794 sambaconfdir
='${sysconfdir}'
10796 # Check whether --with-sambaconfdir or --without-sambaconfdir was given.
10797 if test "${with_sambaconfdir+set}" = set; then
10798 withval
="$with_sambaconfdir"
10801 # Just --with-sambaconfdir, use the new default
10802 # (which has already been "calculated"
10805 # --without-sambaconfdir, use old default
10806 sambaconfdir
='${LIBDIR}'
10809 sambaconfdir
="$withval"
10814 # No --with(out)-sambaconfdir, use old version for some time.
10815 if test "$sysconfdir" = '${prefix}/etc'
10817 # sysconfdir not given
10818 sambaconfdir
='${LIBDIR}'
10825 #################################################
10826 # set private directory location
10827 # Check whether --with-privatedir or --without-privatedir was given.
10828 if test "${with_privatedir+set}" = set; then
10829 withval
="$with_privatedir"
10833 # Just in case anybody calls it without argument
10835 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
10836 privatedir
='${prefix}/private'
10839 privatedir
="$withval"
10844 privatedir
='${prefix}/private'
10850 #################################################
10851 # set lock directory location
10852 # Check whether --with-lockdir or --without-lockdir was given.
10853 if test "${with_lockdir+set}" = set; then
10854 withval
="$with_lockdir"
10858 # Just in case anybody calls it without argument
10860 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
10861 lockdir
='${VARDIR}/locks'
10869 lockdir
='${VARDIR}/locks'
10875 #################################################
10876 # set SWAT directory location
10877 # Check whether --with-swatdir or --without-swatdir was given.
10878 if test "${with_swatdir+set}" = set; then
10879 withval
="$with_swatdir"
10883 # Just in case anybody does it
10885 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
10886 swatdir
='${prefix}/swat'
10894 swatdir
='${prefix}/swat'
10900 #################################################
10901 # these tests are taken from the GNU fileutils package
10902 echo "checking how to get filesystem space usage" 1>&6
10903 echo "configure:10904: checking how to get filesystem space usage" >&5
10906 # Test for statvfs64.
10907 if test $space = no
; then
10909 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
10910 echo "configure:10911: checking statvfs64 function (SVR4)" >&5
10911 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
10912 echo $ac_n "(cached) $ac_c" 1>&6
10914 if test "$cross_compiling" = yes; then
10915 fu_cv_sys_stat_statvfs64
=cross
10917 cat > conftest.
$ac_ext <<EOF
10918 #line 10919 "configure"
10919 #include "confdefs.h"
10921 #if defined(HAVE_UNISTD_H)
10922 #include <unistd.h>
10924 #include <sys/types.h>
10925 #include <sys/statvfs.h>
10928 struct statvfs64 fsd;
10929 exit (statvfs64 (".", &fsd));
10932 if { (eval echo configure
:10933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10934 fu_cv_sys_stat_statvfs64
=yes
10936 echo "configure: failed program was:" >&5
10937 cat conftest.
$ac_ext >&5
10939 fu_cv_sys_stat_statvfs64
=no
10946 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
10947 if test $fu_cv_sys_stat_statvfs64 = yes; then
10949 cat >> confdefs.h
<<\EOF
10950 #define STAT_STATVFS64 1
10956 # Perform only the link test since it seems there are no variants of the
10957 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
10958 # because that got a false positive on SCO OSR5. Adding the declaration
10959 # of a `struct statvfs' causes this test to fail (as it should) on such
10960 # systems. That system is reported to work fine with STAT_STATFS4 which
10961 # is what it gets when this test fails.
10962 if test $space = no
; then
10964 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
10965 echo "configure:10966: checking statvfs function (SVR4)" >&5
10966 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
10967 echo $ac_n "(cached) $ac_c" 1>&6
10969 cat > conftest.
$ac_ext <<EOF
10970 #line 10971 "configure"
10971 #include "confdefs.h"
10972 #include <sys/types.h>
10973 #include <sys/statvfs.h>
10975 struct statvfs fsd; statvfs (0, &fsd);
10978 if { (eval echo configure
:10979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10980 fu_cv_sys_stat_statvfs
=yes
10982 echo "configure: failed program was:" >&5
10983 cat conftest.
$ac_ext >&5
10985 fu_cv_sys_stat_statvfs
=no
10990 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
10991 if test $fu_cv_sys_stat_statvfs = yes; then
10993 cat >> confdefs.h
<<\EOF
10994 #define STAT_STATVFS 1
11000 if test $space = no
; then
11001 # DEC Alpha running OSF/1
11002 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11003 echo "configure:11004: checking for 3-argument statfs function (DEC OSF/1)" >&5
11004 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11005 echo $ac_n "(cached) $ac_c" 1>&6
11007 if test "$cross_compiling" = yes; then
11008 fu_cv_sys_stat_statfs3_osf1
=no
11010 cat > conftest.
$ac_ext <<EOF
11011 #line 11012 "configure"
11012 #include "confdefs.h"
11014 #include <sys/param.h>
11015 #include <sys/types.h>
11016 #include <sys/mount.h>
11021 exit (statfs (".", &fsd, sizeof (struct statfs)));
11024 if { (eval echo configure
:11025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11026 fu_cv_sys_stat_statfs3_osf1
=yes
11028 echo "configure: failed program was:" >&5
11029 cat conftest.
$ac_ext >&5
11031 fu_cv_sys_stat_statfs3_osf1
=no
11038 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11039 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11041 cat >> confdefs.h
<<\EOF
11042 #define STAT_STATFS3_OSF1 1
11048 if test $space = no
; then
11050 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11051 echo "configure:11052: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11052 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11053 echo $ac_n "(cached) $ac_c" 1>&6
11055 if test "$cross_compiling" = yes; then
11056 fu_cv_sys_stat_statfs2_bsize
=no
11058 cat > conftest.
$ac_ext <<EOF
11059 #line 11060 "configure"
11060 #include "confdefs.h"
11062 #ifdef HAVE_SYS_PARAM_H
11063 #include <sys/param.h>
11065 #ifdef HAVE_SYS_MOUNT_H
11066 #include <sys/mount.h>
11068 #ifdef HAVE_SYS_VFS_H
11069 #include <sys/vfs.h>
11075 exit (statfs (".", &fsd));
11078 if { (eval echo configure
:11079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11080 fu_cv_sys_stat_statfs2_bsize
=yes
11082 echo "configure: failed program was:" >&5
11083 cat conftest.
$ac_ext >&5
11085 fu_cv_sys_stat_statfs2_bsize
=no
11092 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11093 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11095 cat >> confdefs.h
<<\EOF
11096 #define STAT_STATFS2_BSIZE 1
11102 if test $space = no
; then
11104 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11105 echo "configure:11106: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11106 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11107 echo $ac_n "(cached) $ac_c" 1>&6
11109 if test "$cross_compiling" = yes; then
11110 fu_cv_sys_stat_statfs4
=no
11112 cat > conftest.
$ac_ext <<EOF
11113 #line 11114 "configure"
11114 #include "confdefs.h"
11115 #include <sys/types.h>
11116 #include <sys/statfs.h>
11120 exit (statfs (".", &fsd, sizeof fsd, 0));
11123 if { (eval echo configure
:11124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11125 fu_cv_sys_stat_statfs4
=yes
11127 echo "configure: failed program was:" >&5
11128 cat conftest.
$ac_ext >&5
11130 fu_cv_sys_stat_statfs4
=no
11137 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11138 if test $fu_cv_sys_stat_statfs4 = yes; then
11140 cat >> confdefs.h
<<\EOF
11141 #define STAT_STATFS4 1
11147 if test $space = no
; then
11148 # 4.4BSD and NetBSD
11149 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11150 echo "configure:11151: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11151 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
11152 echo $ac_n "(cached) $ac_c" 1>&6
11154 if test "$cross_compiling" = yes; then
11155 fu_cv_sys_stat_statfs2_fsize
=no
11157 cat > conftest.
$ac_ext <<EOF
11158 #line 11159 "configure"
11159 #include "confdefs.h"
11160 #include <sys/types.h>
11161 #ifdef HAVE_SYS_PARAM_H
11162 #include <sys/param.h>
11164 #ifdef HAVE_SYS_MOUNT_H
11165 #include <sys/mount.h>
11171 exit (statfs (".", &fsd));
11174 if { (eval echo configure
:11175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11176 fu_cv_sys_stat_statfs2_fsize
=yes
11178 echo "configure: failed program was:" >&5
11179 cat conftest.
$ac_ext >&5
11181 fu_cv_sys_stat_statfs2_fsize
=no
11188 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
11189 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11191 cat >> confdefs.h
<<\EOF
11192 #define STAT_STATFS2_FSIZE 1
11198 if test $space = no
; then
11200 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
11201 echo "configure:11202: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11202 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
11203 echo $ac_n "(cached) $ac_c" 1>&6
11205 if test "$cross_compiling" = yes; then
11206 fu_cv_sys_stat_fs_data
=no
11208 cat > conftest.
$ac_ext <<EOF
11209 #line 11210 "configure"
11210 #include "confdefs.h"
11211 #include <sys/types.h>
11212 #ifdef HAVE_SYS_PARAM_H
11213 #include <sys/param.h>
11215 #ifdef HAVE_SYS_MOUNT_H
11216 #include <sys/mount.h>
11218 #ifdef HAVE_SYS_FS_TYPES_H
11219 #include <sys/fs_types.h>
11223 struct fs_data fsd;
11224 /* Ultrix's statfs returns 1 for success,
11225 0 for not mounted, -1 for failure. */
11226 exit (statfs (".", &fsd) != 1);
11229 if { (eval echo configure
:11230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11231 fu_cv_sys_stat_fs_data
=yes
11233 echo "configure: failed program was:" >&5
11234 cat conftest.
$ac_ext >&5
11236 fu_cv_sys_stat_fs_data
=no
11243 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
11244 if test $fu_cv_sys_stat_fs_data = yes; then
11246 cat >> confdefs.h
<<\EOF
11247 #define STAT_STATFS2_FS_DATA 1
11254 # As a gating factor for large file support, in order to
11255 # use <4GB files we must have the following minimal support
11257 # long long, and a 64 bit off_t or off64_t.
11258 # If we don't have all of these then disable large
11261 echo "checking if large file support can be enabled"
11262 cat > conftest.
$ac_ext <<EOF
11263 #line 11264 "configure"
11264 #include "confdefs.h"
11266 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
11267 #include <sys/types.h>
11276 if { (eval echo configure
:11277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11278 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
11280 echo "configure: failed program was:" >&5
11281 cat conftest.
$ac_ext >&5
11283 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
11286 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
11288 cat >> confdefs.h
<<\EOF
11289 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
11296 echo "checking configure summary"
11297 if test "$cross_compiling" = yes; then
11300 cat > conftest.
$ac_ext <<EOF
11301 #line 11302 "configure"
11302 #include "confdefs.h"
11303 #include "${srcdir-.}/tests/summary.c"
11305 if { (eval echo configure
:11306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11307 echo "configure OK";
11309 echo "configure: failed program was:" >&5
11310 cat conftest.
$ac_ext >&5
11312 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
11322 cat > confcache
<<\EOF
11323 # This file is a shell script that caches the results of configure
11324 # tests run on this system so they can be shared between configure
11325 # scripts and configure runs. It is not useful on other systems.
11326 # If it contains results you don't want to keep, you may remove or edit it.
11328 # By default, configure uses ./config.cache as the cache file,
11329 # creating it if it does not exist already. You can give configure
11330 # the --cache-file=FILE option to use a different cache file; that is
11331 # what configure does when it calls configure scripts in
11332 # subdirectories, so they share the cache.
11333 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11334 # config.status only pays attention to the cache file if you give it the
11335 # --recheck option to rerun configure.
11338 # The following way of writing the cache mishandles newlines in values,
11339 # but we know of no workaround that is simple, portable, and efficient.
11340 # So, don't put newlines in cache variables' values.
11341 # Ultrix sh set writes to stderr and can't be redirected directly,
11342 # and sets the high bit in the cache file unless we assign to the vars.
11344 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11346 # `set' does not quote correctly, so add quotes (double-quote substitution
11347 # turns \\\\ into \\, and sed turns \\ into \).
11349 -e "s/'/'\\\\''/g" \
11350 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11353 # `set' quotes correctly as required by POSIX, so do not add quotes.
11354 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11357 if cmp -s $cache_file confcache
; then
11360 if test -w $cache_file; then
11361 echo "updating cache $cache_file"
11362 cat confcache
> $cache_file
11364 echo "not updating unwritable cache $cache_file"
11369 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11371 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11372 # Let make expand exec_prefix.
11373 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11375 # Any assignment to VPATH causes Sun make to only execute
11376 # the first set of double-colon rules, so remove it if not needed.
11377 # If there is a colon in the path, we need to keep it.
11378 if test "x$srcdir" = x.
; then
11379 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
11382 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11384 DEFS
=-DHAVE_CONFIG_H
11386 # Without the "./", some shells look in PATH for config.status.
11387 : ${CONFIG_STATUS=./config.status}
11389 echo creating
$CONFIG_STATUS
11390 rm -f $CONFIG_STATUS
11391 cat > $CONFIG_STATUS <<EOF
11393 # Generated automatically by configure.
11394 # Run this file to recreate the current configuration.
11395 # This directory was configured as follows,
11396 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11398 # $0 $ac_configure_args
11400 # Compiler output produced by configure, useful for debugging
11401 # configure, is in ./config.log if it exists.
11403 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11406 case "\$ac_option" in
11407 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11408 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11409 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11410 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11411 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11413 -help | --help | --hel | --he | --h)
11414 echo "\$ac_cs_usage"; exit 0 ;;
11415 *) echo "\$ac_cs_usage"; exit 1 ;;
11419 ac_given_srcdir=$srcdir
11420 ac_given_INSTALL="$INSTALL"
11422 trap 'rm -fr `echo "include/stamp-h Makefile script/samba-init.d include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11424 cat >> $CONFIG_STATUS <<EOF
11426 # Protect against being on the right side of a sed subst in config.status.
11427 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11428 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11432 s%@CFLAGS@%$CFLAGS%g
11433 s%@CPPFLAGS@%$CPPFLAGS%g
11434 s%@CXXFLAGS@%$CXXFLAGS%g
11435 s%@FFLAGS@%$FFLAGS%g
11437 s%@LDFLAGS@%$LDFLAGS%g
11439 s%@exec_prefix@%$exec_prefix%g
11440 s%@prefix@%$prefix%g
11441 s%@program_transform_name@%$program_transform_name%g
11442 s%@bindir@%$bindir%g
11443 s%@sbindir@%$sbindir%g
11444 s%@libexecdir@%$libexecdir%g
11445 s%@datadir@%$datadir%g
11446 s%@sysconfdir@%$sysconfdir%g
11447 s%@sharedstatedir@%$sharedstatedir%g
11448 s%@localstatedir@%$localstatedir%g
11449 s%@libdir@%$libdir%g
11450 s%@includedir@%$includedir%g
11451 s%@oldincludedir@%$oldincludedir%g
11452 s%@infodir@%$infodir%g
11453 s%@mandir@%$mandir%g
11454 s%@RUNPROG@%$RUNPROG%g
11455 s%@MPROGS@%$MPROGS%g
11456 s%@LDSHFLAGS@%$LDSHFLAGS%g
11457 s%@HOST_OS@%$HOST_OS%g
11459 s%@WRAP32@%$WRAP32%g
11460 s%@PICFLAG@%$PICFLAG%g
11461 s%@SHLIBEXT@%$SHLIBEXT%g
11464 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11465 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11466 s%@INSTALL_DATA@%$INSTALL_DATA%g
11469 s%@host_alias@%$host_alias%g
11470 s%@host_cpu@%$host_cpu%g
11471 s%@host_vendor@%$host_vendor%g
11472 s%@host_os@%$host_os%g
11474 s%@build_alias@%$build_alias%g
11475 s%@build_cpu@%$build_cpu%g
11476 s%@build_vendor@%$build_vendor%g
11477 s%@build_os@%$build_os%g
11478 s%@RANLIB@%$RANLIB%g
11480 s%@LIBTOOL@%$LIBTOOL%g
11481 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
11482 s%@BROKEN_CC@%$BROKEN_CC%g
11483 s%@target@%$target%g
11484 s%@target_alias@%$target_alias%g
11485 s%@target_cpu@%$target_cpu%g
11486 s%@target_vendor@%$target_vendor%g
11487 s%@target_os@%$target_os%g
11489 s%@AUTOCONF@%$AUTOCONF%g
11490 s%@AUTOHEADER@%$AUTOHEADER%g
11491 s%@LIBOBJS@%$LIBOBJS%g
11493 s%@SAM_PWDB_LIB@%$SAM_PWDB_LIB%g
11494 s%@QUOTAOBJS@%$QUOTAOBJS%g
11495 s%@sambaconfdir@%$sambaconfdir%g
11496 s%@privatedir@%$privatedir%g
11497 s%@lockdir@%$lockdir%g
11498 s%@swatdir@%$swatdir%g
11499 s%@builddir@%$builddir%g
11504 cat >> $CONFIG_STATUS <<\EOF
11506 # Split the substitutions into bite-sized pieces for seds with
11507 # small command number limits, like on Digital OSF/1 and HP-UX.
11508 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
11509 ac_file
=1 # Number of current file.
11510 ac_beg
=1 # First line for current file.
11511 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
11514 while $ac_more_lines; do
11515 if test $ac_beg -gt 1; then
11516 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
11518 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
11520 if test ! -s conftest.s
$ac_file; then
11521 ac_more_lines
=false
11522 rm -f conftest.s
$ac_file
11524 if test -z "$ac_sed_cmds"; then
11525 ac_sed_cmds
="sed -f conftest.s$ac_file"
11527 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
11529 ac_file
=`expr $ac_file + 1`
11531 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
11534 if test -z "$ac_sed_cmds"; then
11539 cat >> $CONFIG_STATUS <<EOF
11541 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/samba-init.d"}
11543 cat >> $CONFIG_STATUS <<\EOF
11544 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
11545 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11547 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11548 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11549 *) ac_file_in
="${ac_file}.in" ;;
11552 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11554 # Remove last slash and all that follows it. Not all systems have dirname.
11555 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11556 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
11557 # The file is in a subdirectory.
11558 test ! -d "$ac_dir" && mkdir
"$ac_dir"
11559 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
11560 # A "../" for each directory in $ac_dir_suffix.
11561 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11563 ac_dir_suffix
= ac_dots
=
11566 case "$ac_given_srcdir" in
11568 if test -z "$ac_dots"; then top_srcdir
=.
11569 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11570 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
11571 *) # Relative path.
11572 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11573 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
11576 case "$ac_given_INSTALL" in
11577 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
11578 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
11581 echo creating
"$ac_file"
11583 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11585 *Makefile
*) ac_comsub
="1i\\
11586 # $configure_input" ;;
11590 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11592 s%@configure_input@%$configure_input%g
11593 s%@srcdir@%$srcdir%g
11594 s%@top_srcdir@%$top_srcdir%g
11595 s%@INSTALL@%$INSTALL%g
11596 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
11600 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11601 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11603 # ac_d sets the value in "#define NAME VALUE" lines.
11604 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11605 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
11608 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11609 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11610 ac_uB
='\([ ]\)%\1#\2define\3'
11613 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11614 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11615 ac_eB
='$%\1#\2define\3'
11619 if test "${CONFIG_HEADERS+set}" != set; then
11621 cat >> $CONFIG_STATUS <<EOF
11622 CONFIG_HEADERS="include/config.h"
11624 cat >> $CONFIG_STATUS <<\EOF
11626 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
11627 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11629 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11630 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11631 *) ac_file_in
="${ac_file}.in" ;;
11634 echo creating
$ac_file
11636 rm -f conftest.frag conftest.
in conftest.out
11637 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11638 cat $ac_file_inputs > conftest.
in
11642 # Transform confdefs.h into a sed script conftest.vals that substitutes
11643 # the proper values into config.h.in to produce config.h. And first:
11644 # Protect against being on the right side of a sed subst in config.status.
11645 # Protect against being in an unquoted here document in config.status.
11646 rm -f conftest.vals
11647 cat > conftest.hdr
<<\EOF
11650 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11654 sed -n -f conftest.hdr confdefs.h > conftest.vals
11657 # This sed command replaces #undef with comments. This is necessary, for
11658 # example, in the case of _POSIX_SOURCE, which is predefined and required
11659 # on some systems where configure will not decide to define it.
11660 cat >> conftest.vals <<\EOF
11661 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11664 # Break up conftest.vals because some shells have a limit on
11665 # the size of here documents, and old seds have small limits too.
11667 rm -f conftest.tail
11670 ac_lines=`grep -c . conftest.vals
`
11671 # grep -c gives empty output for an empty file on some AIX systems.
11672 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11673 # Write a limited-size here document to conftest.frag.
11674 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11675 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11677 sed -f conftest.frag conftest.in > conftest.out
11679 mv conftest.out conftest.in
11680 ' >> $CONFIG_STATUS
11681 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11682 rm -f conftest.vals
11683 mv conftest.tail conftest.vals
11685 rm -f conftest.vals
11687 cat >> $CONFIG_STATUS <<\EOF
11688 rm -f conftest.frag conftest.h
11689 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11690 cat conftest.in >> conftest.h
11692 if cmp -s $ac_file conftest.h 2>/dev/null; then
11693 echo "$ac_file is unchanged"
11696 # Remove last slash and all that follows it. Not all systems have dirname.
11697 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
11698 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11699 # The file is in a subdirectory.
11700 test ! -d "$ac_dir" && mkdir "$ac_dir"
11703 mv conftest.h $ac_file
11708 cat >> $CONFIG_STATUS <<EOF
11711 cat >> $CONFIG_STATUS <<\EOF
11713 case " $CONFIG_FILES " in
11714 *" script/samba-init.d "*) chmod +x script/samba-init.d
11719 chmod +x $CONFIG_STATUS
11720 rm -fr confdefs* $ac_clean_files
11721 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
11725 echo "prefix : $prefix"
11726 echo "exec_prefix : $exec_prefix"
11727 echo "bindir : $bindir"
11728 echo "sbindir : $sbindir"
11729 echo "libdir : $libdir"
11730 echo "vardir : $localstatedir"
11731 echo "sysconfdir : $sysconfdir"
11733 echo "sambaconfdir : $sambaconfdir"
11734 echo "privatedir : $privatedir"
11735 echo "lockdir : $lockdir"
11736 echo "swatdir : $swatdir"