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 nss.h 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 # Check for winbind nsswitch module name: solaris or glibc
2933 for ac_hdr
in nss_common.h
2935 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2936 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2937 echo "configure:2938: checking for $ac_hdr" >&5
2938 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2941 cat > conftest.
$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2946 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2947 { (eval echo configure
:2948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2948 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2949 if test -z "$ac_err"; then
2951 eval "ac_cv_header_$ac_safe=yes"
2954 echo "configure: failed program was:" >&5
2955 cat conftest.
$ac_ext >&5
2957 eval "ac_cv_header_$ac_safe=no"
2961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2962 echo "$ac_t""yes" 1>&6
2963 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2964 cat >> confdefs.h
<<EOF
2965 #define $ac_tr_hdr 1
2967 nssmodule
=nss_winbind.so
.1
2969 echo "$ac_t""no" 1>&6
2970 nssmodule
=libnss_winbind.so
2976 # Check to decide winbind pam module name: solaris or linux
2978 *linux
*) pam_winbind
=pam_winbind.so
;;
2979 *solaris
*) pam_winbind
=pam_winbind.so
.1;;
2980 *) pam_winbind
=pam_winbind.so
;;
2983 for ac_hdr
in security
/_pam_macros.h
2985 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2986 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2987 echo "configure:2988: checking for $ac_hdr" >&5
2988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2991 cat > conftest.
$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2996 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2997 { (eval echo configure
:2998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2998 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2999 if test -z "$ac_err"; then
3001 eval "ac_cv_header_$ac_safe=yes"
3004 echo "configure: failed program was:" >&5
3005 cat conftest.
$ac_ext >&5
3007 eval "ac_cv_header_$ac_safe=no"
3011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3012 echo "$ac_t""yes" 1>&6
3013 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3014 cat >> confdefs.h
<<EOF
3015 #define $ac_tr_hdr 1
3019 echo "$ac_t""no" 1>&6
3023 for ac_hdr
in features.h
3025 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3027 echo "configure:3028: checking for $ac_hdr" >&5
3028 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3031 cat > conftest.
$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3036 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3037 { (eval echo configure
:3038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3038 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3039 if test -z "$ac_err"; then
3041 eval "ac_cv_header_$ac_safe=yes"
3044 echo "configure: failed program was:" >&5
3045 cat conftest.
$ac_ext >&5
3047 eval "ac_cv_header_$ac_safe=no"
3051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3052 echo "$ac_t""yes" 1>&6
3053 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3054 cat >> confdefs.h
<<EOF
3055 #define $ac_tr_hdr 1
3059 echo "$ac_t""no" 1>&6
3064 echo $ac_n "checking size of int""... $ac_c" 1>&6
3065 echo "configure:3066: checking size of int" >&5
3066 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3067 echo $ac_n "(cached) $ac_c" 1>&6
3069 if test "$cross_compiling" = yes; then
3070 ac_cv_sizeof_int
=cross
3072 cat > conftest.
$ac_ext <<EOF
3073 #line 3074 "configure"
3074 #include "confdefs.h"
3078 FILE *f=fopen("conftestval", "w");
3080 fprintf(f, "%d\n", sizeof(int));
3084 if { (eval echo configure
:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3086 ac_cv_sizeof_int
=`cat conftestval`
3088 echo "configure: failed program was:" >&5
3089 cat conftest.
$ac_ext >&5
3097 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3098 cat >> confdefs.h
<<EOF
3099 #define SIZEOF_INT $ac_cv_sizeof_int
3103 echo $ac_n "checking size of long""... $ac_c" 1>&6
3104 echo "configure:3105: checking size of long" >&5
3105 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3108 if test "$cross_compiling" = yes; then
3109 ac_cv_sizeof_long
=cross
3111 cat > conftest.
$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3117 FILE *f=fopen("conftestval", "w");
3119 fprintf(f, "%d\n", sizeof(long));
3123 if { (eval echo configure
:3124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3125 ac_cv_sizeof_long
=`cat conftestval`
3127 echo "configure: failed program was:" >&5
3128 cat conftest.
$ac_ext >&5
3136 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3137 cat >> confdefs.h
<<EOF
3138 #define SIZEOF_LONG $ac_cv_sizeof_long
3142 echo $ac_n "checking size of short""... $ac_c" 1>&6
3143 echo "configure:3144: checking size of short" >&5
3144 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3145 echo $ac_n "(cached) $ac_c" 1>&6
3147 if test "$cross_compiling" = yes; then
3148 ac_cv_sizeof_short
=cross
3150 cat > conftest.
$ac_ext <<EOF
3151 #line 3152 "configure"
3152 #include "confdefs.h"
3156 FILE *f=fopen("conftestval", "w");
3158 fprintf(f, "%d\n", sizeof(short));
3162 if { (eval echo configure
:3163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3164 ac_cv_sizeof_short
=`cat conftestval`
3166 echo "configure: failed program was:" >&5
3167 cat conftest.
$ac_ext >&5
3169 ac_cv_sizeof_short
=0
3175 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3176 cat >> confdefs.h
<<EOF
3177 #define SIZEOF_SHORT $ac_cv_sizeof_short
3182 echo $ac_n "checking for working const""... $ac_c" 1>&6
3183 echo "configure:3184: checking for working const" >&5
3184 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3187 cat > conftest.
$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3193 /* Ultrix mips cc rejects this. */
3194 typedef int charset[2]; const charset x = {0,0};
3195 /* SunOS 4.1.1 cc rejects this. */
3196 char const *const *ccp;
3198 /* NEC SVR4.0.2 mips cc rejects this. */
3199 struct point {int x, y;};
3200 static struct point const zero = {0,0};
3201 /* AIX XL C 1.02.0.0 rejects this.
3202 It does not let you subtract one const X* pointer from another in an arm
3203 of an if-expression whose if-part is not a constant expression */
3204 const char *g = "string";
3205 ccp = &g + (g ? g-g : 0);
3206 /* HPUX 7.0 cc rejects these. */
3209 ccp = (char const *const *) p;
3210 { /* SCO 3.2v4 cc rejects this. */
3212 char const *s = 0 ? (char *) 0 : (char const *) 0;
3216 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3218 const int *foo = &x[0];
3221 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3222 typedef const int *iptr;
3226 { /* AIX XL C 1.02.0.0 rejects this saying
3227 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3228 struct s { int j; const int *ap[3]; };
3229 struct s *b; b->j = 5;
3231 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3237 if { (eval echo configure
:3238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3241 echo "configure: failed program was:" >&5
3242 cat conftest.
$ac_ext >&5
3249 echo "$ac_t""$ac_cv_c_const" 1>&6
3250 if test $ac_cv_c_const = no
; then
3251 cat >> confdefs.h
<<\EOF
3257 echo $ac_n "checking for inline""... $ac_c" 1>&6
3258 echo "configure:3259: checking for inline" >&5
3259 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3263 for ac_kw
in inline __inline__ __inline
; do
3264 cat > conftest.
$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3269 } int $ac_kw foo() {
3272 if { (eval echo configure
:3273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3274 ac_cv_c_inline
=$ac_kw; break
3276 echo "configure: failed program was:" >&5
3277 cat conftest.
$ac_ext >&5
3284 echo "$ac_t""$ac_cv_c_inline" 1>&6
3285 case "$ac_cv_c_inline" in
3287 no
) cat >> confdefs.h
<<\EOF
3291 *) cat >> confdefs.h
<<EOF
3292 #define inline $ac_cv_c_inline
3297 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3298 echo "configure:3299: checking whether byte ordering is bigendian" >&5
3299 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3302 ac_cv_c_bigendian
=unknown
3303 # See if sys/param.h defines the BYTE_ORDER macro.
3304 cat > conftest.
$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3307 #include <sys/types.h>
3308 #include <sys/param.h>
3311 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3316 if { (eval echo configure
:3317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3318 # It does; now see whether it defined to BIG_ENDIAN or not.
3319 cat > conftest.
$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3322 #include <sys/types.h>
3323 #include <sys/param.h>
3326 #if BYTE_ORDER != BIG_ENDIAN
3331 if { (eval echo configure
:3332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3333 ac_cv_c_bigendian
=yes
3335 echo "configure: failed program was:" >&5
3336 cat conftest.
$ac_ext >&5
3338 ac_cv_c_bigendian
=no
3342 echo "configure: failed program was:" >&5
3343 cat conftest.
$ac_ext >&5
3346 if test $ac_cv_c_bigendian = unknown
; then
3347 if test "$cross_compiling" = yes; then
3348 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3350 cat > conftest.
$ac_ext <<EOF
3351 #line 3352 "configure"
3352 #include "confdefs.h"
3354 /* Are we little or big endian? From Harbison&Steele. */
3358 char c[sizeof (long)];
3361 exit (u.c[sizeof (long) - 1] == 1);
3364 if { (eval echo configure
:3365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3366 ac_cv_c_bigendian
=no
3368 echo "configure: failed program was:" >&5
3369 cat conftest.
$ac_ext >&5
3371 ac_cv_c_bigendian
=yes
3379 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3380 if test $ac_cv_c_bigendian = yes; then
3381 cat >> confdefs.h
<<\EOF
3382 #define WORDS_BIGENDIAN 1
3387 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3388 echo "configure:3389: checking whether char is unsigned" >&5
3389 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3390 echo $ac_n "(cached) $ac_c" 1>&6
3392 if test "$GCC" = yes; then
3393 # GCC predefines this symbol on systems where it applies.
3394 cat > conftest.
$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3397 #ifdef __CHAR_UNSIGNED__
3402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3403 egrep "yes" >/dev
/null
2>&1; then
3405 ac_cv_c_char_unsigned
=yes
3408 ac_cv_c_char_unsigned
=no
3413 if test "$cross_compiling" = yes; then
3414 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3416 cat > conftest.
$ac_ext <<EOF
3417 #line 3418 "configure"
3418 #include "confdefs.h"
3419 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3420 #if !defined(__STDC__) || __STDC__ != 1
3424 volatile char c = 255; exit(c < 0);
3427 if { (eval echo configure
:3428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3429 ac_cv_c_char_unsigned
=yes
3431 echo "configure: failed program was:" >&5
3432 cat conftest.
$ac_ext >&5
3434 ac_cv_c_char_unsigned
=no
3442 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3443 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3444 cat >> confdefs.h
<<\EOF
3445 #define __CHAR_UNSIGNED__ 1
3451 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3452 echo "configure:3453: checking return type of signal handlers" >&5
3453 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3454 echo $ac_n "(cached) $ac_c" 1>&6
3456 cat > conftest.
$ac_ext <<EOF
3457 #line 3458 "configure"
3458 #include "confdefs.h"
3459 #include <sys/types.h>
3465 extern "C" void (*signal (int, void (*)(int)))(int);
3467 void (*signal ()) ();
3474 if { (eval echo configure
:3475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3476 ac_cv_type_signal
=void
3478 echo "configure: failed program was:" >&5
3479 cat conftest.
$ac_ext >&5
3481 ac_cv_type_signal
=int
3486 echo "$ac_t""$ac_cv_type_signal" 1>&6
3487 cat >> confdefs.h
<<EOF
3488 #define RETSIGTYPE $ac_cv_type_signal
3492 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3493 echo "configure:3494: checking for uid_t in sys/types.h" >&5
3494 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3497 cat > conftest.
$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3500 #include <sys/types.h>
3502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3503 egrep "uid_t" >/dev
/null
2>&1; then
3505 ac_cv_type_uid_t
=yes
3514 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3515 if test $ac_cv_type_uid_t = no
; then
3516 cat >> confdefs.h
<<\EOF
3520 cat >> confdefs.h
<<\EOF
3526 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3527 echo "configure:3528: checking for mode_t" >&5
3528 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3529 echo $ac_n "(cached) $ac_c" 1>&6
3531 cat > conftest.
$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 #include <sys/types.h>
3540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3541 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3543 ac_cv_type_mode_t
=yes
3546 ac_cv_type_mode_t
=no
3551 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3552 if test $ac_cv_type_mode_t = no
; then
3553 cat >> confdefs.h
<<\EOF
3559 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3560 echo "configure:3561: checking for off_t" >&5
3561 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3562 echo $ac_n "(cached) $ac_c" 1>&6
3564 cat > conftest.
$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3567 #include <sys/types.h>
3573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3574 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3576 ac_cv_type_off_t
=yes
3584 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3585 if test $ac_cv_type_off_t = no
; then
3586 cat >> confdefs.h
<<\EOF
3592 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3593 echo "configure:3594: checking for size_t" >&5
3594 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3597 cat > conftest.
$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 #include <sys/types.h>
3606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3607 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3609 ac_cv_type_size_t
=yes
3612 ac_cv_type_size_t
=no
3617 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3618 if test $ac_cv_type_size_t = no
; then
3619 cat >> confdefs.h
<<\EOF
3620 #define size_t unsigned
3625 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3626 echo "configure:3627: checking for pid_t" >&5
3627 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3630 cat > conftest.
$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 #include <sys/types.h>
3639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3642 ac_cv_type_pid_t
=yes
3650 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3651 if test $ac_cv_type_pid_t = no
; then
3652 cat >> confdefs.h
<<\EOF
3658 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3659 echo "configure:3660: checking for st_rdev in struct stat" >&5
3660 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3663 cat > conftest.
$ac_ext <<EOF
3664 #line 3665 "configure"
3665 #include "confdefs.h"
3666 #include <sys/types.h>
3667 #include <sys/stat.h>
3669 struct stat s; s.st_rdev;
3672 if { (eval echo configure
:3673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3674 ac_cv_struct_st_rdev
=yes
3676 echo "configure: failed program was:" >&5
3677 cat conftest.
$ac_ext >&5
3679 ac_cv_struct_st_rdev
=no
3684 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3685 if test $ac_cv_struct_st_rdev = yes; then
3686 cat >> confdefs.h
<<\EOF
3687 #define HAVE_ST_RDEV 1
3692 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3693 echo "configure:3694: checking for d_off in dirent" >&5
3694 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3695 echo $ac_n "(cached) $ac_c" 1>&6
3697 cat > conftest.
$ac_ext <<EOF
3698 #line 3699 "configure"
3699 #include "confdefs.h"
3702 #include <sys/types.h>
3705 struct dirent d; d.d_off;
3708 if { (eval echo configure
:3709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3710 ac_cv_dirent_d_off
=yes
3712 echo "configure: failed program was:" >&5
3713 cat conftest.
$ac_ext >&5
3715 ac_cv_dirent_d_off
=no
3720 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3721 if test $ac_cv_dirent_d_off = yes; then
3722 cat >> confdefs.h
<<\EOF
3723 #define HAVE_DIRENT_D_OFF 1
3728 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3729 echo "configure:3730: checking for ino_t" >&5
3730 if eval "test \"`echo '$''{'ac_cv_type_ino_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])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3745 ac_cv_type_ino_t
=yes
3753 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3754 if test $ac_cv_type_ino_t = no
; then
3755 cat >> confdefs.h
<<\EOF
3756 #define ino_t unsigned
3761 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3762 echo "configure:3763: checking for loff_t" >&5
3763 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3766 cat > conftest.
$ac_ext <<EOF
3767 #line 3768 "configure"
3768 #include "confdefs.h"
3769 #include <sys/types.h>
3775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3776 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3778 ac_cv_type_loff_t
=yes
3781 ac_cv_type_loff_t
=no
3786 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3787 if test $ac_cv_type_loff_t = no
; then
3788 cat >> confdefs.h
<<\EOF
3789 #define loff_t off_t
3794 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3795 echo "configure:3796: checking for offset_t" >&5
3796 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3797 echo $ac_n "(cached) $ac_c" 1>&6
3799 cat > conftest.
$ac_ext <<EOF
3800 #line 3801 "configure"
3801 #include "confdefs.h"
3802 #include <sys/types.h>
3808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3809 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3811 ac_cv_type_offset_t
=yes
3814 ac_cv_type_offset_t
=no
3819 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3820 if test $ac_cv_type_offset_t = no
; then
3821 cat >> confdefs.h
<<\EOF
3822 #define offset_t loff_t
3827 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3828 echo "configure:3829: checking for ssize_t" >&5
3829 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3830 echo $ac_n "(cached) $ac_c" 1>&6
3832 cat > conftest.
$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3835 #include <sys/types.h>
3841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3842 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3844 ac_cv_type_ssize_t
=yes
3847 ac_cv_type_ssize_t
=no
3852 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3853 if test $ac_cv_type_ssize_t = no
; then
3854 cat >> confdefs.h
<<\EOF
3860 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3861 echo "configure:3862: checking for wchar_t" >&5
3862 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3863 echo $ac_n "(cached) $ac_c" 1>&6
3865 cat > conftest.
$ac_ext <<EOF
3866 #line 3867 "configure"
3867 #include "confdefs.h"
3868 #include <sys/types.h>
3874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3875 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3877 ac_cv_type_wchar_t
=yes
3880 ac_cv_type_wchar_t
=no
3885 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3886 if test $ac_cv_type_wchar_t = no
; then
3887 cat >> confdefs.h
<<\EOF
3888 #define wchar_t unsigned short
3894 echo $ac_n "checking for tputs in -lcurses""... $ac_c" 1>&6
3895 echo "configure:3896: checking for tputs in -lcurses" >&5
3896 ac_lib_var
=`echo curses'_'tputs | sed 'y%./+-%__p_%'`
3897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3898 echo $ac_n "(cached) $ac_c" 1>&6
3900 ac_save_LIBS
="$LIBS"
3901 LIBS
="-lcurses $LIBS"
3902 cat > conftest.
$ac_ext <<EOF
3903 #line 3904 "configure"
3904 #include "confdefs.h"
3905 /* Override any gcc2 internal prototype to avoid an error. */
3906 /* We use char because int might match the return type of a gcc2
3907 builtin and then its argument prototype would still apply. */
3914 if { (eval echo configure
:3915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3916 eval "ac_cv_lib_$ac_lib_var=yes"
3918 echo "configure: failed program was:" >&5
3919 cat conftest.
$ac_ext >&5
3921 eval "ac_cv_lib_$ac_lib_var=no"
3924 LIBS
="$ac_save_LIBS"
3927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3928 echo "$ac_t""yes" 1>&6
3929 ac_tr_lib
=HAVE_LIB
`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3930 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3931 cat >> confdefs.h
<<EOF
3932 #define $ac_tr_lib 1
3935 LIBS
="-lcurses $LIBS"
3938 echo "$ac_t""no" 1>&6
3941 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3942 echo "configure:3943: checking for readline in -lreadline" >&5
3943 ac_lib_var
=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3944 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3945 echo $ac_n "(cached) $ac_c" 1>&6
3947 ac_save_LIBS
="$LIBS"
3948 LIBS
="-lreadline $LIBS"
3949 cat > conftest.
$ac_ext <<EOF
3950 #line 3951 "configure"
3951 #include "confdefs.h"
3952 /* Override any gcc2 internal prototype to avoid an error. */
3953 /* We use char because int might match the return type of a gcc2
3954 builtin and then its argument prototype would still apply. */
3961 if { (eval echo configure
:3962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3963 eval "ac_cv_lib_$ac_lib_var=yes"
3965 echo "configure: failed program was:" >&5
3966 cat conftest.
$ac_ext >&5
3968 eval "ac_cv_lib_$ac_lib_var=no"
3971 LIBS
="$ac_save_LIBS"
3974 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3975 echo "$ac_t""yes" 1>&6
3976 ac_tr_lib
=HAVE_LIB
`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3977 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3978 cat >> confdefs.h
<<EOF
3979 #define $ac_tr_lib 1
3982 LIBS
="-lreadline $LIBS"
3985 echo "$ac_t""no" 1>&6
3989 # we need libcups for CUPS support...
3990 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3991 echo "configure:3992: checking for httpConnect in -lcups" >&5
3992 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3994 echo $ac_n "(cached) $ac_c" 1>&6
3996 ac_save_LIBS
="$LIBS"
3998 cat > conftest.
$ac_ext <<EOF
3999 #line 4000 "configure"
4000 #include "confdefs.h"
4001 /* Override any gcc2 internal prototype to avoid an error. */
4002 /* We use char because int might match the return type of a gcc2
4003 builtin and then its argument prototype would still apply. */
4010 if { (eval echo configure
:4011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4012 eval "ac_cv_lib_$ac_lib_var=yes"
4014 echo "configure: failed program was:" >&5
4015 cat conftest.
$ac_ext >&5
4017 eval "ac_cv_lib_$ac_lib_var=no"
4020 LIBS
="$ac_save_LIBS"
4023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4024 echo "$ac_t""yes" 1>&6
4025 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4026 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4027 cat >> confdefs.h
<<EOF
4028 #define $ac_tr_lib 1
4034 echo "$ac_t""no" 1>&6
4038 # we need libdl for PAM and the new VFS code
4039 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4040 echo "configure:4041: checking for dlopen in -ldl" >&5
4041 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4045 ac_save_LIBS
="$LIBS"
4047 cat > conftest.
$ac_ext <<EOF
4048 #line 4049 "configure"
4049 #include "confdefs.h"
4050 /* Override any gcc2 internal prototype to avoid an error. */
4051 /* We use char because int might match the return type of a gcc2
4052 builtin and then its argument prototype would still apply. */
4059 if { (eval echo configure
:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4061 eval "ac_cv_lib_$ac_lib_var=yes"
4063 echo "configure: failed program was:" >&5
4064 cat conftest.
$ac_ext >&5
4066 eval "ac_cv_lib_$ac_lib_var=no"
4069 LIBS
="$ac_save_LIBS"
4072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4073 echo "$ac_t""yes" 1>&6
4075 cat >> confdefs.h
<<\EOF
4076 #define HAVE_LIBDL 1
4080 echo "$ac_t""no" 1>&6
4084 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4085 echo "configure:4086: checking for sig_atomic_t type" >&5
4086 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4090 cat > conftest.
$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4094 #include <sys/types.h>
4104 if { (eval echo configure
:4105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4106 samba_cv_sig_atomic_t
=yes
4108 echo "configure: failed program was:" >&5
4109 cat conftest.
$ac_ext >&5
4111 samba_cv_sig_atomic_t
=no
4116 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4117 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
4118 cat >> confdefs.h
<<\EOF
4119 #define HAVE_SIG_ATOMIC_T_TYPE 1
4124 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
4125 echo "configure:4126: checking for errno in errno.h" >&5
4126 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
4127 echo $ac_n "(cached) $ac_c" 1>&6
4130 cat > conftest.
$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4138 if { (eval echo configure
:4139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4142 echo "configure: failed program was:" >&5
4143 cat conftest.
$ac_ext >&5
4145 samba_cv_have_errno
=no
4150 echo "$ac_t""$samba_cv_errno" 1>&6
4151 if test x
"$samba_cv_errno" = x
"yes"; then
4152 cat >> confdefs.h
<<\EOF
4153 #define HAVE_ERRNO_DECL 1
4158 # stupid glibc has the functions but no declaration. grrrr.
4159 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4160 echo "configure:4161: checking for setresuid declaration" >&5
4161 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4165 cat > conftest.
$ac_ext <<EOF
4166 #line 4167 "configure"
4167 #include "confdefs.h"
4170 int i = (int)setresuid
4173 if { (eval echo configure
:4174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4175 samba_cv_have_setresuid_decl
=yes
4177 echo "configure: failed program was:" >&5
4178 cat conftest.
$ac_ext >&5
4180 samba_cv_have_setresuid_decl
=no
4185 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
4186 if test x
"$samba_cv_have_setresuid_decl" = x
"yes"; then
4187 cat >> confdefs.h
<<\EOF
4188 #define HAVE_SETRESUID_DECL 1
4193 # stupid glibc has the functions but no declaration. grrrr.
4194 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4195 echo "configure:4196: checking for setresgid declaration" >&5
4196 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
4197 echo $ac_n "(cached) $ac_c" 1>&6
4200 cat > conftest.
$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4205 int i = (int)setresgid
4208 if { (eval echo configure
:4209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4210 samba_cv_have_setresgid_decl
=yes
4212 echo "configure: failed program was:" >&5
4213 cat conftest.
$ac_ext >&5
4215 samba_cv_have_setresgid_decl
=no
4220 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
4221 if test x
"$samba_cv_have_setresgid_decl" = x
"yes"; then
4222 cat >> confdefs.h
<<\EOF
4223 #define HAVE_SETRESGID_DECL 1
4228 # and glibc has setresuid under linux but the function does
4229 # nothing until kernel 2.1.44! very dumb.
4230 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4231 echo "configure:4232: checking for real setresuid" >&5
4232 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4236 if test "$cross_compiling" = yes; then
4237 samba_cv_have_setresuid
=cross
4239 cat > conftest.
$ac_ext <<EOF
4240 #line 4241 "configure"
4241 #include "confdefs.h"
4243 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4245 if { (eval echo configure
:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4247 samba_cv_have_setresuid
=yes
4249 echo "configure: failed program was:" >&5
4250 cat conftest.
$ac_ext >&5
4252 samba_cv_have_setresuid
=no
4259 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4260 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4261 cat >> confdefs.h
<<\EOF
4262 #define HAVE_SETRESUID 1
4267 # Do the same check for setresguid...
4269 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4270 echo "configure:4271: checking for real setresgid" >&5
4271 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4272 echo $ac_n "(cached) $ac_c" 1>&6
4275 if test "$cross_compiling" = yes; then
4276 samba_cv_have_setresgid
=cross
4278 cat > conftest.
$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4283 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4285 if { (eval echo configure
:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4287 samba_cv_have_setresgid
=yes
4289 echo "configure: failed program was:" >&5
4290 cat conftest.
$ac_ext >&5
4292 samba_cv_have_setresgid
=no
4299 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4300 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4301 cat >> confdefs.h
<<\EOF
4302 #define HAVE_SETRESGID 1
4307 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4308 echo "configure:4309: checking for 8-bit clean memcmp" >&5
4309 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4310 echo $ac_n "(cached) $ac_c" 1>&6
4312 if test "$cross_compiling" = yes; then
4313 ac_cv_func_memcmp_clean
=no
4315 cat > conftest.
$ac_ext <<EOF
4316 #line 4317 "configure"
4317 #include "confdefs.h"
4321 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4322 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4326 if { (eval echo configure
:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4328 ac_cv_func_memcmp_clean
=yes
4330 echo "configure: failed program was:" >&5
4331 cat conftest.
$ac_ext >&5
4333 ac_cv_func_memcmp_clean
=no
4340 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4341 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4344 ###############################################
4345 # test for where we get crypt() from
4346 for ac_func
in crypt
4348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4349 echo "configure:4350: checking for $ac_func" >&5
4350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4353 cat > conftest.
$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4356 /* System header to define __stub macros and hopefully few prototypes,
4357 which can conflict with char $ac_func(); below. */
4359 /* Override any gcc2 internal prototype to avoid an error. */
4360 /* We use char because int might match the return type of a gcc2
4361 builtin and then its argument prototype would still apply. */
4366 /* The GNU C library defines this for functions which it implements
4367 to always fail with ENOSYS. Some functions are actually named
4368 something starting with __ and the normal name is an alias. */
4369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4377 if { (eval echo configure
:4378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4379 eval "ac_cv_func_$ac_func=yes"
4381 echo "configure: failed program was:" >&5
4382 cat conftest.
$ac_ext >&5
4384 eval "ac_cv_func_$ac_func=no"
4389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4390 echo "$ac_t""yes" 1>&6
4391 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4392 cat >> confdefs.h
<<EOF
4393 #define $ac_tr_func 1
4397 echo "$ac_t""no" 1>&6
4401 if test x
"$ac_cv_func_crypt" = x
"no"; then
4402 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4403 echo "configure:4404: checking for crypt in -lcrypt" >&5
4404 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4406 echo $ac_n "(cached) $ac_c" 1>&6
4408 ac_save_LIBS
="$LIBS"
4409 LIBS
="-lcrypt $LIBS"
4410 cat > conftest.
$ac_ext <<EOF
4411 #line 4412 "configure"
4412 #include "confdefs.h"
4413 /* Override any gcc2 internal prototype to avoid an error. */
4414 /* We use char because int might match the return type of a gcc2
4415 builtin and then its argument prototype would still apply. */
4422 if { (eval echo configure
:4423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4424 eval "ac_cv_lib_$ac_lib_var=yes"
4426 echo "configure: failed program was:" >&5
4427 cat conftest.
$ac_ext >&5
4429 eval "ac_cv_lib_$ac_lib_var=no"
4432 LIBS
="$ac_save_LIBS"
4435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4436 echo "$ac_t""yes" 1>&6
4437 LIBS
="$LIBS -lcrypt";
4438 cat >> confdefs.h
<<\EOF
4439 #define HAVE_CRYPT 1
4443 echo "$ac_t""no" 1>&6
4449 ###############################################
4450 # test for where we get readline() from
4451 echo $ac_n "checking for readline""... $ac_c" 1>&6
4452 echo "configure:4453: checking for readline" >&5
4453 if eval "test \"`echo '$''{'samba_cv_HAVE_READLINE'+set}'`\" = set"; then
4454 echo $ac_n "(cached) $ac_c" 1>&6
4457 if test "$cross_compiling" = yes; then
4458 samba_cv_HAVE_READLINE
=cross
4460 cat > conftest.
$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4463 #include "${srcdir-.}/tests/readline.c"
4465 if { (eval echo configure
:4466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4467 samba_cv_HAVE_READLINE
=yes
4469 echo "configure: failed program was:" >&5
4470 cat conftest.
$ac_ext >&5
4472 samba_cv_HAVE_READLINE
=no
4479 echo "$ac_t""$samba_cv_HAVE_READLINE" 1>&6
4480 if test x
"$samba_cv_HAVE_READLINE" = x
"yes"; then
4481 cat >> confdefs.h
<<\EOF
4482 #define HAVE_READLINE 1
4488 # The following test taken from the cvs sources
4489 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4490 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4491 # libsocket.so which has a bad implementation of gethostbyname (it
4492 # only looks in /etc/hosts), so we only look for -lsocket if we need
4494 for ac_func
in connect
4496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4497 echo "configure:4498: checking for $ac_func" >&5
4498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4499 echo $ac_n "(cached) $ac_c" 1>&6
4501 cat > conftest.
$ac_ext <<EOF
4502 #line 4503 "configure"
4503 #include "confdefs.h"
4504 /* System header to define __stub macros and hopefully few prototypes,
4505 which can conflict with char $ac_func(); below. */
4507 /* Override any gcc2 internal prototype to avoid an error. */
4508 /* We use char because int might match the return type of a gcc2
4509 builtin and then its argument prototype would still apply. */
4514 /* The GNU C library defines this for functions which it implements
4515 to always fail with ENOSYS. Some functions are actually named
4516 something starting with __ and the normal name is an alias. */
4517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4525 if { (eval echo configure
:4526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4527 eval "ac_cv_func_$ac_func=yes"
4529 echo "configure: failed program was:" >&5
4530 cat conftest.
$ac_ext >&5
4532 eval "ac_cv_func_$ac_func=no"
4537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4538 echo "$ac_t""yes" 1>&6
4539 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4540 cat >> confdefs.h
<<EOF
4541 #define $ac_tr_func 1
4545 echo "$ac_t""no" 1>&6
4549 if test x
"$ac_cv_func_connect" = x
"no"; then
4552 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4553 echo "configure:4554: checking for printf in -lnsl_s" >&5
4554 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4558 ac_save_LIBS
="$LIBS"
4559 LIBS
="-lnsl_s $LIBS"
4560 cat > conftest.
$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4563 /* Override any gcc2 internal prototype to avoid an error. */
4564 /* We use char because int might match the return type of a gcc2
4565 builtin and then its argument prototype would still apply. */
4572 if { (eval echo configure
:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4574 eval "ac_cv_lib_$ac_lib_var=yes"
4576 echo "configure: failed program was:" >&5
4577 cat conftest.
$ac_ext >&5
4579 eval "ac_cv_lib_$ac_lib_var=no"
4582 LIBS
="$ac_save_LIBS"
4585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4586 echo "$ac_t""yes" 1>&6
4587 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4588 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4589 cat >> confdefs.h
<<EOF
4590 #define $ac_tr_lib 1
4593 LIBS
="-lnsl_s $LIBS"
4596 echo "$ac_t""no" 1>&6
4602 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4603 echo "configure:4604: checking for printf in -lnsl" >&5
4604 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4606 echo $ac_n "(cached) $ac_c" 1>&6
4608 ac_save_LIBS
="$LIBS"
4610 cat > conftest.
$ac_ext <<EOF
4611 #line 4612 "configure"
4612 #include "confdefs.h"
4613 /* Override any gcc2 internal prototype to avoid an error. */
4614 /* We use char because int might match the return type of a gcc2
4615 builtin and then its argument prototype would still apply. */
4622 if { (eval echo configure
:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4624 eval "ac_cv_lib_$ac_lib_var=yes"
4626 echo "configure: failed program was:" >&5
4627 cat conftest.
$ac_ext >&5
4629 eval "ac_cv_lib_$ac_lib_var=no"
4632 LIBS
="$ac_save_LIBS"
4635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4636 echo "$ac_t""yes" 1>&6
4637 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4638 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4639 cat >> confdefs.h
<<EOF
4640 #define $ac_tr_lib 1
4646 echo "$ac_t""no" 1>&6
4652 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4653 echo "configure:4654: checking for connect in -lsocket" >&5
4654 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4656 echo $ac_n "(cached) $ac_c" 1>&6
4658 ac_save_LIBS
="$LIBS"
4659 LIBS
="-lsocket $LIBS"
4660 cat > conftest.
$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4663 /* Override any gcc2 internal prototype to avoid an error. */
4664 /* We use char because int might match the return type of a gcc2
4665 builtin and then its argument prototype would still apply. */
4672 if { (eval echo configure
:4673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4674 eval "ac_cv_lib_$ac_lib_var=yes"
4676 echo "configure: failed program was:" >&5
4677 cat conftest.
$ac_ext >&5
4679 eval "ac_cv_lib_$ac_lib_var=no"
4682 LIBS
="$ac_save_LIBS"
4685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4686 echo "$ac_t""yes" 1>&6
4687 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4688 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4689 cat >> confdefs.h
<<EOF
4690 #define $ac_tr_lib 1
4693 LIBS
="-lsocket $LIBS"
4696 echo "$ac_t""no" 1>&6
4702 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4703 echo "configure:4704: checking for connect in -linet" >&5
4704 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4705 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4706 echo $ac_n "(cached) $ac_c" 1>&6
4708 ac_save_LIBS
="$LIBS"
4710 cat > conftest.
$ac_ext <<EOF
4711 #line 4712 "configure"
4712 #include "confdefs.h"
4713 /* Override any gcc2 internal prototype to avoid an error. */
4714 /* We use char because int might match the return type of a gcc2
4715 builtin and then its argument prototype would still apply. */
4722 if { (eval echo configure
:4723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4724 eval "ac_cv_lib_$ac_lib_var=yes"
4726 echo "configure: failed program was:" >&5
4727 cat conftest.
$ac_ext >&5
4729 eval "ac_cv_lib_$ac_lib_var=no"
4732 LIBS
="$ac_save_LIBS"
4735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4736 echo "$ac_t""yes" 1>&6
4737 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4738 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4739 cat >> confdefs.h
<<EOF
4740 #define $ac_tr_lib 1
4746 echo "$ac_t""no" 1>&6
4750 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4751 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4752 # ac_cv_func_connect=yes
4753 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4754 cat >> confdefs.h
<<\EOF
4755 #define HAVE_CONNECT 1
4761 # Check if we have execl, if not we need to compile smbrun.
4762 for ac_func
in execl
4764 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4765 echo "configure:4766: checking for $ac_func" >&5
4766 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4767 echo $ac_n "(cached) $ac_c" 1>&6
4769 cat > conftest.
$ac_ext <<EOF
4770 #line 4771 "configure"
4771 #include "confdefs.h"
4772 /* System header to define __stub macros and hopefully few prototypes,
4773 which can conflict with char $ac_func(); below. */
4775 /* Override any gcc2 internal prototype to avoid an error. */
4776 /* We use char because int might match the return type of a gcc2
4777 builtin and then its argument prototype would still apply. */
4782 /* The GNU C library defines this for functions which it implements
4783 to always fail with ENOSYS. Some functions are actually named
4784 something starting with __ and the normal name is an alias. */
4785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4793 if { (eval echo configure
:4794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4795 eval "ac_cv_func_$ac_func=yes"
4797 echo "configure: failed program was:" >&5
4798 cat conftest.
$ac_ext >&5
4800 eval "ac_cv_func_$ac_func=no"
4805 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4806 echo "$ac_t""yes" 1>&6
4807 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4808 cat >> confdefs.h
<<EOF
4809 #define $ac_tr_func 1
4813 echo "$ac_t""no" 1>&6
4817 if test x
"$ac_cv_func_execl" = x
"no"; then
4818 RUNPROG
="bin/smbrun"
4823 for ac_func
in waitpid getcwd strdup strtoul strerror chown
chmod chroot
4825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4826 echo "configure:4827: checking for $ac_func" >&5
4827 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4830 cat > conftest.
$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4833 /* System header to define __stub macros and hopefully few prototypes,
4834 which can conflict with char $ac_func(); below. */
4836 /* Override any gcc2 internal prototype to avoid an error. */
4837 /* We use char because int might match the return type of a gcc2
4838 builtin and then its argument prototype would still apply. */
4843 /* The GNU C library defines this for functions which it implements
4844 to always fail with ENOSYS. Some functions are actually named
4845 something starting with __ and the normal name is an alias. */
4846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4854 if { (eval echo configure
:4855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4856 eval "ac_cv_func_$ac_func=yes"
4858 echo "configure: failed program was:" >&5
4859 cat conftest.
$ac_ext >&5
4861 eval "ac_cv_func_$ac_func=no"
4866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4867 echo "$ac_t""yes" 1>&6
4868 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4869 cat >> confdefs.h
<<EOF
4870 #define $ac_tr_func 1
4874 echo "$ac_t""no" 1>&6
4878 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
4880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4881 echo "configure:4882: checking for $ac_func" >&5
4882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4883 echo $ac_n "(cached) $ac_c" 1>&6
4885 cat > conftest.
$ac_ext <<EOF
4886 #line 4887 "configure"
4887 #include "confdefs.h"
4888 /* System header to define __stub macros and hopefully few prototypes,
4889 which can conflict with char $ac_func(); below. */
4891 /* Override any gcc2 internal prototype to avoid an error. */
4892 /* We use char because int might match the return type of a gcc2
4893 builtin and then its argument prototype would still apply. */
4898 /* The GNU C library defines this for functions which it implements
4899 to always fail with ENOSYS. Some functions are actually named
4900 something starting with __ and the normal name is an alias. */
4901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4909 if { (eval echo configure
:4910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4911 eval "ac_cv_func_$ac_func=yes"
4913 echo "configure: failed program was:" >&5
4914 cat conftest.
$ac_ext >&5
4916 eval "ac_cv_func_$ac_func=no"
4921 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4922 echo "$ac_t""yes" 1>&6
4923 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4924 cat >> confdefs.h
<<EOF
4925 #define $ac_tr_func 1
4929 echo "$ac_t""no" 1>&6
4933 for ac_func
in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4935 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4936 echo "configure:4937: checking for $ac_func" >&5
4937 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4938 echo $ac_n "(cached) $ac_c" 1>&6
4940 cat > conftest.
$ac_ext <<EOF
4941 #line 4942 "configure"
4942 #include "confdefs.h"
4943 /* System header to define __stub macros and hopefully few prototypes,
4944 which can conflict with char $ac_func(); below. */
4946 /* Override any gcc2 internal prototype to avoid an error. */
4947 /* We use char because int might match the return type of a gcc2
4948 builtin and then its argument prototype would still apply. */
4953 /* The GNU C library defines this for functions which it implements
4954 to always fail with ENOSYS. Some functions are actually named
4955 something starting with __ and the normal name is an alias. */
4956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4964 if { (eval echo configure
:4965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4966 eval "ac_cv_func_$ac_func=yes"
4968 echo "configure: failed program was:" >&5
4969 cat conftest.
$ac_ext >&5
4971 eval "ac_cv_func_$ac_func=no"
4976 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4977 echo "$ac_t""yes" 1>&6
4978 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4979 cat >> confdefs.h
<<EOF
4980 #define $ac_tr_func 1
4984 echo "$ac_t""no" 1>&6
4988 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4990 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4991 echo "configure:4992: checking for $ac_func" >&5
4992 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4993 echo $ac_n "(cached) $ac_c" 1>&6
4995 cat > conftest.
$ac_ext <<EOF
4996 #line 4997 "configure"
4997 #include "confdefs.h"
4998 /* System header to define __stub macros and hopefully few prototypes,
4999 which can conflict with char $ac_func(); below. */
5001 /* Override any gcc2 internal prototype to avoid an error. */
5002 /* We use char because int might match the return type of a gcc2
5003 builtin and then its argument prototype would still apply. */
5008 /* The GNU C library defines this for functions which it implements
5009 to always fail with ENOSYS. Some functions are actually named
5010 something starting with __ and the normal name is an alias. */
5011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5019 if { (eval echo configure
:5020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5021 eval "ac_cv_func_$ac_func=yes"
5023 echo "configure: failed program was:" >&5
5024 cat conftest.
$ac_ext >&5
5026 eval "ac_cv_func_$ac_func=no"
5031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5032 echo "$ac_t""yes" 1>&6
5033 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5034 cat >> confdefs.h
<<EOF
5035 #define $ac_tr_func 1
5039 echo "$ac_t""no" 1>&6
5043 for ac_func
in initgroups
select rdchk getgrnam getgrent pathconf
5045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5046 echo "configure:5047: checking for $ac_func" >&5
5047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5048 echo $ac_n "(cached) $ac_c" 1>&6
5050 cat > conftest.
$ac_ext <<EOF
5051 #line 5052 "configure"
5052 #include "confdefs.h"
5053 /* System header to define __stub macros and hopefully few prototypes,
5054 which can conflict with char $ac_func(); below. */
5056 /* Override any gcc2 internal prototype to avoid an error. */
5057 /* We use char because int might match the return type of a gcc2
5058 builtin and then its argument prototype would still apply. */
5063 /* The GNU C library defines this for functions which it implements
5064 to always fail with ENOSYS. Some functions are actually named
5065 something starting with __ and the normal name is an alias. */
5066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5074 if { (eval echo configure
:5075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5076 eval "ac_cv_func_$ac_func=yes"
5078 echo "configure: failed program was:" >&5
5079 cat conftest.
$ac_ext >&5
5081 eval "ac_cv_func_$ac_func=no"
5086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5087 echo "$ac_t""yes" 1>&6
5088 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5089 cat >> confdefs.h
<<EOF
5090 #define $ac_tr_func 1
5094 echo "$ac_t""no" 1>&6
5098 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5101 echo "configure:5102: checking for $ac_func" >&5
5102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5103 echo $ac_n "(cached) $ac_c" 1>&6
5105 cat > conftest.
$ac_ext <<EOF
5106 #line 5107 "configure"
5107 #include "confdefs.h"
5108 /* System header to define __stub macros and hopefully few prototypes,
5109 which can conflict with char $ac_func(); below. */
5111 /* Override any gcc2 internal prototype to avoid an error. */
5112 /* We use char because int might match the return type of a gcc2
5113 builtin and then its argument prototype would still apply. */
5118 /* The GNU C library defines this for functions which it implements
5119 to always fail with ENOSYS. Some functions are actually named
5120 something starting with __ and the normal name is an alias. */
5121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5129 if { (eval echo configure
:5130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5131 eval "ac_cv_func_$ac_func=yes"
5133 echo "configure: failed program was:" >&5
5134 cat conftest.
$ac_ext >&5
5136 eval "ac_cv_func_$ac_func=no"
5141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5142 echo "$ac_t""yes" 1>&6
5143 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5144 cat >> confdefs.h
<<EOF
5145 #define $ac_tr_func 1
5149 echo "$ac_t""no" 1>&6
5153 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5156 echo "configure:5157: checking for $ac_func" >&5
5157 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5158 echo $ac_n "(cached) $ac_c" 1>&6
5160 cat > conftest.
$ac_ext <<EOF
5161 #line 5162 "configure"
5162 #include "confdefs.h"
5163 /* System header to define __stub macros and hopefully few prototypes,
5164 which can conflict with char $ac_func(); below. */
5166 /* Override any gcc2 internal prototype to avoid an error. */
5167 /* We use char because int might match the return type of a gcc2
5168 builtin and then its argument prototype would still apply. */
5173 /* The GNU C library defines this for functions which it implements
5174 to always fail with ENOSYS. Some functions are actually named
5175 something starting with __ and the normal name is an alias. */
5176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5184 if { (eval echo configure
:5185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5186 eval "ac_cv_func_$ac_func=yes"
5188 echo "configure: failed program was:" >&5
5189 cat conftest.
$ac_ext >&5
5191 eval "ac_cv_func_$ac_func=no"
5196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5197 echo "$ac_t""yes" 1>&6
5198 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5199 cat >> confdefs.h
<<EOF
5200 #define $ac_tr_func 1
5204 echo "$ac_t""no" 1>&6
5208 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid yp_get_default_domain getpwanam
5210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5211 echo "configure:5212: checking for $ac_func" >&5
5212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5213 echo $ac_n "(cached) $ac_c" 1>&6
5215 cat > conftest.
$ac_ext <<EOF
5216 #line 5217 "configure"
5217 #include "confdefs.h"
5218 /* System header to define __stub macros and hopefully few prototypes,
5219 which can conflict with char $ac_func(); below. */
5221 /* Override any gcc2 internal prototype to avoid an error. */
5222 /* We use char because int might match the return type of a gcc2
5223 builtin and then its argument prototype would still apply. */
5228 /* The GNU C library defines this for functions which it implements
5229 to always fail with ENOSYS. Some functions are actually named
5230 something starting with __ and the normal name is an alias. */
5231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5239 if { (eval echo configure
:5240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5241 eval "ac_cv_func_$ac_func=yes"
5243 echo "configure: failed program was:" >&5
5244 cat conftest.
$ac_ext >&5
5246 eval "ac_cv_func_$ac_func=no"
5251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5252 echo "$ac_t""yes" 1>&6
5253 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5254 cat >> confdefs.h
<<EOF
5255 #define $ac_tr_func 1
5259 echo "$ac_t""no" 1>&6
5263 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl
5265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5266 echo "configure:5267: checking for $ac_func" >&5
5267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5268 echo $ac_n "(cached) $ac_c" 1>&6
5270 cat > conftest.
$ac_ext <<EOF
5271 #line 5272 "configure"
5272 #include "confdefs.h"
5273 /* System header to define __stub macros and hopefully few prototypes,
5274 which can conflict with char $ac_func(); below. */
5276 /* Override any gcc2 internal prototype to avoid an error. */
5277 /* We use char because int might match the return type of a gcc2
5278 builtin and then its argument prototype would still apply. */
5283 /* The GNU C library defines this for functions which it implements
5284 to always fail with ENOSYS. Some functions are actually named
5285 something starting with __ and the normal name is an alias. */
5286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5294 if { (eval echo configure
:5295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5296 eval "ac_cv_func_$ac_func=yes"
5298 echo "configure: failed program was:" >&5
5299 cat conftest.
$ac_ext >&5
5301 eval "ac_cv_func_$ac_func=no"
5306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5307 echo "$ac_t""yes" 1>&6
5308 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5309 cat >> confdefs.h
<<EOF
5310 #define $ac_tr_func 1
5314 echo "$ac_t""no" 1>&6
5318 for ac_func
in mmap64
5320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5321 echo "configure:5322: checking for $ac_func" >&5
5322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5323 echo $ac_n "(cached) $ac_c" 1>&6
5325 cat > conftest.
$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5328 /* System header to define __stub macros and hopefully few prototypes,
5329 which can conflict with char $ac_func(); below. */
5331 /* Override any gcc2 internal prototype to avoid an error. */
5332 /* We use char because int might match the return type of a gcc2
5333 builtin and then its argument prototype would still apply. */
5338 /* The GNU C library defines this for functions which it implements
5339 to always fail with ENOSYS. Some functions are actually named
5340 something starting with __ and the normal name is an alias. */
5341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5349 if { (eval echo configure
:5350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5351 eval "ac_cv_func_$ac_func=yes"
5353 echo "configure: failed program was:" >&5
5354 cat conftest.
$ac_ext >&5
5356 eval "ac_cv_func_$ac_func=no"
5361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5362 echo "$ac_t""yes" 1>&6
5363 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5364 cat >> confdefs.h
<<EOF
5365 #define $ac_tr_func 1
5369 echo "$ac_t""no" 1>&6
5374 # syscall() is needed for smbwrapper.
5375 for ac_func
in syscall
5377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5378 echo "configure:5379: checking for $ac_func" >&5
5379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5380 echo $ac_n "(cached) $ac_c" 1>&6
5382 cat > conftest.
$ac_ext <<EOF
5383 #line 5384 "configure"
5384 #include "confdefs.h"
5385 /* System header to define __stub macros and hopefully few prototypes,
5386 which can conflict with char $ac_func(); below. */
5388 /* Override any gcc2 internal prototype to avoid an error. */
5389 /* We use char because int might match the return type of a gcc2
5390 builtin and then its argument prototype would still apply. */
5395 /* The GNU C library defines this for functions which it implements
5396 to always fail with ENOSYS. Some functions are actually named
5397 something starting with __ and the normal name is an alias. */
5398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5406 if { (eval echo configure
:5407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5408 eval "ac_cv_func_$ac_func=yes"
5410 echo "configure: failed program was:" >&5
5411 cat conftest.
$ac_ext >&5
5413 eval "ac_cv_func_$ac_func=no"
5418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5419 echo "$ac_t""yes" 1>&6
5420 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5421 cat >> confdefs.h
<<EOF
5422 #define $ac_tr_func 1
5426 echo "$ac_t""no" 1>&6
5431 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5434 echo "configure:5435: checking for $ac_func" >&5
5435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5436 echo $ac_n "(cached) $ac_c" 1>&6
5438 cat > conftest.
$ac_ext <<EOF
5439 #line 5440 "configure"
5440 #include "confdefs.h"
5441 /* System header to define __stub macros and hopefully few prototypes,
5442 which can conflict with char $ac_func(); below. */
5444 /* Override any gcc2 internal prototype to avoid an error. */
5445 /* We use char because int might match the return type of a gcc2
5446 builtin and then its argument prototype would still apply. */
5451 /* The GNU C library defines this for functions which it implements
5452 to always fail with ENOSYS. Some functions are actually named
5453 something starting with __ and the normal name is an alias. */
5454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5462 if { (eval echo configure
:5463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5464 eval "ac_cv_func_$ac_func=yes"
5466 echo "configure: failed program was:" >&5
5467 cat conftest.
$ac_ext >&5
5469 eval "ac_cv_func_$ac_func=no"
5474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5475 echo "$ac_t""yes" 1>&6
5476 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5477 cat >> confdefs.h
<<EOF
5478 #define $ac_tr_func 1
5482 echo "$ac_t""no" 1>&6
5486 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5489 echo "configure:5490: checking for $ac_func" >&5
5490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5491 echo $ac_n "(cached) $ac_c" 1>&6
5493 cat > conftest.
$ac_ext <<EOF
5494 #line 5495 "configure"
5495 #include "confdefs.h"
5496 /* System header to define __stub macros and hopefully few prototypes,
5497 which can conflict with char $ac_func(); below. */
5499 /* Override any gcc2 internal prototype to avoid an error. */
5500 /* We use char because int might match the return type of a gcc2
5501 builtin and then its argument prototype would still apply. */
5506 /* The GNU C library defines this for functions which it implements
5507 to always fail with ENOSYS. Some functions are actually named
5508 something starting with __ and the normal name is an alias. */
5509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5517 if { (eval echo configure
:5518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5519 eval "ac_cv_func_$ac_func=yes"
5521 echo "configure: failed program was:" >&5
5522 cat conftest.
$ac_ext >&5
5524 eval "ac_cv_func_$ac_func=no"
5529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5530 echo "$ac_t""yes" 1>&6
5531 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5532 cat >> confdefs.h
<<EOF
5533 #define $ac_tr_func 1
5537 echo "$ac_t""no" 1>&6
5541 for ac_func
in __getcwd _getcwd
5543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5544 echo "configure:5545: checking for $ac_func" >&5
5545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5546 echo $ac_n "(cached) $ac_c" 1>&6
5548 cat > conftest.
$ac_ext <<EOF
5549 #line 5550 "configure"
5550 #include "confdefs.h"
5551 /* System header to define __stub macros and hopefully few prototypes,
5552 which can conflict with char $ac_func(); below. */
5554 /* Override any gcc2 internal prototype to avoid an error. */
5555 /* We use char because int might match the return type of a gcc2
5556 builtin and then its argument prototype would still apply. */
5561 /* The GNU C library defines this for functions which it implements
5562 to always fail with ENOSYS. Some functions are actually named
5563 something starting with __ and the normal name is an alias. */
5564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5572 if { (eval echo configure
:5573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5574 eval "ac_cv_func_$ac_func=yes"
5576 echo "configure: failed program was:" >&5
5577 cat conftest.
$ac_ext >&5
5579 eval "ac_cv_func_$ac_func=no"
5584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5585 echo "$ac_t""yes" 1>&6
5586 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5587 cat >> confdefs.h
<<EOF
5588 #define $ac_tr_func 1
5592 echo "$ac_t""no" 1>&6
5596 for ac_func
in __xstat __fxstat __lxstat
5598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5599 echo "configure:5600: checking for $ac_func" >&5
5600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5601 echo $ac_n "(cached) $ac_c" 1>&6
5603 cat > conftest.
$ac_ext <<EOF
5604 #line 5605 "configure"
5605 #include "confdefs.h"
5606 /* System header to define __stub macros and hopefully few prototypes,
5607 which can conflict with char $ac_func(); below. */
5609 /* Override any gcc2 internal prototype to avoid an error. */
5610 /* We use char because int might match the return type of a gcc2
5611 builtin and then its argument prototype would still apply. */
5616 /* The GNU C library defines this for functions which it implements
5617 to always fail with ENOSYS. Some functions are actually named
5618 something starting with __ and the normal name is an alias. */
5619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5627 if { (eval echo configure
:5628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5629 eval "ac_cv_func_$ac_func=yes"
5631 echo "configure: failed program was:" >&5
5632 cat conftest.
$ac_ext >&5
5634 eval "ac_cv_func_$ac_func=no"
5639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5640 echo "$ac_t""yes" 1>&6
5641 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5642 cat >> confdefs.h
<<EOF
5643 #define $ac_tr_func 1
5647 echo "$ac_t""no" 1>&6
5651 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
5653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5654 echo "configure:5655: checking for $ac_func" >&5
5655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5656 echo $ac_n "(cached) $ac_c" 1>&6
5658 cat > conftest.
$ac_ext <<EOF
5659 #line 5660 "configure"
5660 #include "confdefs.h"
5661 /* System header to define __stub macros and hopefully few prototypes,
5662 which can conflict with char $ac_func(); below. */
5664 /* Override any gcc2 internal prototype to avoid an error. */
5665 /* We use char because int might match the return type of a gcc2
5666 builtin and then its argument prototype would still apply. */
5671 /* The GNU C library defines this for functions which it implements
5672 to always fail with ENOSYS. Some functions are actually named
5673 something starting with __ and the normal name is an alias. */
5674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5682 if { (eval echo configure
:5683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5684 eval "ac_cv_func_$ac_func=yes"
5686 echo "configure: failed program was:" >&5
5687 cat conftest.
$ac_ext >&5
5689 eval "ac_cv_func_$ac_func=no"
5694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5695 echo "$ac_t""yes" 1>&6
5696 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5697 cat >> confdefs.h
<<EOF
5698 #define $ac_tr_func 1
5702 echo "$ac_t""no" 1>&6
5706 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5709 echo "configure:5710: checking for $ac_func" >&5
5710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5711 echo $ac_n "(cached) $ac_c" 1>&6
5713 cat > conftest.
$ac_ext <<EOF
5714 #line 5715 "configure"
5715 #include "confdefs.h"
5716 /* System header to define __stub macros and hopefully few prototypes,
5717 which can conflict with char $ac_func(); below. */
5719 /* Override any gcc2 internal prototype to avoid an error. */
5720 /* We use char because int might match the return type of a gcc2
5721 builtin and then its argument prototype would still apply. */
5726 /* The GNU C library defines this for functions which it implements
5727 to always fail with ENOSYS. Some functions are actually named
5728 something starting with __ and the normal name is an alias. */
5729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5737 if { (eval echo configure
:5738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5739 eval "ac_cv_func_$ac_func=yes"
5741 echo "configure: failed program was:" >&5
5742 cat conftest.
$ac_ext >&5
5744 eval "ac_cv_func_$ac_func=no"
5749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5750 echo "$ac_t""yes" 1>&6
5751 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5752 cat >> confdefs.h
<<EOF
5753 #define $ac_tr_func 1
5757 echo "$ac_t""no" 1>&6
5761 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
5763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5764 echo "configure:5765: checking for $ac_func" >&5
5765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5766 echo $ac_n "(cached) $ac_c" 1>&6
5768 cat > conftest.
$ac_ext <<EOF
5769 #line 5770 "configure"
5770 #include "confdefs.h"
5771 /* System header to define __stub macros and hopefully few prototypes,
5772 which can conflict with char $ac_func(); below. */
5774 /* Override any gcc2 internal prototype to avoid an error. */
5775 /* We use char because int might match the return type of a gcc2
5776 builtin and then its argument prototype would still apply. */
5781 /* The GNU C library defines this for functions which it implements
5782 to always fail with ENOSYS. Some functions are actually named
5783 something starting with __ and the normal name is an alias. */
5784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5792 if { (eval echo configure
:5793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5794 eval "ac_cv_func_$ac_func=yes"
5796 echo "configure: failed program was:" >&5
5797 cat conftest.
$ac_ext >&5
5799 eval "ac_cv_func_$ac_func=no"
5804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5805 echo "$ac_t""yes" 1>&6
5806 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5807 cat >> confdefs.h
<<EOF
5808 #define $ac_tr_func 1
5812 echo "$ac_t""no" 1>&6
5816 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
5818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5819 echo "configure:5820: checking for $ac_func" >&5
5820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5821 echo $ac_n "(cached) $ac_c" 1>&6
5823 cat > conftest.
$ac_ext <<EOF
5824 #line 5825 "configure"
5825 #include "confdefs.h"
5826 /* System header to define __stub macros and hopefully few prototypes,
5827 which can conflict with char $ac_func(); below. */
5829 /* Override any gcc2 internal prototype to avoid an error. */
5830 /* We use char because int might match the return type of a gcc2
5831 builtin and then its argument prototype would still apply. */
5836 /* The GNU C library defines this for functions which it implements
5837 to always fail with ENOSYS. Some functions are actually named
5838 something starting with __ and the normal name is an alias. */
5839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5847 if { (eval echo configure
:5848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5849 eval "ac_cv_func_$ac_func=yes"
5851 echo "configure: failed program was:" >&5
5852 cat conftest.
$ac_ext >&5
5854 eval "ac_cv_func_$ac_func=no"
5859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5860 echo "$ac_t""yes" 1>&6
5861 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5862 cat >> confdefs.h
<<EOF
5863 #define $ac_tr_func 1
5867 echo "$ac_t""no" 1>&6
5871 for ac_func
in _write __write _fork __fork
5873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5874 echo "configure:5875: checking for $ac_func" >&5
5875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5876 echo $ac_n "(cached) $ac_c" 1>&6
5878 cat > conftest.
$ac_ext <<EOF
5879 #line 5880 "configure"
5880 #include "confdefs.h"
5881 /* System header to define __stub macros and hopefully few prototypes,
5882 which can conflict with char $ac_func(); below. */
5884 /* Override any gcc2 internal prototype to avoid an error. */
5885 /* We use char because int might match the return type of a gcc2
5886 builtin and then its argument prototype would still apply. */
5891 /* The GNU C library defines this for functions which it implements
5892 to always fail with ENOSYS. Some functions are actually named
5893 something starting with __ and the normal name is an alias. */
5894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5902 if { (eval echo configure
:5903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5904 eval "ac_cv_func_$ac_func=yes"
5906 echo "configure: failed program was:" >&5
5907 cat conftest.
$ac_ext >&5
5909 eval "ac_cv_func_$ac_func=no"
5914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5915 echo "$ac_t""yes" 1>&6
5916 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5917 cat >> confdefs.h
<<EOF
5918 #define $ac_tr_func 1
5922 echo "$ac_t""no" 1>&6
5926 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
5928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5929 echo "configure:5930: checking for $ac_func" >&5
5930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5931 echo $ac_n "(cached) $ac_c" 1>&6
5933 cat > conftest.
$ac_ext <<EOF
5934 #line 5935 "configure"
5935 #include "confdefs.h"
5936 /* System header to define __stub macros and hopefully few prototypes,
5937 which can conflict with char $ac_func(); below. */
5939 /* Override any gcc2 internal prototype to avoid an error. */
5940 /* We use char because int might match the return type of a gcc2
5941 builtin and then its argument prototype would still apply. */
5946 /* The GNU C library defines this for functions which it implements
5947 to always fail with ENOSYS. Some functions are actually named
5948 something starting with __ and the normal name is an alias. */
5949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5957 if { (eval echo configure
:5958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5959 eval "ac_cv_func_$ac_func=yes"
5961 echo "configure: failed program was:" >&5
5962 cat conftest.
$ac_ext >&5
5964 eval "ac_cv_func_$ac_func=no"
5969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5970 echo "$ac_t""yes" 1>&6
5971 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5972 cat >> confdefs.h
<<EOF
5973 #define $ac_tr_func 1
5977 echo "$ac_t""no" 1>&6
5981 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5984 echo "configure:5985: checking for $ac_func" >&5
5985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5986 echo $ac_n "(cached) $ac_c" 1>&6
5988 cat > conftest.
$ac_ext <<EOF
5989 #line 5990 "configure"
5990 #include "confdefs.h"
5991 /* System header to define __stub macros and hopefully few prototypes,
5992 which can conflict with char $ac_func(); below. */
5994 /* Override any gcc2 internal prototype to avoid an error. */
5995 /* We use char because int might match the return type of a gcc2
5996 builtin and then its argument prototype would still apply. */
6001 /* The GNU C library defines this for functions which it implements
6002 to always fail with ENOSYS. Some functions are actually named
6003 something starting with __ and the normal name is an alias. */
6004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6012 if { (eval echo configure
:6013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6014 eval "ac_cv_func_$ac_func=yes"
6016 echo "configure: failed program was:" >&5
6017 cat conftest.
$ac_ext >&5
6019 eval "ac_cv_func_$ac_func=no"
6024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6025 echo "$ac_t""yes" 1>&6
6026 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6027 cat >> confdefs.h
<<EOF
6028 #define $ac_tr_func 1
6032 echo "$ac_t""no" 1>&6
6036 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6039 echo "configure:6040: checking for $ac_func" >&5
6040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6041 echo $ac_n "(cached) $ac_c" 1>&6
6043 cat > conftest.
$ac_ext <<EOF
6044 #line 6045 "configure"
6045 #include "confdefs.h"
6046 /* System header to define __stub macros and hopefully few prototypes,
6047 which can conflict with char $ac_func(); below. */
6049 /* Override any gcc2 internal prototype to avoid an error. */
6050 /* We use char because int might match the return type of a gcc2
6051 builtin and then its argument prototype would still apply. */
6056 /* The GNU C library defines this for functions which it implements
6057 to always fail with ENOSYS. Some functions are actually named
6058 something starting with __ and the normal name is an alias. */
6059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6067 if { (eval echo configure
:6068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6069 eval "ac_cv_func_$ac_func=yes"
6071 echo "configure: failed program was:" >&5
6072 cat conftest.
$ac_ext >&5
6074 eval "ac_cv_func_$ac_func=no"
6079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6080 echo "$ac_t""yes" 1>&6
6081 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6082 cat >> confdefs.h
<<EOF
6083 #define $ac_tr_func 1
6087 echo "$ac_t""no" 1>&6
6091 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6094 echo "configure:6095: checking for $ac_func" >&5
6095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6096 echo $ac_n "(cached) $ac_c" 1>&6
6098 cat > conftest.
$ac_ext <<EOF
6099 #line 6100 "configure"
6100 #include "confdefs.h"
6101 /* System header to define __stub macros and hopefully few prototypes,
6102 which can conflict with char $ac_func(); below. */
6104 /* Override any gcc2 internal prototype to avoid an error. */
6105 /* We use char because int might match the return type of a gcc2
6106 builtin and then its argument prototype would still apply. */
6111 /* The GNU C library defines this for functions which it implements
6112 to always fail with ENOSYS. Some functions are actually named
6113 something starting with __ and the normal name is an alias. */
6114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6122 if { (eval echo configure
:6123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6124 eval "ac_cv_func_$ac_func=yes"
6126 echo "configure: failed program was:" >&5
6127 cat conftest.
$ac_ext >&5
6129 eval "ac_cv_func_$ac_func=no"
6134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6135 echo "$ac_t""yes" 1>&6
6136 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6137 cat >> confdefs.h
<<EOF
6138 #define $ac_tr_func 1
6142 echo "$ac_t""no" 1>&6
6146 for ac_func
in open64 _open64 __open64 creat64
6148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6149 echo "configure:6150: checking for $ac_func" >&5
6150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6151 echo $ac_n "(cached) $ac_c" 1>&6
6153 cat > conftest.
$ac_ext <<EOF
6154 #line 6155 "configure"
6155 #include "confdefs.h"
6156 /* System header to define __stub macros and hopefully few prototypes,
6157 which can conflict with char $ac_func(); below. */
6159 /* Override any gcc2 internal prototype to avoid an error. */
6160 /* We use char because int might match the return type of a gcc2
6161 builtin and then its argument prototype would still apply. */
6166 /* The GNU C library defines this for functions which it implements
6167 to always fail with ENOSYS. Some functions are actually named
6168 something starting with __ and the normal name is an alias. */
6169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6177 if { (eval echo configure
:6178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6179 eval "ac_cv_func_$ac_func=yes"
6181 echo "configure: failed program was:" >&5
6182 cat conftest.
$ac_ext >&5
6184 eval "ac_cv_func_$ac_func=no"
6189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6190 echo "$ac_t""yes" 1>&6
6191 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6192 cat >> confdefs.h
<<EOF
6193 #define $ac_tr_func 1
6197 echo "$ac_t""no" 1>&6
6201 for ac_func
in setenv putenv
6203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6204 echo "configure:6205: checking for $ac_func" >&5
6205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6206 echo $ac_n "(cached) $ac_c" 1>&6
6208 cat > conftest.
$ac_ext <<EOF
6209 #line 6210 "configure"
6210 #include "confdefs.h"
6211 /* System header to define __stub macros and hopefully few prototypes,
6212 which can conflict with char $ac_func(); below. */
6214 /* Override any gcc2 internal prototype to avoid an error. */
6215 /* We use char because int might match the return type of a gcc2
6216 builtin and then its argument prototype would still apply. */
6221 /* The GNU C library defines this for functions which it implements
6222 to always fail with ENOSYS. Some functions are actually named
6223 something starting with __ and the normal name is an alias. */
6224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6232 if { (eval echo configure
:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6234 eval "ac_cv_func_$ac_func=yes"
6236 echo "configure: failed program was:" >&5
6237 cat conftest.
$ac_ext >&5
6239 eval "ac_cv_func_$ac_func=no"
6244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6245 echo "$ac_t""yes" 1>&6
6246 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6247 cat >> confdefs.h
<<EOF
6248 #define $ac_tr_func 1
6252 echo "$ac_t""no" 1>&6
6258 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6261 if test x
$ac_cv_func_stat64 = xno
; then
6262 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6263 echo "configure:6264: checking for stat64 in <sys/stat.h>" >&5
6264 cat > conftest.
$ac_ext <<EOF
6265 #line 6266 "configure"
6266 #include "confdefs.h"
6268 #if defined(HAVE_UNISTD_H)
6271 #include <sys/stat.h>
6274 struct stat64 st64; exit(stat64(".",&st64));
6277 if { (eval echo configure
:6278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6279 ac_cv_func_stat64
=yes
6281 echo "configure: failed program was:" >&5
6282 cat conftest.
$ac_ext >&5
6285 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6286 if test x
$ac_cv_func_stat64 = xyes
; then
6287 cat >> confdefs.h
<<\EOF
6288 #define HAVE_STAT64 1
6294 if test x
$ac_cv_func_lstat64 = xno
; then
6295 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6296 echo "configure:6297: checking for lstat64 in <sys/stat.h>" >&5
6297 cat > conftest.
$ac_ext <<EOF
6298 #line 6299 "configure"
6299 #include "confdefs.h"
6301 #if defined(HAVE_UNISTD_H)
6304 #include <sys/stat.h>
6307 struct stat64 st64; exit(lstat64(".",&st64));
6310 if { (eval echo configure
:6311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6312 ac_cv_func_lstat64
=yes
6314 echo "configure: failed program was:" >&5
6315 cat conftest.
$ac_ext >&5
6318 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6319 if test x
$ac_cv_func_lstat64 = xyes
; then
6320 cat >> confdefs.h
<<\EOF
6321 #define HAVE_LSTAT64 1
6327 if test x
$ac_cv_func_fstat64 = xno
; then
6328 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6329 echo "configure:6330: checking for fstat64 in <sys/stat.h>" >&5
6330 cat > conftest.
$ac_ext <<EOF
6331 #line 6332 "configure"
6332 #include "confdefs.h"
6334 #if defined(HAVE_UNISTD_H)
6337 #include <sys/stat.h>
6340 struct stat64 st64; exit(fstat64(0,&st64));
6343 if { (eval echo configure
:6344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6345 ac_cv_func_fstat64
=yes
6347 echo "configure: failed program was:" >&5
6348 cat conftest.
$ac_ext >&5
6351 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6352 if test x
$ac_cv_func_fstat64 = xyes
; then
6353 cat >> confdefs.h
<<\EOF
6354 #define HAVE_FSTAT64 1
6361 # If no strcasecmp, check for it in some known places
6362 # It is in -lresolv on ReliantUNIX and UnixWare
6363 # -lresolve *must* follow -lnsl for name resolution to work properly
6366 if test x
$ac_cv_func_strcasecmp = xno
; then
6367 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6368 echo "configure:6369: checking for strcasecmp in -lresolv" >&5
6369 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6371 echo $ac_n "(cached) $ac_c" 1>&6
6373 ac_save_LIBS
="$LIBS"
6374 LIBS
="-lresolv $LIBS"
6375 cat > conftest.
$ac_ext <<EOF
6376 #line 6377 "configure"
6377 #include "confdefs.h"
6378 /* Override any gcc2 internal prototype to avoid an error. */
6379 /* We use char because int might match the return type of a gcc2
6380 builtin and then its argument prototype would still apply. */
6387 if { (eval echo configure
:6388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6389 eval "ac_cv_lib_$ac_lib_var=yes"
6391 echo "configure: failed program was:" >&5
6392 cat conftest.
$ac_ext >&5
6394 eval "ac_cv_lib_$ac_lib_var=no"
6397 LIBS
="$ac_save_LIBS"
6400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6401 echo "$ac_t""yes" 1>&6
6402 LIBS
="$LIBS -lresolv"
6403 cat >> confdefs.h
<<\EOF
6404 #define HAVE_STRCASECMP 1
6408 echo "$ac_t""no" 1>&6
6414 # Check for the functions putprpwnam, set_auth_parameters,
6415 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6416 # Needed for OSF1 and HPUX.
6420 *-lsecurity*) for ac_func
in putprpwnam
6422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6423 echo "configure:6424: checking for $ac_func" >&5
6424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6425 echo $ac_n "(cached) $ac_c" 1>&6
6427 cat > conftest.
$ac_ext <<EOF
6428 #line 6429 "configure"
6429 #include "confdefs.h"
6430 /* System header to define __stub macros and hopefully few prototypes,
6431 which can conflict with char $ac_func(); below. */
6433 /* Override any gcc2 internal prototype to avoid an error. */
6434 /* We use char because int might match the return type of a gcc2
6435 builtin and then its argument prototype would still apply. */
6440 /* The GNU C library defines this for functions which it implements
6441 to always fail with ENOSYS. Some functions are actually named
6442 something starting with __ and the normal name is an alias. */
6443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6451 if { (eval echo configure
:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6453 eval "ac_cv_func_$ac_func=yes"
6455 echo "configure: failed program was:" >&5
6456 cat conftest.
$ac_ext >&5
6458 eval "ac_cv_func_$ac_func=no"
6463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6464 echo "$ac_t""yes" 1>&6
6465 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6466 cat >> confdefs.h
<<EOF
6467 #define $ac_tr_func 1
6471 echo "$ac_t""no" 1>&6
6475 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6476 echo "configure:6477: checking for putprpwnam in -lsecurity" >&5
6477 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6479 echo $ac_n "(cached) $ac_c" 1>&6
6481 ac_save_LIBS
="$LIBS"
6482 LIBS
="-lsecurity $LIBS"
6483 cat > conftest.
$ac_ext <<EOF
6484 #line 6485 "configure"
6485 #include "confdefs.h"
6486 /* Override any gcc2 internal prototype to avoid an error. */
6487 /* We use char because int might match the return type of a gcc2
6488 builtin and then its argument prototype would still apply. */
6495 if { (eval echo configure
:6496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6497 eval "ac_cv_lib_$ac_lib_var=yes"
6499 echo "configure: failed program was:" >&5
6500 cat conftest.
$ac_ext >&5
6502 eval "ac_cv_lib_$ac_lib_var=no"
6505 LIBS
="$ac_save_LIBS"
6508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6509 echo "$ac_t""yes" 1>&6
6510 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6511 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6512 cat >> confdefs.h
<<EOF
6513 #define $ac_tr_lib 1
6516 LIBS
="-lsecurity $LIBS"
6519 echo "$ac_t""no" 1>&6
6522 for ac_func
in putprpwnam
6524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6525 echo "configure:6526: checking for $ac_func" >&5
6526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6527 echo $ac_n "(cached) $ac_c" 1>&6
6529 cat > conftest.
$ac_ext <<EOF
6530 #line 6531 "configure"
6531 #include "confdefs.h"
6532 /* System header to define __stub macros and hopefully few prototypes,
6533 which can conflict with char $ac_func(); below. */
6535 /* Override any gcc2 internal prototype to avoid an error. */
6536 /* We use char because int might match the return type of a gcc2
6537 builtin and then its argument prototype would still apply. */
6542 /* The GNU C library defines this for functions which it implements
6543 to always fail with ENOSYS. Some functions are actually named
6544 something starting with __ and the normal name is an alias. */
6545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6553 if { (eval echo configure
:6554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6555 eval "ac_cv_func_$ac_func=yes"
6557 echo "configure: failed program was:" >&5
6558 cat conftest.
$ac_ext >&5
6560 eval "ac_cv_func_$ac_func=no"
6565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6566 echo "$ac_t""yes" 1>&6
6567 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6568 cat >> confdefs.h
<<EOF
6569 #define $ac_tr_func 1
6573 echo "$ac_t""no" 1>&6
6581 *-lsec*) for ac_func
in putprpwnam
6583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6584 echo "configure:6585: checking for $ac_func" >&5
6585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6586 echo $ac_n "(cached) $ac_c" 1>&6
6588 cat > conftest.
$ac_ext <<EOF
6589 #line 6590 "configure"
6590 #include "confdefs.h"
6591 /* System header to define __stub macros and hopefully few prototypes,
6592 which can conflict with char $ac_func(); below. */
6594 /* Override any gcc2 internal prototype to avoid an error. */
6595 /* We use char because int might match the return type of a gcc2
6596 builtin and then its argument prototype would still apply. */
6601 /* The GNU C library defines this for functions which it implements
6602 to always fail with ENOSYS. Some functions are actually named
6603 something starting with __ and the normal name is an alias. */
6604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6612 if { (eval echo configure
:6613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6614 eval "ac_cv_func_$ac_func=yes"
6616 echo "configure: failed program was:" >&5
6617 cat conftest.
$ac_ext >&5
6619 eval "ac_cv_func_$ac_func=no"
6624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6625 echo "$ac_t""yes" 1>&6
6626 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6627 cat >> confdefs.h
<<EOF
6628 #define $ac_tr_func 1
6632 echo "$ac_t""no" 1>&6
6636 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6637 echo "configure:6638: checking for putprpwnam in -lsec" >&5
6638 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6
6642 ac_save_LIBS
="$LIBS"
6644 cat > conftest.
$ac_ext <<EOF
6645 #line 6646 "configure"
6646 #include "confdefs.h"
6647 /* Override any gcc2 internal prototype to avoid an error. */
6648 /* We use char because int might match the return type of a gcc2
6649 builtin and then its argument prototype would still apply. */
6656 if { (eval echo configure
:6657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6658 eval "ac_cv_lib_$ac_lib_var=yes"
6660 echo "configure: failed program was:" >&5
6661 cat conftest.
$ac_ext >&5
6663 eval "ac_cv_lib_$ac_lib_var=no"
6666 LIBS
="$ac_save_LIBS"
6669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6670 echo "$ac_t""yes" 1>&6
6671 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6672 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6673 cat >> confdefs.h
<<EOF
6674 #define $ac_tr_lib 1
6680 echo "$ac_t""no" 1>&6
6683 for ac_func
in putprpwnam
6685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6686 echo "configure:6687: checking for $ac_func" >&5
6687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6688 echo $ac_n "(cached) $ac_c" 1>&6
6690 cat > conftest.
$ac_ext <<EOF
6691 #line 6692 "configure"
6692 #include "confdefs.h"
6693 /* System header to define __stub macros and hopefully few prototypes,
6694 which can conflict with char $ac_func(); below. */
6696 /* Override any gcc2 internal prototype to avoid an error. */
6697 /* We use char because int might match the return type of a gcc2
6698 builtin and then its argument prototype would still apply. */
6703 /* The GNU C library defines this for functions which it implements
6704 to always fail with ENOSYS. Some functions are actually named
6705 something starting with __ and the normal name is an alias. */
6706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6714 if { (eval echo configure
:6715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6716 eval "ac_cv_func_$ac_func=yes"
6718 echo "configure: failed program was:" >&5
6719 cat conftest.
$ac_ext >&5
6721 eval "ac_cv_func_$ac_func=no"
6726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6727 echo "$ac_t""yes" 1>&6
6728 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6729 cat >> confdefs.h
<<EOF
6730 #define $ac_tr_func 1
6734 echo "$ac_t""no" 1>&6
6743 *-lsecurity*) for ac_func
in set_auth_parameters
6745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6746 echo "configure:6747: checking for $ac_func" >&5
6747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6748 echo $ac_n "(cached) $ac_c" 1>&6
6750 cat > conftest.
$ac_ext <<EOF
6751 #line 6752 "configure"
6752 #include "confdefs.h"
6753 /* System header to define __stub macros and hopefully few prototypes,
6754 which can conflict with char $ac_func(); below. */
6756 /* Override any gcc2 internal prototype to avoid an error. */
6757 /* We use char because int might match the return type of a gcc2
6758 builtin and then its argument prototype would still apply. */
6763 /* The GNU C library defines this for functions which it implements
6764 to always fail with ENOSYS. Some functions are actually named
6765 something starting with __ and the normal name is an alias. */
6766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6774 if { (eval echo configure
:6775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6776 eval "ac_cv_func_$ac_func=yes"
6778 echo "configure: failed program was:" >&5
6779 cat conftest.
$ac_ext >&5
6781 eval "ac_cv_func_$ac_func=no"
6786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6787 echo "$ac_t""yes" 1>&6
6788 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6789 cat >> confdefs.h
<<EOF
6790 #define $ac_tr_func 1
6794 echo "$ac_t""no" 1>&6
6798 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6799 echo "configure:6800: checking for set_auth_parameters in -lsecurity" >&5
6800 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6802 echo $ac_n "(cached) $ac_c" 1>&6
6804 ac_save_LIBS
="$LIBS"
6805 LIBS
="-lsecurity $LIBS"
6806 cat > conftest.
$ac_ext <<EOF
6807 #line 6808 "configure"
6808 #include "confdefs.h"
6809 /* Override any gcc2 internal prototype to avoid an error. */
6810 /* We use char because int might match the return type of a gcc2
6811 builtin and then its argument prototype would still apply. */
6812 char set_auth_parameters();
6815 set_auth_parameters()
6818 if { (eval echo configure
:6819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6820 eval "ac_cv_lib_$ac_lib_var=yes"
6822 echo "configure: failed program was:" >&5
6823 cat conftest.
$ac_ext >&5
6825 eval "ac_cv_lib_$ac_lib_var=no"
6828 LIBS
="$ac_save_LIBS"
6831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6832 echo "$ac_t""yes" 1>&6
6833 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6834 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6835 cat >> confdefs.h
<<EOF
6836 #define $ac_tr_lib 1
6839 LIBS
="-lsecurity $LIBS"
6842 echo "$ac_t""no" 1>&6
6845 for ac_func
in set_auth_parameters
6847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6848 echo "configure:6849: checking for $ac_func" >&5
6849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6850 echo $ac_n "(cached) $ac_c" 1>&6
6852 cat > conftest.
$ac_ext <<EOF
6853 #line 6854 "configure"
6854 #include "confdefs.h"
6855 /* System header to define __stub macros and hopefully few prototypes,
6856 which can conflict with char $ac_func(); below. */
6858 /* Override any gcc2 internal prototype to avoid an error. */
6859 /* We use char because int might match the return type of a gcc2
6860 builtin and then its argument prototype would still apply. */
6865 /* The GNU C library defines this for functions which it implements
6866 to always fail with ENOSYS. Some functions are actually named
6867 something starting with __ and the normal name is an alias. */
6868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6876 if { (eval echo configure
:6877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6878 eval "ac_cv_func_$ac_func=yes"
6880 echo "configure: failed program was:" >&5
6881 cat conftest.
$ac_ext >&5
6883 eval "ac_cv_func_$ac_func=no"
6888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6889 echo "$ac_t""yes" 1>&6
6890 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6891 cat >> confdefs.h
<<EOF
6892 #define $ac_tr_func 1
6896 echo "$ac_t""no" 1>&6
6904 *-lsec*) for ac_func
in set_auth_parameters
6906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6907 echo "configure:6908: checking for $ac_func" >&5
6908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6909 echo $ac_n "(cached) $ac_c" 1>&6
6911 cat > conftest.
$ac_ext <<EOF
6912 #line 6913 "configure"
6913 #include "confdefs.h"
6914 /* System header to define __stub macros and hopefully few prototypes,
6915 which can conflict with char $ac_func(); below. */
6917 /* Override any gcc2 internal prototype to avoid an error. */
6918 /* We use char because int might match the return type of a gcc2
6919 builtin and then its argument prototype would still apply. */
6924 /* The GNU C library defines this for functions which it implements
6925 to always fail with ENOSYS. Some functions are actually named
6926 something starting with __ and the normal name is an alias. */
6927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6935 if { (eval echo configure
:6936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6937 eval "ac_cv_func_$ac_func=yes"
6939 echo "configure: failed program was:" >&5
6940 cat conftest.
$ac_ext >&5
6942 eval "ac_cv_func_$ac_func=no"
6947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6948 echo "$ac_t""yes" 1>&6
6949 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6950 cat >> confdefs.h
<<EOF
6951 #define $ac_tr_func 1
6955 echo "$ac_t""no" 1>&6
6959 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6960 echo "configure:6961: checking for set_auth_parameters in -lsec" >&5
6961 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6963 echo $ac_n "(cached) $ac_c" 1>&6
6965 ac_save_LIBS
="$LIBS"
6967 cat > conftest.
$ac_ext <<EOF
6968 #line 6969 "configure"
6969 #include "confdefs.h"
6970 /* Override any gcc2 internal prototype to avoid an error. */
6971 /* We use char because int might match the return type of a gcc2
6972 builtin and then its argument prototype would still apply. */
6973 char set_auth_parameters();
6976 set_auth_parameters()
6979 if { (eval echo configure
:6980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6981 eval "ac_cv_lib_$ac_lib_var=yes"
6983 echo "configure: failed program was:" >&5
6984 cat conftest.
$ac_ext >&5
6986 eval "ac_cv_lib_$ac_lib_var=no"
6989 LIBS
="$ac_save_LIBS"
6992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6993 echo "$ac_t""yes" 1>&6
6994 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6995 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6996 cat >> confdefs.h
<<EOF
6997 #define $ac_tr_lib 1
7003 echo "$ac_t""no" 1>&6
7006 for ac_func
in set_auth_parameters
7008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7009 echo "configure:7010: checking for $ac_func" >&5
7010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7011 echo $ac_n "(cached) $ac_c" 1>&6
7013 cat > conftest.
$ac_ext <<EOF
7014 #line 7015 "configure"
7015 #include "confdefs.h"
7016 /* System header to define __stub macros and hopefully few prototypes,
7017 which can conflict with char $ac_func(); below. */
7019 /* Override any gcc2 internal prototype to avoid an error. */
7020 /* We use char because int might match the return type of a gcc2
7021 builtin and then its argument prototype would still apply. */
7026 /* The GNU C library defines this for functions which it implements
7027 to always fail with ENOSYS. Some functions are actually named
7028 something starting with __ and the normal name is an alias. */
7029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7037 if { (eval echo configure
:7038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7039 eval "ac_cv_func_$ac_func=yes"
7041 echo "configure: failed program was:" >&5
7042 cat conftest.
$ac_ext >&5
7044 eval "ac_cv_func_$ac_func=no"
7049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7050 echo "$ac_t""yes" 1>&6
7051 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7052 cat >> confdefs.h
<<EOF
7053 #define $ac_tr_func 1
7057 echo "$ac_t""no" 1>&6
7065 # UnixWare 7.x has its getspnam in -lgen
7067 *-lgen*) for ac_func
in getspnam
7069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7070 echo "configure:7071: checking for $ac_func" >&5
7071 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7072 echo $ac_n "(cached) $ac_c" 1>&6
7074 cat > conftest.
$ac_ext <<EOF
7075 #line 7076 "configure"
7076 #include "confdefs.h"
7077 /* System header to define __stub macros and hopefully few prototypes,
7078 which can conflict with char $ac_func(); below. */
7080 /* Override any gcc2 internal prototype to avoid an error. */
7081 /* We use char because int might match the return type of a gcc2
7082 builtin and then its argument prototype would still apply. */
7087 /* The GNU C library defines this for functions which it implements
7088 to always fail with ENOSYS. Some functions are actually named
7089 something starting with __ and the normal name is an alias. */
7090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7098 if { (eval echo configure
:7099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7100 eval "ac_cv_func_$ac_func=yes"
7102 echo "configure: failed program was:" >&5
7103 cat conftest.
$ac_ext >&5
7105 eval "ac_cv_func_$ac_func=no"
7110 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7111 echo "$ac_t""yes" 1>&6
7112 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7113 cat >> confdefs.h
<<EOF
7114 #define $ac_tr_func 1
7118 echo "$ac_t""no" 1>&6
7122 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7123 echo "configure:7124: checking for getspnam in -lgen" >&5
7124 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7125 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7126 echo $ac_n "(cached) $ac_c" 1>&6
7128 ac_save_LIBS
="$LIBS"
7130 cat > conftest.
$ac_ext <<EOF
7131 #line 7132 "configure"
7132 #include "confdefs.h"
7133 /* Override any gcc2 internal prototype to avoid an error. */
7134 /* We use char because int might match the return type of a gcc2
7135 builtin and then its argument prototype would still apply. */
7142 if { (eval echo configure
:7143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7144 eval "ac_cv_lib_$ac_lib_var=yes"
7146 echo "configure: failed program was:" >&5
7147 cat conftest.
$ac_ext >&5
7149 eval "ac_cv_lib_$ac_lib_var=no"
7152 LIBS
="$ac_save_LIBS"
7155 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7156 echo "$ac_t""yes" 1>&6
7157 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7158 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7159 cat >> confdefs.h
<<EOF
7160 #define $ac_tr_lib 1
7166 echo "$ac_t""no" 1>&6
7169 for ac_func
in getspnam
7171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7172 echo "configure:7173: checking for $ac_func" >&5
7173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7174 echo $ac_n "(cached) $ac_c" 1>&6
7176 cat > conftest.
$ac_ext <<EOF
7177 #line 7178 "configure"
7178 #include "confdefs.h"
7179 /* System header to define __stub macros and hopefully few prototypes,
7180 which can conflict with char $ac_func(); below. */
7182 /* Override any gcc2 internal prototype to avoid an error. */
7183 /* We use char because int might match the return type of a gcc2
7184 builtin and then its argument prototype would still apply. */
7189 /* The GNU C library defines this for functions which it implements
7190 to always fail with ENOSYS. Some functions are actually named
7191 something starting with __ and the normal name is an alias. */
7192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7200 if { (eval echo configure
:7201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7202 eval "ac_cv_func_$ac_func=yes"
7204 echo "configure: failed program was:" >&5
7205 cat conftest.
$ac_ext >&5
7207 eval "ac_cv_func_$ac_func=no"
7212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7213 echo "$ac_t""yes" 1>&6
7214 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7215 cat >> confdefs.h
<<EOF
7216 #define $ac_tr_func 1
7220 echo "$ac_t""no" 1>&6
7229 *-lsecurity*) for ac_func
in getspnam
7231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7232 echo "configure:7233: checking for $ac_func" >&5
7233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7234 echo $ac_n "(cached) $ac_c" 1>&6
7236 cat > conftest.
$ac_ext <<EOF
7237 #line 7238 "configure"
7238 #include "confdefs.h"
7239 /* System header to define __stub macros and hopefully few prototypes,
7240 which can conflict with char $ac_func(); below. */
7242 /* Override any gcc2 internal prototype to avoid an error. */
7243 /* We use char because int might match the return type of a gcc2
7244 builtin and then its argument prototype would still apply. */
7249 /* The GNU C library defines this for functions which it implements
7250 to always fail with ENOSYS. Some functions are actually named
7251 something starting with __ and the normal name is an alias. */
7252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7260 if { (eval echo configure
:7261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7262 eval "ac_cv_func_$ac_func=yes"
7264 echo "configure: failed program was:" >&5
7265 cat conftest.
$ac_ext >&5
7267 eval "ac_cv_func_$ac_func=no"
7272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7273 echo "$ac_t""yes" 1>&6
7274 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7275 cat >> confdefs.h
<<EOF
7276 #define $ac_tr_func 1
7280 echo "$ac_t""no" 1>&6
7284 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7285 echo "configure:7286: checking for getspnam in -lsecurity" >&5
7286 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7288 echo $ac_n "(cached) $ac_c" 1>&6
7290 ac_save_LIBS
="$LIBS"
7291 LIBS
="-lsecurity $LIBS"
7292 cat > conftest.
$ac_ext <<EOF
7293 #line 7294 "configure"
7294 #include "confdefs.h"
7295 /* Override any gcc2 internal prototype to avoid an error. */
7296 /* We use char because int might match the return type of a gcc2
7297 builtin and then its argument prototype would still apply. */
7304 if { (eval echo configure
:7305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7306 eval "ac_cv_lib_$ac_lib_var=yes"
7308 echo "configure: failed program was:" >&5
7309 cat conftest.
$ac_ext >&5
7311 eval "ac_cv_lib_$ac_lib_var=no"
7314 LIBS
="$ac_save_LIBS"
7317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7318 echo "$ac_t""yes" 1>&6
7319 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7320 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7321 cat >> confdefs.h
<<EOF
7322 #define $ac_tr_lib 1
7325 LIBS
="-lsecurity $LIBS"
7328 echo "$ac_t""no" 1>&6
7331 for ac_func
in getspnam
7333 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7334 echo "configure:7335: checking for $ac_func" >&5
7335 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7336 echo $ac_n "(cached) $ac_c" 1>&6
7338 cat > conftest.
$ac_ext <<EOF
7339 #line 7340 "configure"
7340 #include "confdefs.h"
7341 /* System header to define __stub macros and hopefully few prototypes,
7342 which can conflict with char $ac_func(); below. */
7344 /* Override any gcc2 internal prototype to avoid an error. */
7345 /* We use char because int might match the return type of a gcc2
7346 builtin and then its argument prototype would still apply. */
7351 /* The GNU C library defines this for functions which it implements
7352 to always fail with ENOSYS. Some functions are actually named
7353 something starting with __ and the normal name is an alias. */
7354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7362 if { (eval echo configure
:7363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7364 eval "ac_cv_func_$ac_func=yes"
7366 echo "configure: failed program was:" >&5
7367 cat conftest.
$ac_ext >&5
7369 eval "ac_cv_func_$ac_func=no"
7374 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7375 echo "$ac_t""yes" 1>&6
7376 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7377 cat >> confdefs.h
<<EOF
7378 #define $ac_tr_func 1
7382 echo "$ac_t""no" 1>&6
7390 *-lsec*) for ac_func
in getspnam
7392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7393 echo "configure:7394: checking for $ac_func" >&5
7394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7395 echo $ac_n "(cached) $ac_c" 1>&6
7397 cat > conftest.
$ac_ext <<EOF
7398 #line 7399 "configure"
7399 #include "confdefs.h"
7400 /* System header to define __stub macros and hopefully few prototypes,
7401 which can conflict with char $ac_func(); below. */
7403 /* Override any gcc2 internal prototype to avoid an error. */
7404 /* We use char because int might match the return type of a gcc2
7405 builtin and then its argument prototype would still apply. */
7410 /* The GNU C library defines this for functions which it implements
7411 to always fail with ENOSYS. Some functions are actually named
7412 something starting with __ and the normal name is an alias. */
7413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7421 if { (eval echo configure
:7422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7423 eval "ac_cv_func_$ac_func=yes"
7425 echo "configure: failed program was:" >&5
7426 cat conftest.
$ac_ext >&5
7428 eval "ac_cv_func_$ac_func=no"
7433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7434 echo "$ac_t""yes" 1>&6
7435 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7436 cat >> confdefs.h
<<EOF
7437 #define $ac_tr_func 1
7441 echo "$ac_t""no" 1>&6
7445 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7446 echo "configure:7447: checking for getspnam in -lsec" >&5
7447 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7448 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7449 echo $ac_n "(cached) $ac_c" 1>&6
7451 ac_save_LIBS
="$LIBS"
7453 cat > conftest.
$ac_ext <<EOF
7454 #line 7455 "configure"
7455 #include "confdefs.h"
7456 /* Override any gcc2 internal prototype to avoid an error. */
7457 /* We use char because int might match the return type of a gcc2
7458 builtin and then its argument prototype would still apply. */
7465 if { (eval echo configure
:7466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7467 eval "ac_cv_lib_$ac_lib_var=yes"
7469 echo "configure: failed program was:" >&5
7470 cat conftest.
$ac_ext >&5
7472 eval "ac_cv_lib_$ac_lib_var=no"
7475 LIBS
="$ac_save_LIBS"
7478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7479 echo "$ac_t""yes" 1>&6
7480 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7481 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7482 cat >> confdefs.h
<<EOF
7483 #define $ac_tr_lib 1
7489 echo "$ac_t""no" 1>&6
7492 for ac_func
in getspnam
7494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7495 echo "configure:7496: checking for $ac_func" >&5
7496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7497 echo $ac_n "(cached) $ac_c" 1>&6
7499 cat > conftest.
$ac_ext <<EOF
7500 #line 7501 "configure"
7501 #include "confdefs.h"
7502 /* System header to define __stub macros and hopefully few prototypes,
7503 which can conflict with char $ac_func(); below. */
7505 /* Override any gcc2 internal prototype to avoid an error. */
7506 /* We use char because int might match the return type of a gcc2
7507 builtin and then its argument prototype would still apply. */
7512 /* The GNU C library defines this for functions which it implements
7513 to always fail with ENOSYS. Some functions are actually named
7514 something starting with __ and the normal name is an alias. */
7515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7523 if { (eval echo configure
:7524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7525 eval "ac_cv_func_$ac_func=yes"
7527 echo "configure: failed program was:" >&5
7528 cat conftest.
$ac_ext >&5
7530 eval "ac_cv_func_$ac_func=no"
7535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7536 echo "$ac_t""yes" 1>&6
7537 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7538 cat >> confdefs.h
<<EOF
7539 #define $ac_tr_func 1
7543 echo "$ac_t""no" 1>&6
7552 *-lsecurity*) for ac_func
in bigcrypt
7554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7555 echo "configure:7556: checking for $ac_func" >&5
7556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7557 echo $ac_n "(cached) $ac_c" 1>&6
7559 cat > conftest.
$ac_ext <<EOF
7560 #line 7561 "configure"
7561 #include "confdefs.h"
7562 /* System header to define __stub macros and hopefully few prototypes,
7563 which can conflict with char $ac_func(); below. */
7565 /* Override any gcc2 internal prototype to avoid an error. */
7566 /* We use char because int might match the return type of a gcc2
7567 builtin and then its argument prototype would still apply. */
7572 /* The GNU C library defines this for functions which it implements
7573 to always fail with ENOSYS. Some functions are actually named
7574 something starting with __ and the normal name is an alias. */
7575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7583 if { (eval echo configure
:7584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7585 eval "ac_cv_func_$ac_func=yes"
7587 echo "configure: failed program was:" >&5
7588 cat conftest.
$ac_ext >&5
7590 eval "ac_cv_func_$ac_func=no"
7595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7596 echo "$ac_t""yes" 1>&6
7597 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7598 cat >> confdefs.h
<<EOF
7599 #define $ac_tr_func 1
7603 echo "$ac_t""no" 1>&6
7607 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7608 echo "configure:7609: checking for bigcrypt in -lsecurity" >&5
7609 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7611 echo $ac_n "(cached) $ac_c" 1>&6
7613 ac_save_LIBS
="$LIBS"
7614 LIBS
="-lsecurity $LIBS"
7615 cat > conftest.
$ac_ext <<EOF
7616 #line 7617 "configure"
7617 #include "confdefs.h"
7618 /* Override any gcc2 internal prototype to avoid an error. */
7619 /* We use char because int might match the return type of a gcc2
7620 builtin and then its argument prototype would still apply. */
7627 if { (eval echo configure
:7628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7629 eval "ac_cv_lib_$ac_lib_var=yes"
7631 echo "configure: failed program was:" >&5
7632 cat conftest.
$ac_ext >&5
7634 eval "ac_cv_lib_$ac_lib_var=no"
7637 LIBS
="$ac_save_LIBS"
7640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7641 echo "$ac_t""yes" 1>&6
7642 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7643 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7644 cat >> confdefs.h
<<EOF
7645 #define $ac_tr_lib 1
7648 LIBS
="-lsecurity $LIBS"
7651 echo "$ac_t""no" 1>&6
7654 for ac_func
in bigcrypt
7656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7657 echo "configure:7658: checking for $ac_func" >&5
7658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7659 echo $ac_n "(cached) $ac_c" 1>&6
7661 cat > conftest.
$ac_ext <<EOF
7662 #line 7663 "configure"
7663 #include "confdefs.h"
7664 /* System header to define __stub macros and hopefully few prototypes,
7665 which can conflict with char $ac_func(); below. */
7667 /* Override any gcc2 internal prototype to avoid an error. */
7668 /* We use char because int might match the return type of a gcc2
7669 builtin and then its argument prototype would still apply. */
7674 /* The GNU C library defines this for functions which it implements
7675 to always fail with ENOSYS. Some functions are actually named
7676 something starting with __ and the normal name is an alias. */
7677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7685 if { (eval echo configure
:7686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7687 eval "ac_cv_func_$ac_func=yes"
7689 echo "configure: failed program was:" >&5
7690 cat conftest.
$ac_ext >&5
7692 eval "ac_cv_func_$ac_func=no"
7697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7698 echo "$ac_t""yes" 1>&6
7699 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7700 cat >> confdefs.h
<<EOF
7701 #define $ac_tr_func 1
7705 echo "$ac_t""no" 1>&6
7713 *-lsec*) for ac_func
in bigcrypt
7715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7716 echo "configure:7717: checking for $ac_func" >&5
7717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7718 echo $ac_n "(cached) $ac_c" 1>&6
7720 cat > conftest.
$ac_ext <<EOF
7721 #line 7722 "configure"
7722 #include "confdefs.h"
7723 /* System header to define __stub macros and hopefully few prototypes,
7724 which can conflict with char $ac_func(); below. */
7726 /* Override any gcc2 internal prototype to avoid an error. */
7727 /* We use char because int might match the return type of a gcc2
7728 builtin and then its argument prototype would still apply. */
7733 /* The GNU C library defines this for functions which it implements
7734 to always fail with ENOSYS. Some functions are actually named
7735 something starting with __ and the normal name is an alias. */
7736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7744 if { (eval echo configure
:7745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7746 eval "ac_cv_func_$ac_func=yes"
7748 echo "configure: failed program was:" >&5
7749 cat conftest.
$ac_ext >&5
7751 eval "ac_cv_func_$ac_func=no"
7756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7757 echo "$ac_t""yes" 1>&6
7758 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7759 cat >> confdefs.h
<<EOF
7760 #define $ac_tr_func 1
7764 echo "$ac_t""no" 1>&6
7768 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7769 echo "configure:7770: checking for bigcrypt in -lsec" >&5
7770 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7772 echo $ac_n "(cached) $ac_c" 1>&6
7774 ac_save_LIBS
="$LIBS"
7776 cat > conftest.
$ac_ext <<EOF
7777 #line 7778 "configure"
7778 #include "confdefs.h"
7779 /* Override any gcc2 internal prototype to avoid an error. */
7780 /* We use char because int might match the return type of a gcc2
7781 builtin and then its argument prototype would still apply. */
7788 if { (eval echo configure
:7789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7790 eval "ac_cv_lib_$ac_lib_var=yes"
7792 echo "configure: failed program was:" >&5
7793 cat conftest.
$ac_ext >&5
7795 eval "ac_cv_lib_$ac_lib_var=no"
7798 LIBS
="$ac_save_LIBS"
7801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7802 echo "$ac_t""yes" 1>&6
7803 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7804 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7805 cat >> confdefs.h
<<EOF
7806 #define $ac_tr_lib 1
7812 echo "$ac_t""no" 1>&6
7815 for ac_func
in bigcrypt
7817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7818 echo "configure:7819: checking for $ac_func" >&5
7819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7820 echo $ac_n "(cached) $ac_c" 1>&6
7822 cat > conftest.
$ac_ext <<EOF
7823 #line 7824 "configure"
7824 #include "confdefs.h"
7825 /* System header to define __stub macros and hopefully few prototypes,
7826 which can conflict with char $ac_func(); below. */
7828 /* Override any gcc2 internal prototype to avoid an error. */
7829 /* We use char because int might match the return type of a gcc2
7830 builtin and then its argument prototype would still apply. */
7835 /* The GNU C library defines this for functions which it implements
7836 to always fail with ENOSYS. Some functions are actually named
7837 something starting with __ and the normal name is an alias. */
7838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7846 if { (eval echo configure
:7847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7848 eval "ac_cv_func_$ac_func=yes"
7850 echo "configure: failed program was:" >&5
7851 cat conftest.
$ac_ext >&5
7853 eval "ac_cv_func_$ac_func=no"
7858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7859 echo "$ac_t""yes" 1>&6
7860 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7861 cat >> confdefs.h
<<EOF
7862 #define $ac_tr_func 1
7866 echo "$ac_t""no" 1>&6
7875 *-lsecurity*) for ac_func
in getprpwnam
7877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7878 echo "configure:7879: checking for $ac_func" >&5
7879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7880 echo $ac_n "(cached) $ac_c" 1>&6
7882 cat > conftest.
$ac_ext <<EOF
7883 #line 7884 "configure"
7884 #include "confdefs.h"
7885 /* System header to define __stub macros and hopefully few prototypes,
7886 which can conflict with char $ac_func(); below. */
7888 /* Override any gcc2 internal prototype to avoid an error. */
7889 /* We use char because int might match the return type of a gcc2
7890 builtin and then its argument prototype would still apply. */
7895 /* The GNU C library defines this for functions which it implements
7896 to always fail with ENOSYS. Some functions are actually named
7897 something starting with __ and the normal name is an alias. */
7898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7906 if { (eval echo configure
:7907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7908 eval "ac_cv_func_$ac_func=yes"
7910 echo "configure: failed program was:" >&5
7911 cat conftest.
$ac_ext >&5
7913 eval "ac_cv_func_$ac_func=no"
7918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7919 echo "$ac_t""yes" 1>&6
7920 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7921 cat >> confdefs.h
<<EOF
7922 #define $ac_tr_func 1
7926 echo "$ac_t""no" 1>&6
7930 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7931 echo "configure:7932: checking for getprpwnam in -lsecurity" >&5
7932 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7933 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7934 echo $ac_n "(cached) $ac_c" 1>&6
7936 ac_save_LIBS
="$LIBS"
7937 LIBS
="-lsecurity $LIBS"
7938 cat > conftest.
$ac_ext <<EOF
7939 #line 7940 "configure"
7940 #include "confdefs.h"
7941 /* Override any gcc2 internal prototype to avoid an error. */
7942 /* We use char because int might match the return type of a gcc2
7943 builtin and then its argument prototype would still apply. */
7950 if { (eval echo configure
:7951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7952 eval "ac_cv_lib_$ac_lib_var=yes"
7954 echo "configure: failed program was:" >&5
7955 cat conftest.
$ac_ext >&5
7957 eval "ac_cv_lib_$ac_lib_var=no"
7960 LIBS
="$ac_save_LIBS"
7963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7964 echo "$ac_t""yes" 1>&6
7965 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7966 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7967 cat >> confdefs.h
<<EOF
7968 #define $ac_tr_lib 1
7971 LIBS
="-lsecurity $LIBS"
7974 echo "$ac_t""no" 1>&6
7977 for ac_func
in getprpwnam
7979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7980 echo "configure:7981: checking for $ac_func" >&5
7981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7982 echo $ac_n "(cached) $ac_c" 1>&6
7984 cat > conftest.
$ac_ext <<EOF
7985 #line 7986 "configure"
7986 #include "confdefs.h"
7987 /* System header to define __stub macros and hopefully few prototypes,
7988 which can conflict with char $ac_func(); below. */
7990 /* Override any gcc2 internal prototype to avoid an error. */
7991 /* We use char because int might match the return type of a gcc2
7992 builtin and then its argument prototype would still apply. */
7997 /* The GNU C library defines this for functions which it implements
7998 to always fail with ENOSYS. Some functions are actually named
7999 something starting with __ and the normal name is an alias. */
8000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8008 if { (eval echo configure
:8009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8010 eval "ac_cv_func_$ac_func=yes"
8012 echo "configure: failed program was:" >&5
8013 cat conftest.
$ac_ext >&5
8015 eval "ac_cv_func_$ac_func=no"
8020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8021 echo "$ac_t""yes" 1>&6
8022 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8023 cat >> confdefs.h
<<EOF
8024 #define $ac_tr_func 1
8028 echo "$ac_t""no" 1>&6
8036 *-lsec*) for ac_func
in getprpwnam
8038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8039 echo "configure:8040: checking for $ac_func" >&5
8040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8041 echo $ac_n "(cached) $ac_c" 1>&6
8043 cat > conftest.
$ac_ext <<EOF
8044 #line 8045 "configure"
8045 #include "confdefs.h"
8046 /* System header to define __stub macros and hopefully few prototypes,
8047 which can conflict with char $ac_func(); below. */
8049 /* Override any gcc2 internal prototype to avoid an error. */
8050 /* We use char because int might match the return type of a gcc2
8051 builtin and then its argument prototype would still apply. */
8056 /* The GNU C library defines this for functions which it implements
8057 to always fail with ENOSYS. Some functions are actually named
8058 something starting with __ and the normal name is an alias. */
8059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8067 if { (eval echo configure
:8068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8069 eval "ac_cv_func_$ac_func=yes"
8071 echo "configure: failed program was:" >&5
8072 cat conftest.
$ac_ext >&5
8074 eval "ac_cv_func_$ac_func=no"
8079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8080 echo "$ac_t""yes" 1>&6
8081 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8082 cat >> confdefs.h
<<EOF
8083 #define $ac_tr_func 1
8087 echo "$ac_t""no" 1>&6
8091 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8092 echo "configure:8093: checking for getprpwnam in -lsec" >&5
8093 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8095 echo $ac_n "(cached) $ac_c" 1>&6
8097 ac_save_LIBS
="$LIBS"
8099 cat > conftest.
$ac_ext <<EOF
8100 #line 8101 "configure"
8101 #include "confdefs.h"
8102 /* Override any gcc2 internal prototype to avoid an error. */
8103 /* We use char because int might match the return type of a gcc2
8104 builtin and then its argument prototype would still apply. */
8111 if { (eval echo configure
:8112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8113 eval "ac_cv_lib_$ac_lib_var=yes"
8115 echo "configure: failed program was:" >&5
8116 cat conftest.
$ac_ext >&5
8118 eval "ac_cv_lib_$ac_lib_var=no"
8121 LIBS
="$ac_save_LIBS"
8124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8125 echo "$ac_t""yes" 1>&6
8126 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8127 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8128 cat >> confdefs.h
<<EOF
8129 #define $ac_tr_lib 1
8135 echo "$ac_t""no" 1>&6
8138 for ac_func
in getprpwnam
8140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8141 echo "configure:8142: checking for $ac_func" >&5
8142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8143 echo $ac_n "(cached) $ac_c" 1>&6
8145 cat > conftest.
$ac_ext <<EOF
8146 #line 8147 "configure"
8147 #include "confdefs.h"
8148 /* System header to define __stub macros and hopefully few prototypes,
8149 which can conflict with char $ac_func(); below. */
8151 /* Override any gcc2 internal prototype to avoid an error. */
8152 /* We use char because int might match the return type of a gcc2
8153 builtin and then its argument prototype would still apply. */
8158 /* The GNU C library defines this for functions which it implements
8159 to always fail with ENOSYS. Some functions are actually named
8160 something starting with __ and the normal name is an alias. */
8161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8169 if { (eval echo configure
:8170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8171 eval "ac_cv_func_$ac_func=yes"
8173 echo "configure: failed program was:" >&5
8174 cat conftest.
$ac_ext >&5
8176 eval "ac_cv_func_$ac_func=no"
8181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8182 echo "$ac_t""yes" 1>&6
8183 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8184 cat >> confdefs.h
<<EOF
8185 #define $ac_tr_func 1
8189 echo "$ac_t""no" 1>&6
8197 # this bit needs to be modified for each OS that is suported by
8198 # smbwrapper. You need to specify how to created a shared library and
8199 # how to compile C code to produce PIC object files
8201 # these are the defaults, good for lots of systems
8207 # and these are for particular systems
8209 *linux
*) cat >> confdefs.h
<<\EOF
8213 *solaris
*) cat >> confdefs.h
<<\EOF
8219 *sunos
*) cat >> confdefs.h
<<\EOF
8225 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
8227 *irix
*) cat >> confdefs.h
<<\EOF
8232 *irix6
*) cat >> confdefs.h
<<\EOF
8238 ATTEMPT_WRAP32_BUILD
=yes
8240 *aix
*) cat >> confdefs.h
<<\EOF
8244 *hpux
*) cat >> confdefs.h
<<\EOF
8249 # Use special PIC flags for the native HP-UX compiler.
8250 if test $ac_cv_prog_cc_Ae = yes; then
8255 *qnx
*) cat >> confdefs.h
<<\EOF
8259 *osf
*) cat >> confdefs.h
<<\EOF
8263 *sco
*) cat >> confdefs.h
<<\EOF
8267 *next2
*) cat >> confdefs.h
<<\EOF
8271 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8272 set dummy
groff; ac_word
=$2
8273 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8274 echo "configure:8275: checking for $ac_word" >&5
8275 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8276 echo $ac_n "(cached) $ac_c" 1>&6
8278 if test -n "$ROFF"; then
8279 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8281 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8283 for ac_dir
in $ac_dummy; do
8284 test -z "$ac_dir" && ac_dir
=.
8285 if test -f $ac_dir/$ac_word; then
8286 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8293 ROFF
="$ac_cv_prog_ROFF"
8294 if test -n "$ROFF"; then
8295 echo "$ac_t""$ROFF" 1>&6
8297 echo "$ac_t""no" 1>&6
8302 *-univel-*) if test "$GCC" != yes ; then
8303 cat >> confdefs.h
<<\EOF
8304 #define HAVE_MEMSET 1
8310 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8311 #define RELIANTUNIX 1
8317 if test "$GCC" != yes ; then
8318 cat >> confdefs.h
<<\EOF
8319 #define HAVE_MEMSET 1
8327 # try to work out how to produce pic code with this compiler
8328 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8329 echo "configure:8330: checking whether ${CC-cc} accepts -fpic" >&5
8330 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8331 echo $ac_n "(cached) $ac_c" 1>&6
8333 echo 'void f(){}' > conftest.c
8334 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8335 ac_cv_prog_cc_fpic
=yes
8337 ac_cv_prog_cc_fpic
=no
8343 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8344 if test $ac_cv_prog_cc_fpic = yes; then
8347 if test x
$PICFLAG = x
; then
8348 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8349 echo "configure:8350: checking whether ${CC-cc} accepts -Kpic" >&5
8350 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8351 echo $ac_n "(cached) $ac_c" 1>&6
8353 echo 'void f(){}' > conftest.c
8354 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8355 ac_cv_prog_cc_Kpic
=yes
8357 ac_cv_prog_cc_Kpic
=no
8363 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8364 if test $ac_cv_prog_cc_Kpic = yes; then
8368 if test x
$PICFLAG = x
; then
8369 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8370 echo "configure:8371: checking whether ${CC-cc} accepts -KPIC" >&5
8371 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8372 echo $ac_n "(cached) $ac_c" 1>&6
8374 echo 'void f(){}' > conftest.c
8375 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8376 ac_cv_prog_cc_KPIC
=yes
8378 ac_cv_prog_cc_KPIC
=no
8384 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8385 if test $ac_cv_prog_cc_KPIC = yes; then
8392 echo $ac_n "checking for long long""... $ac_c" 1>&6
8393 echo "configure:8394: checking for long long" >&5
8394 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8395 echo $ac_n "(cached) $ac_c" 1>&6
8398 if test "$cross_compiling" = yes; then
8399 samba_cv_have_longlong
=cross
8401 cat > conftest.
$ac_ext <<EOF
8402 #line 8403 "configure"
8403 #include "confdefs.h"
8405 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8407 if { (eval echo configure
:8408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8409 samba_cv_have_longlong
=yes
8411 echo "configure: failed program was:" >&5
8412 cat conftest.
$ac_ext >&5
8414 samba_cv_have_longlong
=no
8421 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8422 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8423 cat >> confdefs.h
<<\EOF
8424 #define HAVE_LONGLONG 1
8430 # Check if the compiler supports the LL prefix on long long integers.
8433 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8434 echo "configure:8435: checking for LL suffix on long long integers" >&5
8435 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8436 echo $ac_n "(cached) $ac_c" 1>&6
8439 cat > conftest.
$ac_ext <<EOF
8440 #line 8441 "configure"
8441 #include "confdefs.h"
8444 long long i = 0x8000000000LL
8447 if { (eval echo configure
:8448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8449 samba_cv_compiler_supports_ll
=yes
8451 echo "configure: failed program was:" >&5
8452 cat conftest.
$ac_ext >&5
8454 samba_cv_compiler_supports_ll
=no
8459 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8460 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8461 cat >> confdefs.h
<<\EOF
8462 #define COMPILER_SUPPORTS_LL 1
8468 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8469 echo "configure:8470: checking for 64 bit off_t" >&5
8470 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8471 echo $ac_n "(cached) $ac_c" 1>&6
8474 if test "$cross_compiling" = yes; then
8475 samba_cv_SIZEOF_OFF_T
=cross
8477 cat > conftest.
$ac_ext <<EOF
8478 #line 8479 "configure"
8479 #include "confdefs.h"
8481 #include <sys/stat.h>
8482 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8484 if { (eval echo configure
:8485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8486 samba_cv_SIZEOF_OFF_T
=yes
8488 echo "configure: failed program was:" >&5
8489 cat conftest.
$ac_ext >&5
8491 samba_cv_SIZEOF_OFF_T
=no
8498 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8499 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8500 cat >> confdefs.h
<<\EOF
8501 #define SIZEOF_OFF_T 8
8506 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8507 echo "configure:8508: checking for off64_t" >&5
8508 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8509 echo $ac_n "(cached) $ac_c" 1>&6
8512 if test "$cross_compiling" = yes; then
8513 samba_cv_HAVE_OFF64_T
=cross
8515 cat > conftest.
$ac_ext <<EOF
8516 #line 8517 "configure"
8517 #include "confdefs.h"
8519 #if defined(HAVE_UNISTD_H)
8523 #include <sys/stat.h>
8524 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8526 if { (eval echo configure
:8527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8528 samba_cv_HAVE_OFF64_T
=yes
8530 echo "configure: failed program was:" >&5
8531 cat conftest.
$ac_ext >&5
8533 samba_cv_HAVE_OFF64_T
=no
8540 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8541 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8542 cat >> confdefs.h
<<\EOF
8543 #define HAVE_OFF64_T 1
8548 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8549 echo "configure:8550: checking for 64 bit ino_t" >&5
8550 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8551 echo $ac_n "(cached) $ac_c" 1>&6
8554 if test "$cross_compiling" = yes; then
8555 samba_cv_SIZEOF_INO_T
=cross
8557 cat > conftest.
$ac_ext <<EOF
8558 #line 8559 "configure"
8559 #include "confdefs.h"
8561 #include <sys/stat.h>
8562 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8564 if { (eval echo configure
:8565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8566 samba_cv_SIZEOF_INO_T
=yes
8568 echo "configure: failed program was:" >&5
8569 cat conftest.
$ac_ext >&5
8571 samba_cv_SIZEOF_INO_T
=no
8578 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8579 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8580 cat >> confdefs.h
<<\EOF
8581 #define SIZEOF_INO_T 8
8586 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8587 echo "configure:8588: checking for ino64_t" >&5
8588 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8589 echo $ac_n "(cached) $ac_c" 1>&6
8592 if test "$cross_compiling" = yes; then
8593 samba_cv_HAVE_INO64_T
=cross
8595 cat > conftest.
$ac_ext <<EOF
8596 #line 8597 "configure"
8597 #include "confdefs.h"
8599 #if defined(HAVE_UNISTD_H)
8603 #include <sys/stat.h>
8604 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8606 if { (eval echo configure
:8607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8608 samba_cv_HAVE_INO64_T
=yes
8610 echo "configure: failed program was:" >&5
8611 cat conftest.
$ac_ext >&5
8613 samba_cv_HAVE_INO64_T
=no
8620 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8621 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8622 cat >> confdefs.h
<<\EOF
8623 #define HAVE_INO64_T 1
8628 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8629 echo "configure:8630: checking for struct dirent64" >&5
8630 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8631 echo $ac_n "(cached) $ac_c" 1>&6
8634 cat > conftest.
$ac_ext <<EOF
8635 #line 8636 "configure"
8636 #include "confdefs.h"
8638 #if defined(HAVE_UNISTD_H)
8641 #include <sys/types.h>
8647 if { (eval echo configure
:8648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8649 samba_cv_HAVE_STRUCT_DIRENT64
=yes
8651 echo "configure: failed program was:" >&5
8652 cat conftest.
$ac_ext >&5
8654 samba_cv_HAVE_STRUCT_DIRENT64
=no
8659 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8660 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
8661 cat >> confdefs.h
<<\EOF
8662 #define HAVE_STRUCT_DIRENT64 1
8667 echo $ac_n "checking for union semun""... $ac_c" 1>&6
8668 echo "configure:8669: checking for union semun" >&5
8669 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
8670 echo $ac_n "(cached) $ac_c" 1>&6
8673 if test "$cross_compiling" = yes; then
8674 samba_cv_HAVE_UNION_SEMUN
=cross
8676 cat > conftest.
$ac_ext <<EOF
8677 #line 8678 "configure"
8678 #include "confdefs.h"
8680 #include <sys/types.h>
8681 #include <sys/ipc.h>
8682 #include <sys/sem.h>
8683 main() { union semun ss; exit(0); }
8685 if { (eval echo configure
:8686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8687 samba_cv_HAVE_UNION_SEMUN
=yes
8689 echo "configure: failed program was:" >&5
8690 cat conftest.
$ac_ext >&5
8692 samba_cv_HAVE_UNION_SEMUN
=no
8699 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
8700 if test x
"$samba_cv_HAVE_UNION_SEMUN" = x
"yes"; then
8701 cat >> confdefs.h
<<\EOF
8702 #define HAVE_UNION_SEMUN 1
8707 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8708 echo "configure:8709: checking for unsigned char" >&5
8709 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8710 echo $ac_n "(cached) $ac_c" 1>&6
8713 if test "$cross_compiling" = yes; then
8714 samba_cv_HAVE_UNSIGNED_CHAR
=cross
8716 cat > conftest.
$ac_ext <<EOF
8717 #line 8718 "configure"
8718 #include "confdefs.h"
8720 main() { char c; c=250; exit((c > 0)?0:1); }
8722 if { (eval echo configure
:8723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8724 samba_cv_HAVE_UNSIGNED_CHAR
=yes
8726 echo "configure: failed program was:" >&5
8727 cat conftest.
$ac_ext >&5
8729 samba_cv_HAVE_UNSIGNED_CHAR
=no
8736 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8737 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
8738 cat >> confdefs.h
<<\EOF
8739 #define HAVE_UNSIGNED_CHAR 1
8744 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8745 echo "configure:8746: checking for sin_len in sock" >&5
8746 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8747 echo $ac_n "(cached) $ac_c" 1>&6
8750 cat > conftest.
$ac_ext <<EOF
8751 #line 8752 "configure"
8752 #include "confdefs.h"
8753 #include <sys/types.h>
8754 #include <sys/socket.h>
8755 #include <netinet/in.h>
8757 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8760 if { (eval echo configure
:8761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8762 samba_cv_HAVE_SOCK_SIN_LEN
=yes
8764 echo "configure: failed program was:" >&5
8765 cat conftest.
$ac_ext >&5
8767 samba_cv_HAVE_SOCK_SIN_LEN
=no
8772 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8773 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
8774 cat >> confdefs.h
<<\EOF
8775 #define HAVE_SOCK_SIN_LEN 1
8780 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8781 echo "configure:8782: checking whether seekdir returns void" >&5
8782 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8783 echo $ac_n "(cached) $ac_c" 1>&6
8786 cat > conftest.
$ac_ext <<EOF
8787 #line 8788 "configure"
8788 #include "confdefs.h"
8789 #include <sys/types.h>
8791 void seekdir(DIR *d, long loc) { return; }
8796 if { (eval echo configure
:8797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8798 samba_cv_SEEKDIR_RETURNS_VOID
=yes
8800 echo "configure: failed program was:" >&5
8801 cat conftest.
$ac_ext >&5
8803 samba_cv_SEEKDIR_RETURNS_VOID
=no
8808 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8809 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
8810 cat >> confdefs.h
<<\EOF
8811 #define SEEKDIR_RETURNS_VOID 1
8816 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8817 echo "configure:8818: checking for __FILE__ macro" >&5
8818 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8819 echo $ac_n "(cached) $ac_c" 1>&6
8822 cat > conftest.
$ac_ext <<EOF
8823 #line 8824 "configure"
8824 #include "confdefs.h"
8827 printf("%s\n", __FILE__);
8830 if { (eval echo configure
:8831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8832 samba_cv_HAVE_FILE_MACRO
=yes
8834 echo "configure: failed program was:" >&5
8835 cat conftest.
$ac_ext >&5
8837 samba_cv_HAVE_FILE_MACRO
=no
8842 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8843 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
8844 cat >> confdefs.h
<<\EOF
8845 #define HAVE_FILE_MACRO 1
8850 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8851 echo "configure:8852: checking for __FUNCTION__ macro" >&5
8852 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8853 echo $ac_n "(cached) $ac_c" 1>&6
8856 cat > conftest.
$ac_ext <<EOF
8857 #line 8858 "configure"
8858 #include "confdefs.h"
8861 printf("%s\n", __FUNCTION__);
8864 if { (eval echo configure
:8865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8866 samba_cv_HAVE_FUNCTION_MACRO
=yes
8868 echo "configure: failed program was:" >&5
8869 cat conftest.
$ac_ext >&5
8871 samba_cv_HAVE_FUNCTION_MACRO
=no
8876 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8877 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
8878 cat >> confdefs.h
<<\EOF
8879 #define HAVE_FUNCTION_MACRO 1
8884 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8885 echo "configure:8886: checking if gettimeofday takes tz argument" >&5
8886 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8887 echo $ac_n "(cached) $ac_c" 1>&6
8890 if test "$cross_compiling" = yes; then
8891 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
8893 cat > conftest.
$ac_ext <<EOF
8894 #line 8895 "configure"
8895 #include "confdefs.h"
8897 #include <sys/time.h>
8899 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8901 if { (eval echo configure
:8902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8903 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
8905 echo "configure: failed program was:" >&5
8906 cat conftest.
$ac_ext >&5
8908 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
8915 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8916 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
8917 cat >> confdefs.h
<<\EOF
8918 #define HAVE_GETTIMEOFDAY_TZ 1
8924 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8925 echo "configure:8926: checking for broken readdir" >&5
8926 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8927 echo $ac_n "(cached) $ac_c" 1>&6
8930 if test "$cross_compiling" = yes; then
8931 samba_cv_HAVE_BROKEN_READDIR
=cross
8933 cat > conftest.
$ac_ext <<EOF
8934 #line 8935 "configure"
8935 #include "confdefs.h"
8936 #include <sys/types.h>
8938 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8939 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8940 di->d_name[0] == 0) exit(0); exit(1);}
8942 if { (eval echo configure
:8943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8944 samba_cv_HAVE_BROKEN_READDIR
=yes
8946 echo "configure: failed program was:" >&5
8947 cat conftest.
$ac_ext >&5
8949 samba_cv_HAVE_BROKEN_READDIR
=no
8956 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
8957 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
8958 cat >> confdefs.h
<<\EOF
8959 #define HAVE_BROKEN_READDIR 1
8964 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
8965 echo "configure:8966: checking for utimbuf" >&5
8966 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
8967 echo $ac_n "(cached) $ac_c" 1>&6
8970 cat > conftest.
$ac_ext <<EOF
8971 #line 8972 "configure"
8972 #include "confdefs.h"
8973 #include <sys/types.h>
8976 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
8979 if { (eval echo configure
:8980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8981 samba_cv_HAVE_UTIMBUF
=yes
8983 echo "configure: failed program was:" >&5
8984 cat conftest.
$ac_ext >&5
8986 samba_cv_HAVE_UTIMBUF
=no
8991 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
8992 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
8993 cat >> confdefs.h
<<\EOF
8994 #define HAVE_UTIMBUF 1
8999 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9000 echo "configure:9001: checking for ut_syslen in utmpx" >&5
9001 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9002 echo $ac_n "(cached) $ac_c" 1>&6
9005 cat > conftest.
$ac_ext <<EOF
9006 #line 9007 "configure"
9007 #include "confdefs.h"
9010 struct utmpx ux; ux.ut_syslen = 0;
9013 if { (eval echo configure
:9014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9015 samba_cv_HAVE_UX_UT_SYSLEN
=yes
9017 echo "configure: failed program was:" >&5
9018 cat conftest.
$ac_ext >&5
9020 samba_cv_HAVE_UX_UT_SYSLEN
=no
9025 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9026 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
9027 cat >> confdefs.h
<<\EOF
9028 #define HAVE_UX_UT_SYSLEN 1
9033 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9034 echo "configure:9035: checking for Linux kernel oplocks" >&5
9035 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9036 echo $ac_n "(cached) $ac_c" 1>&6
9039 if test "$cross_compiling" = yes; then
9040 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
9042 cat > conftest.
$ac_ext <<EOF
9043 #line 9044 "configure"
9044 #include "confdefs.h"
9046 #include <sys/types.h>
9049 #define F_GETLEASE 1025
9052 int fd = open("/dev/null", O_RDONLY);
9053 return fcntl(fd, F_GETLEASE, 0) == -1;
9057 if { (eval echo configure
:9058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9059 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
9061 echo "configure: failed program was:" >&5
9062 cat conftest.
$ac_ext >&5
9064 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
9071 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9072 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
9073 cat >> confdefs.h
<<\EOF
9074 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9079 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9080 echo "configure:9081: checking for IRIX kernel oplock type definitions" >&5
9081 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9082 echo $ac_n "(cached) $ac_c" 1>&6
9085 cat > conftest.
$ac_ext <<EOF
9086 #line 9087 "configure"
9087 #include "confdefs.h"
9088 #include <sys/types.h>
9091 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9094 if { (eval echo configure
:9095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9096 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
9098 echo "configure: failed program was:" >&5
9099 cat conftest.
$ac_ext >&5
9101 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
9106 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9107 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
9108 cat >> confdefs.h
<<\EOF
9109 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9114 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9115 echo "configure:9116: checking for irix specific capabilities" >&5
9116 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9117 echo $ac_n "(cached) $ac_c" 1>&6
9120 if test "$cross_compiling" = yes; then
9121 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
9123 cat > conftest.
$ac_ext <<EOF
9124 #line 9125 "configure"
9125 #include "confdefs.h"
9126 #include <sys/types.h>
9127 #include <sys/capability.h>
9130 if ((cap = cap_get_proc()) == NULL)
9132 cap->cap_effective |= CAP_NETWORK_MGT;
9133 cap->cap_inheritable |= CAP_NETWORK_MGT;
9139 if { (eval echo configure
:9140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9141 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
9143 echo "configure: failed program was:" >&5
9144 cat conftest.
$ac_ext >&5
9146 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
9153 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9154 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
9155 cat >> confdefs.h
<<\EOF
9156 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9162 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9163 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9166 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9167 echo "configure:9168: checking for int16 typedef included by rpc/rpc.h" >&5
9168 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9169 echo $ac_n "(cached) $ac_c" 1>&6
9172 cat > conftest.
$ac_ext <<EOF
9173 #line 9174 "configure"
9174 #include "confdefs.h"
9175 #include <sys/types.h>
9176 #if defined(HAVE_RPC_RPC_H)
9177 #include <rpc/rpc.h>
9183 if { (eval echo configure
:9184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9185 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
9187 echo "configure: failed program was:" >&5
9188 cat conftest.
$ac_ext >&5
9190 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
9195 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9196 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
9197 cat >> confdefs.h
<<\EOF
9198 #define HAVE_INT16_FROM_RPC_RPC_H 1
9203 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9204 echo "configure:9205: checking for uint16 typedef included by rpc/rpc.h" >&5
9205 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9206 echo $ac_n "(cached) $ac_c" 1>&6
9209 cat > conftest.
$ac_ext <<EOF
9210 #line 9211 "configure"
9211 #include "confdefs.h"
9212 #include <sys/types.h>
9213 #if defined(HAVE_RPC_RPC_H)
9214 #include <rpc/rpc.h>
9220 if { (eval echo configure
:9221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9222 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
9224 echo "configure: failed program was:" >&5
9225 cat conftest.
$ac_ext >&5
9227 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
9232 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9233 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
9234 cat >> confdefs.h
<<\EOF
9235 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9240 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9241 echo "configure:9242: checking for int32 typedef included by rpc/rpc.h" >&5
9242 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9243 echo $ac_n "(cached) $ac_c" 1>&6
9246 cat > conftest.
$ac_ext <<EOF
9247 #line 9248 "configure"
9248 #include "confdefs.h"
9249 #include <sys/types.h>
9250 #if defined(HAVE_RPC_RPC_H)
9251 #include <rpc/rpc.h>
9257 if { (eval echo configure
:9258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9259 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
9261 echo "configure: failed program was:" >&5
9262 cat conftest.
$ac_ext >&5
9264 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
9269 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9270 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
9271 cat >> confdefs.h
<<\EOF
9272 #define HAVE_INT32_FROM_RPC_RPC_H 1
9277 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9278 echo "configure:9279: checking for uint32 typedef included by rpc/rpc.h" >&5
9279 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9280 echo $ac_n "(cached) $ac_c" 1>&6
9283 cat > conftest.
$ac_ext <<EOF
9284 #line 9285 "configure"
9285 #include "confdefs.h"
9286 #include <sys/types.h>
9287 #if defined(HAVE_RPC_RPC_H)
9288 #include <rpc/rpc.h>
9294 if { (eval echo configure
:9295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9296 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
9298 echo "configure: failed program was:" >&5
9299 cat conftest.
$ac_ext >&5
9301 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
9306 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
9307 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
9308 cat >> confdefs.h
<<\EOF
9309 #define HAVE_UINT32_FROM_RPC_RPC_H 1
9315 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
9316 echo "configure:9317: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
9317 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
9318 echo $ac_n "(cached) $ac_c" 1>&6
9321 cat > conftest.
$ac_ext <<EOF
9322 #line 9323 "configure"
9323 #include "confdefs.h"
9324 #include <sys/types.h>
9325 #ifdef HAVE_SYS_SECURITY_H
9326 #include <sys/security.h>
9328 #endif /* HAVE_SYS_SECURITY_H */
9329 #if defined(HAVE_RPC_RPC_H)
9330 #include <rpc/rpc.h>
9336 if { (eval echo configure
:9337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9338 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
9340 echo "configure: failed program was:" >&5
9341 cat conftest.
$ac_ext >&5
9343 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
9348 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9349 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
9350 cat >> confdefs.h
<<\EOF
9351 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9356 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9357 echo "configure:9358: checking for test routines" >&5
9358 if test "$cross_compiling" = yes; then
9359 echo "configure: warning: cannot run when cross-compiling" 1>&2
9361 cat > conftest.
$ac_ext <<EOF
9362 #line 9363 "configure"
9363 #include "confdefs.h"
9364 #include "${srcdir-.}/tests/trivial.c"
9366 if { (eval echo configure
:9367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9368 echo "$ac_t""yes" 1>&6
9370 echo "configure: failed program was:" >&5
9371 cat conftest.
$ac_ext >&5
9373 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9379 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9380 echo "configure:9381: checking for ftruncate extend" >&5
9381 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
9382 echo $ac_n "(cached) $ac_c" 1>&6
9385 if test "$cross_compiling" = yes; then
9386 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
9388 cat > conftest.
$ac_ext <<EOF
9389 #line 9390 "configure"
9390 #include "confdefs.h"
9391 #include "${srcdir-.}/tests/ftruncate.c"
9393 if { (eval echo configure
:9394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9395 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
9397 echo "configure: failed program was:" >&5
9398 cat conftest.
$ac_ext >&5
9400 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
9407 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
9408 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
9409 cat >> confdefs.h
<<\EOF
9410 #define HAVE_FTRUNCATE_EXTEND 1
9415 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
9416 echo "configure:9417: checking for broken getgroups" >&5
9417 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
9418 echo $ac_n "(cached) $ac_c" 1>&6
9421 if test "$cross_compiling" = yes; then
9422 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
9424 cat > conftest.
$ac_ext <<EOF
9425 #line 9426 "configure"
9426 #include "confdefs.h"
9427 #include "${srcdir-.}/tests/getgroups.c"
9429 if { (eval echo configure
:9430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9431 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
9433 echo "configure: failed program was:" >&5
9434 cat conftest.
$ac_ext >&5
9436 samba_cv_HAVE_BROKEN_GETGROUPS
=no
9443 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
9444 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
9445 cat >> confdefs.h
<<\EOF
9446 #define HAVE_BROKEN_GETGROUPS 1
9451 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
9452 echo "configure:9453: checking whether getpass should be replaced" >&5
9453 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
9454 echo $ac_n "(cached) $ac_c" 1>&6
9457 SAVE_CPPFLAGS
="$CPPFLAGS"
9458 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
9459 cat > conftest.
$ac_ext <<EOF
9460 #line 9461 "configure"
9461 #include "confdefs.h"
9463 #define REPLACE_GETPASS 1
9464 #define NO_CONFIG_H 1
9465 #define main dont_declare_main
9466 #include "${srcdir-.}/lib/getsmbpass.c"
9473 if { (eval echo configure
:9474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9475 samba_cv_REPLACE_GETPASS
=yes
9477 echo "configure: failed program was:" >&5
9478 cat conftest.
$ac_ext >&5
9480 samba_cv_REPLACE_GETPASS
=no
9483 CPPFLAGS
="$SAVE_CPPFLAGS"
9487 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
9488 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
9489 cat >> confdefs.h
<<\EOF
9490 #define REPLACE_GETPASS 1
9495 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
9496 echo "configure:9497: checking for working fnmatch" >&5
9497 if eval "test \"`echo '$''{'samba_cv_HAVE_FNMATCH'+set}'`\" = set"; then
9498 echo $ac_n "(cached) $ac_c" 1>&6
9501 if test "$cross_compiling" = yes; then
9502 samba_cv_HAVE_FNMATCH
=cross
9504 cat > conftest.
$ac_ext <<EOF
9505 #line 9506 "configure"
9506 #include "confdefs.h"
9507 #include <fnmatch.h>
9508 main() { exit(fnmatch("*.o", "x.o", FNM_PATHNAME) == 0? 0: 1); }
9510 if { (eval echo configure
:9511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9512 samba_cv_HAVE_FNMATCH
=yes
9514 echo "configure: failed program was:" >&5
9515 cat conftest.
$ac_ext >&5
9517 samba_cv_HAVE_FNMATCH
=no
9524 echo "$ac_t""$samba_cv_HAVE_FNMATCH" 1>&6
9525 if test x
"$samba_cv_HAVE_FNMATCH" = x
"yes"; then
9526 cat >> confdefs.h
<<\EOF
9527 #define HAVE_FNMATCH 1
9532 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
9533 echo "configure:9534: checking for broken inet_ntoa" >&5
9534 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
9535 echo $ac_n "(cached) $ac_c" 1>&6
9538 if test "$cross_compiling" = yes; then
9539 samba_cv_REPLACE_INET_NTOA
=cross
9541 cat > conftest.
$ac_ext <<EOF
9542 #line 9543 "configure"
9543 #include "confdefs.h"
9546 #include <sys/types.h>
9547 #include <netinet/in.h>
9548 #ifdef HAVE_ARPA_INET_H
9549 #include <arpa/inet.h>
9551 main() { struct in_addr ip; ip.s_addr = 0x12345678;
9552 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
9553 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
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_REPLACE_INET_NTOA
=yes
9560 echo "configure: failed program was:" >&5
9561 cat conftest.
$ac_ext >&5
9563 samba_cv_REPLACE_INET_NTOA
=no
9570 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
9571 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
9572 cat >> confdefs.h
<<\EOF
9573 #define REPLACE_INET_NTOA 1
9578 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
9579 echo "configure:9580: checking for sysconf(_SC_NGROUPS_MAX)" >&5
9580 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
9581 echo $ac_n "(cached) $ac_c" 1>&6
9584 if test "$cross_compiling" = yes; then
9585 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
9587 cat > conftest.
$ac_ext <<EOF
9588 #line 9589 "configure"
9589 #include "confdefs.h"
9591 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
9593 if { (eval echo configure
:9594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9595 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
9597 echo "configure: failed program was:" >&5
9598 cat conftest.
$ac_ext >&5
9600 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
9607 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
9608 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
9609 cat >> confdefs.h
<<\EOF
9610 #define SYSCONF_SC_NGROUPS_MAX 1
9615 echo $ac_n "checking for root""... $ac_c" 1>&6
9616 echo "configure:9617: checking for root" >&5
9617 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
9618 echo $ac_n "(cached) $ac_c" 1>&6
9621 if test "$cross_compiling" = yes; then
9622 samba_cv_HAVE_ROOT
=cross
9624 cat > conftest.
$ac_ext <<EOF
9625 #line 9626 "configure"
9626 #include "confdefs.h"
9627 main() { exit(getuid() != 0); }
9629 if { (eval echo configure
:9630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9631 samba_cv_HAVE_ROOT
=yes
9633 echo "configure: failed program was:" >&5
9634 cat conftest.
$ac_ext >&5
9636 samba_cv_HAVE_ROOT
=no
9643 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
9644 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
9645 cat >> confdefs.h
<<\EOF
9650 echo "configure: warning: running as non-root will disable some tests" 1>&2
9654 # look for a method of finding the list of network interfaces
9656 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
9657 echo "configure:9658: checking for iface AIX" >&5
9658 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
9659 echo $ac_n "(cached) $ac_c" 1>&6
9662 if test "$cross_compiling" = yes; then
9663 samba_cv_HAVE_IFACE_AIX
=cross
9665 cat > conftest.
$ac_ext <<EOF
9666 #line 9667 "configure"
9667 #include "confdefs.h"
9669 #define HAVE_IFACE_AIX 1
9670 #define AUTOCONF_TEST 1
9671 #include "confdefs.h"
9672 #include "${srcdir-.}/lib/interfaces.c"
9674 if { (eval echo configure
:9675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9676 samba_cv_HAVE_IFACE_AIX
=yes
9678 echo "configure: failed program was:" >&5
9679 cat conftest.
$ac_ext >&5
9681 samba_cv_HAVE_IFACE_AIX
=no
9688 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
9689 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
9690 iface
=yes;cat >> confdefs.h
<<\EOF
9691 #define HAVE_IFACE_AIX 1
9696 if test $iface = no
; then
9697 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
9698 echo "configure:9699: checking for iface ifconf" >&5
9699 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
9700 echo $ac_n "(cached) $ac_c" 1>&6
9703 if test "$cross_compiling" = yes; then
9704 samba_cv_HAVE_IFACE_IFCONF
=cross
9706 cat > conftest.
$ac_ext <<EOF
9707 #line 9708 "configure"
9708 #include "confdefs.h"
9710 #define HAVE_IFACE_IFCONF 1
9711 #define AUTOCONF_TEST 1
9712 #include "confdefs.h"
9713 #include "${srcdir-.}/lib/interfaces.c"
9715 if { (eval echo configure
:9716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9717 samba_cv_HAVE_IFACE_IFCONF
=yes
9719 echo "configure: failed program was:" >&5
9720 cat conftest.
$ac_ext >&5
9722 samba_cv_HAVE_IFACE_IFCONF
=no
9729 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
9730 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
9731 iface
=yes;cat >> confdefs.h
<<\EOF
9732 #define HAVE_IFACE_IFCONF 1
9738 if test $iface = no
; then
9739 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
9740 echo "configure:9741: checking for iface ifreq" >&5
9741 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
9742 echo $ac_n "(cached) $ac_c" 1>&6
9745 if test "$cross_compiling" = yes; then
9746 samba_cv_HAVE_IFACE_IFREQ
=cross
9748 cat > conftest.
$ac_ext <<EOF
9749 #line 9750 "configure"
9750 #include "confdefs.h"
9752 #define HAVE_IFACE_IFREQ 1
9753 #define AUTOCONF_TEST 1
9754 #include "confdefs.h"
9755 #include "${srcdir-.}/lib/interfaces.c"
9757 if { (eval echo configure
:9758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9759 samba_cv_HAVE_IFACE_IFREQ
=yes
9761 echo "configure: failed program was:" >&5
9762 cat conftest.
$ac_ext >&5
9764 samba_cv_HAVE_IFACE_IFREQ
=no
9771 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
9772 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
9773 iface
=yes;cat >> confdefs.h
<<\EOF
9774 #define HAVE_IFACE_IFREQ 1
9781 ################################################
9782 # look for a method of setting the effective uid
9784 if test $seteuid = no
; then
9785 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
9786 echo "configure:9787: checking for setresuid" >&5
9787 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
9788 echo $ac_n "(cached) $ac_c" 1>&6
9791 if test "$cross_compiling" = yes; then
9792 samba_cv_USE_SETRESUID
=cross
9794 cat > conftest.
$ac_ext <<EOF
9795 #line 9796 "configure"
9796 #include "confdefs.h"
9798 #define AUTOCONF_TEST 1
9799 #define USE_SETRESUID 1
9800 #include "confdefs.h"
9801 #include "${srcdir-.}/lib/util_sec.c"
9803 if { (eval echo configure
:9804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9805 samba_cv_USE_SETRESUID
=yes
9807 echo "configure: failed program was:" >&5
9808 cat conftest.
$ac_ext >&5
9810 samba_cv_USE_SETRESUID
=no
9817 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
9818 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
9819 seteuid
=yes;cat >> confdefs.h
<<\EOF
9820 #define USE_SETRESUID 1
9827 if test $seteuid = no
; then
9828 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
9829 echo "configure:9830: checking for setreuid" >&5
9830 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
9831 echo $ac_n "(cached) $ac_c" 1>&6
9834 if test "$cross_compiling" = yes; then
9835 samba_cv_USE_SETREUID
=cross
9837 cat > conftest.
$ac_ext <<EOF
9838 #line 9839 "configure"
9839 #include "confdefs.h"
9841 #define AUTOCONF_TEST 1
9842 #define USE_SETREUID 1
9843 #include "confdefs.h"
9844 #include "${srcdir-.}/lib/util_sec.c"
9846 if { (eval echo configure
:9847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9848 samba_cv_USE_SETREUID
=yes
9850 echo "configure: failed program was:" >&5
9851 cat conftest.
$ac_ext >&5
9853 samba_cv_USE_SETREUID
=no
9860 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
9861 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
9862 seteuid
=yes;cat >> confdefs.h
<<\EOF
9863 #define USE_SETREUID 1
9869 if test $seteuid = no
; then
9870 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
9871 echo "configure:9872: checking for seteuid" >&5
9872 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
9873 echo $ac_n "(cached) $ac_c" 1>&6
9876 if test "$cross_compiling" = yes; then
9877 samba_cv_USE_SETEUID
=cross
9879 cat > conftest.
$ac_ext <<EOF
9880 #line 9881 "configure"
9881 #include "confdefs.h"
9883 #define AUTOCONF_TEST 1
9884 #define USE_SETEUID 1
9885 #include "confdefs.h"
9886 #include "${srcdir-.}/lib/util_sec.c"
9888 if { (eval echo configure
:9889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9890 samba_cv_USE_SETEUID
=yes
9892 echo "configure: failed program was:" >&5
9893 cat conftest.
$ac_ext >&5
9895 samba_cv_USE_SETEUID
=no
9902 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
9903 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
9904 seteuid
=yes;cat >> confdefs.h
<<\EOF
9905 #define USE_SETEUID 1
9911 if test $seteuid = no
; then
9912 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
9913 echo "configure:9914: checking for setuidx" >&5
9914 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
9915 echo $ac_n "(cached) $ac_c" 1>&6
9918 if test "$cross_compiling" = yes; then
9919 samba_cv_USE_SETUIDX
=cross
9921 cat > conftest.
$ac_ext <<EOF
9922 #line 9923 "configure"
9923 #include "confdefs.h"
9925 #define AUTOCONF_TEST 1
9926 #define USE_SETUIDX 1
9927 #include "confdefs.h"
9928 #include "${srcdir-.}/lib/util_sec.c"
9930 if { (eval echo configure
:9931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9932 samba_cv_USE_SETUIDX
=yes
9934 echo "configure: failed program was:" >&5
9935 cat conftest.
$ac_ext >&5
9937 samba_cv_USE_SETUIDX
=no
9944 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
9945 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
9946 seteuid
=yes;cat >> confdefs.h
<<\EOF
9947 #define USE_SETUIDX 1
9954 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
9955 echo "configure:9956: checking for shared mmap" >&5
9956 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
9957 echo $ac_n "(cached) $ac_c" 1>&6
9960 if test "$cross_compiling" = yes; then
9961 samba_cv_HAVE_SHARED_MMAP
=cross
9963 cat > conftest.
$ac_ext <<EOF
9964 #line 9965 "configure"
9965 #include "confdefs.h"
9966 #include "${srcdir-.}/tests/shared_mmap.c"
9968 if { (eval echo configure
:9969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9970 samba_cv_HAVE_SHARED_MMAP
=yes
9972 echo "configure: failed program was:" >&5
9973 cat conftest.
$ac_ext >&5
9975 samba_cv_HAVE_SHARED_MMAP
=no
9982 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
9983 if test x
"$samba_cv_HAVE_SHARED_MMAP" = x
"yes"; then
9984 cat >> confdefs.h
<<\EOF
9985 #define HAVE_SHARED_MMAP 1
9988 cat >> confdefs.h
<<\EOF
9994 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
9995 echo "configure:9996: checking for ftruncate needs root" >&5
9996 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
9997 echo $ac_n "(cached) $ac_c" 1>&6
10000 if test "$cross_compiling" = yes; then
10001 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
10003 cat > conftest.
$ac_ext <<EOF
10004 #line 10005 "configure"
10005 #include "confdefs.h"
10006 #include "${srcdir-.}/tests/ftruncroot.c"
10008 if { (eval echo configure
:10009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10010 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
10012 echo "configure: failed program was:" >&5
10013 cat conftest.
$ac_ext >&5
10015 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
10022 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10023 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
10024 cat >> confdefs.h
<<\EOF
10025 #define FTRUNCATE_NEEDS_ROOT 1
10030 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10031 echo "configure:10032: checking for fcntl locking" >&5
10032 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10033 echo $ac_n "(cached) $ac_c" 1>&6
10036 if test "$cross_compiling" = yes; then
10037 samba_cv_HAVE_FCNTL_LOCK
=cross
10039 cat > conftest.
$ac_ext <<EOF
10040 #line 10041 "configure"
10041 #include "confdefs.h"
10042 #include "${srcdir-.}/tests/fcntl_lock.c"
10044 if { (eval echo configure
:10045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10046 samba_cv_HAVE_FCNTL_LOCK
=yes
10048 echo "configure: failed program was:" >&5
10049 cat conftest.
$ac_ext >&5
10051 samba_cv_HAVE_FCNTL_LOCK
=no
10058 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10059 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
10060 cat >> confdefs.h
<<\EOF
10061 #define HAVE_FCNTL_LOCK 1
10066 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10067 echo "configure:10068: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10068 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10069 echo $ac_n "(cached) $ac_c" 1>&6
10072 if test "$cross_compiling" = yes; then
10073 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
10075 cat > conftest.
$ac_ext <<EOF
10076 #line 10077 "configure"
10077 #include "confdefs.h"
10078 #include "${srcdir-.}/tests/fcntl_lock64.c"
10080 if { (eval echo configure
:10081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10082 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
10084 echo "configure: failed program was:" >&5
10085 cat conftest.
$ac_ext >&5
10087 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
10094 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10095 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
10096 cat >> confdefs.h
<<\EOF
10097 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10104 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10105 echo "configure:10106: checking for 64 bit fcntl locking" >&5
10106 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10107 echo $ac_n "(cached) $ac_c" 1>&6
10110 if test "$cross_compiling" = yes; then
10111 samba_cv_HAVE_STRUCT_FLOCK64
=cross
10113 cat > conftest.
$ac_ext <<EOF
10114 #line 10115 "configure"
10115 #include "confdefs.h"
10117 #if defined(HAVE_UNISTD_H)
10118 #include <unistd.h>
10121 #include <stdlib.h>
10123 #ifdef HAVE_FCNTL_H
10127 #ifdef HAVE_SYS_FCNTL_H
10128 #include <sys/fcntl.h>
10130 main() { struct flock64 fl64;
10131 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10138 if { (eval echo configure
:10139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10140 samba_cv_HAVE_STRUCT_FLOCK64
=yes
10142 echo "configure: failed program was:" >&5
10143 cat conftest.
$ac_ext >&5
10145 samba_cv_HAVE_STRUCT_FLOCK64
=no
10152 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10154 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
10155 cat >> confdefs.h
<<\EOF
10156 #define HAVE_STRUCT_FLOCK64 1
10162 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
10163 echo "configure:10164: checking for sysv ipc" >&5
10164 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
10165 echo $ac_n "(cached) $ac_c" 1>&6
10168 if test "$cross_compiling" = yes; then
10169 samba_cv_HAVE_SYSV_IPC
=cross
10171 cat > conftest.
$ac_ext <<EOF
10172 #line 10173 "configure"
10173 #include "confdefs.h"
10174 #include "${srcdir-.}/tests/sysv_ipc.c"
10176 if { (eval echo configure
:10177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10178 samba_cv_HAVE_SYSV_IPC
=yes
10180 echo "configure: failed program was:" >&5
10181 cat conftest.
$ac_ext >&5
10183 samba_cv_HAVE_SYSV_IPC
=no
10190 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
10191 if test x
"$samba_cv_HAVE_SYSV_IPC" = x
"yes"; then
10192 cat >> confdefs.h
<<\EOF
10193 #define HAVE_SYSV_IPC 1
10198 echo $ac_n "checking for IRIX sysv ipc semun problem using gcc""... $ac_c" 1>&6
10199 echo "configure:10200: checking for IRIX sysv ipc semun problem using gcc" >&5
10200 if eval "test \"`echo '$''{'samba_cv_NEED_SGI_SEMUN_HACK'+set}'`\" = set"; then
10201 echo $ac_n "(cached) $ac_c" 1>&6
10204 if test "$cross_compiling" = yes; then
10205 samba_cv_NEED_SGI_SEMUN_HACK
=cross
10207 cat > conftest.
$ac_ext <<EOF
10208 #line 10209 "configure"
10209 #include "confdefs.h"
10210 #include "${srcdir-.}/tests/sgi_sysv_hack.c"
10212 if { (eval echo configure
:10213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10214 samba_cv_NEED_SGI_SEMUN_HACK
=yes
10216 echo "configure: failed program was:" >&5
10217 cat conftest.
$ac_ext >&5
10219 samba_cv_NEED_SGI_SEMUN_HACK
=no
10226 echo "$ac_t""$samba_cv_NEED_SGI_SEMUN_HACK" 1>&6
10227 if test x
"$samba_cv_NEED_SGI_SEMUN_HACK" = x
"yes"; then
10228 cat >> confdefs.h
<<\EOF
10229 #define NEED_SGI_SEMUN_HACK 1
10234 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10235 echo "configure:10236: checking for a crypt that needs truncated salt" >&5
10236 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
10237 echo $ac_n "(cached) $ac_c" 1>&6
10240 if test "$cross_compiling" = yes; then
10241 samba_cv_HAVE_TRUNCATED_SALT
=cross
10243 cat > conftest.
$ac_ext <<EOF
10244 #line 10245 "configure"
10245 #include "confdefs.h"
10246 #include "${srcdir-.}/tests/crypttest.c"
10248 if { (eval echo configure
:10249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10250 samba_cv_HAVE_TRUNCATED_SALT
=no
10252 echo "configure: failed program was:" >&5
10253 cat conftest.
$ac_ext >&5
10255 samba_cv_HAVE_TRUNCATED_SALT
=yes
10262 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10263 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
10264 cat >> confdefs.h
<<\EOF
10265 #define HAVE_TRUNCATED_SALT 1
10270 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10271 echo "configure:10272: checking for broken nisplus include files" >&5
10272 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10273 echo $ac_n "(cached) $ac_c" 1>&6
10276 cat > conftest.
$ac_ext <<EOF
10277 #line 10278 "configure"
10278 #include "confdefs.h"
10279 #include <sys/acl.h>
10280 #if defined(HAVE_RPCSVC_NIS_H)
10281 #include <rpcsvc/nis.h>
10287 if { (eval echo configure
:10288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10289 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
10291 echo "configure: failed program was:" >&5
10292 cat conftest.
$ac_ext >&5
10294 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
10299 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10300 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
10301 cat >> confdefs.h
<<\EOF
10302 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10308 #################################################
10309 # check for smbwrapper support
10310 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10311 echo "configure:10312: checking whether to use smbwrapper" >&5
10312 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10313 if test "${with_smbwrapper+set}" = set; then
10314 withval
="$with_smbwrapper"
10317 echo "$ac_t""yes" 1>&6
10318 cat >> confdefs.h
<<\EOF
10319 #define WITH_SMBWRAPPER 1
10322 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10324 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
10327 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
10330 # Conditions under which smbwrapper should not be built.
10332 if test x
$PICFLAG = x
; then
10333 echo No support
for PIC code
- disabling smbwrapper and smbsh
10336 elif test x
$ac_cv_func_syscall = xno
; then
10337 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10343 echo "$ac_t""no" 1>&6
10347 echo "$ac_t""no" 1>&6
10352 #################################################
10353 # check for the AFS filesystem
10354 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10355 echo "configure:10356: checking whether to use AFS" >&5
10356 # Check whether --with-afs or --without-afs was given.
10357 if test "${with_afs+set}" = set; then
10358 withval
="$with_afs"
10361 echo "$ac_t""yes" 1>&6
10362 cat >> confdefs.h
<<\EOF
10368 echo "$ac_t""no" 1>&6
10372 echo "$ac_t""no" 1>&6
10378 #################################################
10379 # check for the DFS auth system
10380 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
10381 echo "configure:10382: checking whether to use DFS auth" >&5
10382 # Check whether --with-dfs or --without-dfs was given.
10383 if test "${with_dfs+set}" = set; then
10384 withval
="$with_dfs"
10387 echo "$ac_t""yes" 1>&6
10388 cat >> confdefs.h
<<\EOF
10394 echo "$ac_t""no" 1>&6
10398 echo "$ac_t""no" 1>&6
10403 #################################################
10404 # check for Kerberos IV auth system
10405 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10406 echo "configure:10407: checking whether to use Kerberos IV" >&5
10407 # Check whether --with-krb4 or --without-krb4 was given.
10408 if test "${with_krb4+set}" = set; then
10409 withval
="$with_krb4"
10410 echo "$ac_t""yes" 1>&6
10411 cat >> confdefs.h
<<\EOF
10412 #define KRB4_AUTH 1
10415 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10416 echo "configure:10417: checking for dn_expand in -lresolv" >&5
10417 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10419 echo $ac_n "(cached) $ac_c" 1>&6
10421 ac_save_LIBS
="$LIBS"
10422 LIBS
="-lresolv $LIBS"
10423 cat > conftest.
$ac_ext <<EOF
10424 #line 10425 "configure"
10425 #include "confdefs.h"
10426 /* Override any gcc2 internal prototype to avoid an error. */
10427 /* We use char because int might match the return type of a gcc2
10428 builtin and then its argument prototype would still apply. */
10435 if { (eval echo configure
:10436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10437 eval "ac_cv_lib_$ac_lib_var=yes"
10439 echo "configure: failed program was:" >&5
10440 cat conftest.
$ac_ext >&5
10442 eval "ac_cv_lib_$ac_lib_var=no"
10445 LIBS
="$ac_save_LIBS"
10448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10449 echo "$ac_t""yes" 1>&6
10450 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10451 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10452 cat >> confdefs.h
<<EOF
10453 #define $ac_tr_lib 1
10456 LIBS
="-lresolv $LIBS"
10459 echo "$ac_t""no" 1>&6
10462 LIBS
="$LIBS -lkrb -ldes"
10463 CFLAGS
="$CFLAGS -I$withval/include"
10464 LDFLAGS
="$LDFLAGS -L$withval/lib"
10465 ac_safe
=`echo "kerberos/krb.h" | sed 'y%./+-%__p_%'`
10466 echo $ac_n "checking for kerberos/krb.h""... $ac_c" 1>&6
10467 echo "configure:10468: checking for kerberos/krb.h" >&5
10468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10469 echo $ac_n "(cached) $ac_c" 1>&6
10471 cat > conftest.
$ac_ext <<EOF
10472 #line 10473 "configure"
10473 #include "confdefs.h"
10474 #include <kerberos/krb.h>
10476 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10477 { (eval echo configure
:10478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10478 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10479 if test -z "$ac_err"; then
10481 eval "ac_cv_header_$ac_safe=yes"
10484 echo "configure: failed program was:" >&5
10485 cat conftest.
$ac_ext >&5
10487 eval "ac_cv_header_$ac_safe=no"
10491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10492 echo "$ac_t""yes" 1>&6
10493 echo $ac_n "checking whether both krb.h and kerberos/krb.h can be included""... $ac_c" 1>&6
10494 echo "configure:10495: checking whether both krb.h and kerberos/krb.h can be included" >&5
10495 if eval "test \"`echo '$''{'samba_cv_no_kerberos_inconsistency'+set}'`\" = set"; then
10496 echo $ac_n "(cached) $ac_c" 1>&6
10499 cat > conftest.
$ac_ext <<EOF
10500 #line 10501 "configure"
10501 #include "confdefs.h"
10502 #include<kerberos/krb.h>
10508 if { (eval echo configure
:10509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10510 samba_cv_no_kerberos_inconsistency
=yes
10512 echo "configure: failed program was:" >&5
10513 cat conftest.
$ac_ext >&5
10515 samba_cv_no_kerberos_inconsistency
=no
10521 echo "$ac_t""$samba_cv_no_kerberos_inconsistency" 1>&6
10522 if test x
"$samba_cv_no_kerberos_inconsistency" = x
"no"; then
10523 echo $ac_n "checking whether a Kerberos define work around is needed""... $ac_c" 1>&6
10524 echo "configure:10525: checking whether a Kerberos define work around is needed" >&5
10525 if eval "test \"`echo '$''{'samba_cv_kerberos_define_workaround'+set}'`\" = set"; then
10526 echo $ac_n "(cached) $ac_c" 1>&6
10529 cat > conftest.
$ac_ext <<EOF
10530 #line 10531 "configure"
10531 #include "confdefs.h"
10532 #define _KERBEROS_KRB_H
10533 #include<kerberos/krb.h>
10539 if { (eval echo configure
:10540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10541 samba_cv_kerberos_define_workaround
=yes
10543 echo "configure: failed program was:" >&5
10544 cat conftest.
$ac_ext >&5
10546 samba_cv_kerberos_define_workaround
=no
10552 echo "$ac_t""$samba_cv_kerberos_define_workaround" 1>&6
10553 if test x
"$samba_cv_kerberos_define_workaround" = x
"yes"; then
10554 cat >> confdefs.h
<<\EOF
10555 #define USE_KRB4_DEFINE_WORK_AROUND 1
10561 echo "$ac_t""no" 1>&6
10565 echo "$ac_t""no" 1>&6
10570 #################################################
10571 # check for the AFS tickets from srvtabs
10572 echo $ac_n "checking whether to use AFS tickets from srvtabs""... $ac_c" 1>&6
10573 echo "configure:10574: checking whether to use AFS tickets from srvtabs" >&5
10574 # Check whether --with-srvtab or --without-srvtab was given.
10575 if test "${with_srvtab+set}" = set; then
10576 withval
="$with_srvtab"
10579 echo "$ac_t""yes" 1>&6
10580 cat >> confdefs.h
<<\EOF
10581 #define USE_RENEWABLE_AFS_TICKET ""
10584 LIBS
="$LIBS -lkafs"
10587 echo "$ac_t""no" 1>&6
10590 echo "$ac_t""yes using instance $withval" 1>&6
10591 cat >> confdefs.h
<<EOF
10592 #define USE_RENEWABLE_AFS_TICKET $withval
10595 LIBS
="$LIBS -lkafs"
10599 echo "$ac_t""no" 1>&6
10604 #################################################
10605 # check for Kerberos 5 auth system
10606 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10607 echo "configure:10608: checking whether to use Kerberos 5" >&5
10608 # Check whether --with-krb5 or --without-krb5 was given.
10609 if test "${with_krb5+set}" = set; then
10610 withval
="$with_krb5"
10611 echo "$ac_t""yes" 1>&6
10612 cat >> confdefs.h
<<\EOF
10613 #define KRB5_AUTH 1
10616 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
10617 CFLAGS
="$CFLAGS -I$withval/include"
10618 LDFLAGS
="$LDFLAGS -L$withval/lib"
10620 echo "$ac_t""no" 1>&6
10625 #################################################
10626 # check for automount support
10627 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
10628 echo "configure:10629: checking whether to use AUTOMOUNT" >&5
10629 # Check whether --with-automount or --without-automount was given.
10630 if test "${with_automount+set}" = set; then
10631 withval
="$with_automount"
10634 echo "$ac_t""yes" 1>&6
10635 cat >> confdefs.h
<<\EOF
10636 #define WITH_AUTOMOUNT 1
10641 echo "$ac_t""no" 1>&6
10645 echo "$ac_t""no" 1>&6
10650 #################################################
10651 # check for smbmount support
10652 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
10653 echo "configure:10654: checking whether to use SMBMOUNT" >&5
10654 # Check whether --with-smbmount or --without-smbmount was given.
10655 if test "${with_smbmount+set}" = set; then
10656 withval
="$with_smbmount"
10659 echo "$ac_t""yes" 1>&6
10660 cat >> confdefs.h
<<\EOF
10661 #define WITH_SMBMOUNT 1
10664 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
10667 echo "$ac_t""no" 1>&6
10672 echo "$ac_t""no" 1>&6
10679 #################################################
10680 # check for a PAM password database
10681 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
10682 echo "configure:10683: checking whether to use PAM password database" >&5
10683 # Check whether --with-pam or --without-pam was given.
10684 if test "${with_pam+set}" = set; then
10685 withval
="$with_pam"
10688 echo "$ac_t""yes" 1>&6
10689 cat >> confdefs.h
<<\EOF
10694 pam_modules
="$pam_modules nsswitch/$pam_winbind"
10697 echo "$ac_t""no" 1>&6
10701 echo "$ac_t""no" 1>&6
10708 #################################################
10709 # check for a LDAP password database
10710 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10711 echo "configure:10712: checking whether to use LDAP password database" >&5
10712 # Check whether --with-ldap or --without-ldap was given.
10713 if test "${with_ldap+set}" = set; then
10714 withval
="$with_ldap"
10717 echo "$ac_t""yes" 1>&6
10718 cat >> confdefs.h
<<\EOF
10719 #define WITH_LDAP 1
10722 LIBS
="$LIBS -lldap -llber"
10725 echo "$ac_t""no" 1>&6
10729 echo "$ac_t""no" 1>&6
10734 #################################################
10735 # check for a LDAP password database
10736 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10737 echo "configure:10738: checking whether to use LDAP password database" >&5
10738 # Check whether --with-nt5ldap or --without-nt5ldap was given.
10739 if test "${with_nt5ldap+set}" = set; then
10740 withval
="$with_nt5ldap"
10743 echo "$ac_t""yes" 1>&6
10744 cat >> confdefs.h
<<\EOF
10745 #define WITH_NT5LDAP 1
10748 LIBS
="$LIBS -lldap -llber"
10751 echo "$ac_t""no" 1>&6
10755 echo "$ac_t""no" 1>&6
10760 #################################################
10761 # check for a LDAP password database
10762 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10763 echo "configure:10764: checking whether to use LDAP password database" >&5
10764 # Check whether --with-nt5ldap or --without-nt5ldap was given.
10765 if test "${with_nt5ldap+set}" = set; then
10766 withval
="$with_nt5ldap"
10769 echo "$ac_t""yes" 1>&6
10770 cat >> confdefs.h
<<\EOF
10771 #define WITH_NT5LDAP 1
10774 LIBS
="$LIBS -lldap -llber"
10777 echo "$ac_t""no" 1>&6
10781 echo "$ac_t""no" 1>&6
10786 #################################################
10787 # check for a NISPLUS password database
10788 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
10789 echo "configure:10790: checking whether to use NISPLUS password database" >&5
10790 # Check whether --with-nisplus or --without-nisplus was given.
10791 if test "${with_nisplus+set}" = set; then
10792 withval
="$with_nisplus"
10795 echo "$ac_t""yes" 1>&6
10796 cat >> confdefs.h
<<\EOF
10797 #define WITH_NISPLUS 1
10802 echo "$ac_t""no" 1>&6
10806 echo "$ac_t""no" 1>&6
10811 #################################################
10812 # decide for the default sam-password-database
10813 echo $ac_n "checking which sam password database to use""... $ac_c" 1>&6
10814 echo "configure:10815: checking which sam password database to use" >&5
10815 # Check whether --with-sam_pwdb or --without-sam_pwdb was given.
10816 if test "${with_sam_pwdb+set}" = set; then
10817 withval
="$with_sam_pwdb"
10820 SAM_PWDB_LIB
='$(SAMRPASSLIB) $(SMBPWLIB)'
10821 sampwlibname
="passdb"
10824 SAM_PWDB_LIB
='$(SAMRTDBLIB)'
10828 SAM_PWDB_LIB
='$(SAMRNT5LDAPLIB)'
10829 sampwlibname
="nt5ldap (must also specify --with-nt5ldap)"
10832 SAM_PWDB_LIB
='$(SAMRPASSLIB)'
10833 sampwlibname
="passdb (unknown specified!)"
10838 SAM_PWDB_LIB
='$(SAMRPASSLIB) $(SMBPWLIB)'
10839 sampwlibname
="passdb (default)"
10843 echo "$ac_t""$sampwlibname" 1>&6
10847 #################################################
10848 # check to use a tdb surs database
10849 echo $ac_n "checking whether to use SURS tdb database""... $ac_c" 1>&6
10850 echo "configure:10851: checking whether to use SURS tdb database" >&5
10851 # Check whether --with-surstdb or --without-surstdb was given.
10852 if test "${with_surstdb+set}" = set; then
10853 withval
="$with_surstdb"
10856 echo "$ac_t""yes" 1>&6
10857 cat >> confdefs.h
<<\EOF
10858 #define WITH_TDBSURS 1
10863 echo "$ac_t""no" 1>&6
10867 echo "$ac_t""no" 1>&6
10873 #################################################
10874 # check for a NISPLUS_HOME support
10875 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
10876 echo "configure:10877: checking whether to use NISPLUS_HOME" >&5
10877 # Check whether --with-nisplus-home or --without-nisplus-home was given.
10878 if test "${with_nisplus_home+set}" = set; then
10879 withval
="$with_nisplus_home"
10882 echo "$ac_t""yes" 1>&6
10883 cat >> confdefs.h
<<\EOF
10884 #define WITH_NISPLUS_HOME 1
10889 echo "$ac_t""no" 1>&6
10893 echo "$ac_t""no" 1>&6
10898 #################################################
10899 # check for the secure socket layer
10900 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
10901 echo "configure:10902: checking whether to use SSL" >&5
10902 # Check whether --with-ssl or --without-ssl was given.
10903 if test "${with_ssl+set}" = set; then
10904 withval
="$with_ssl"
10907 echo "$ac_t""yes" 1>&6
10908 cat >> confdefs.h
<<\EOF
10912 withval
="/usr/local/ssl" # default
10914 if test "${with_sslinc+set}" = set; then
10916 withval
="$with_sslinc"
10919 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
10920 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
10921 LIBS
="-lssl -lcrypto $LIBS"
10922 LDFLAGS
="=L/usr/local/ssl/lib $LDFLAGS"
10925 CFLAGS
="-I${withval} $CFLAGS"
10926 LIBS
="-lssl -lcrypto $LIBS"
10927 # LDFLAGS="-L${withval}/lib $LDFLAGS"
10933 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
10934 LIBS
="-lssl -lcrypto $LIBS"
10935 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
10939 if test ! -d ${withval}; then
10940 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
10944 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
10948 echo "$ac_t""no" 1>&6
10952 echo "$ac_t""no" 1>&6
10957 #################################################
10958 # check for syslog logging
10959 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
10960 echo "configure:10961: checking whether to use syslog logging" >&5
10961 # Check whether --with-syslog or --without-syslog was given.
10962 if test "${with_syslog+set}" = set; then
10963 withval
="$with_syslog"
10966 echo "$ac_t""yes" 1>&6
10967 cat >> confdefs.h
<<\EOF
10968 #define WITH_SYSLOG 1
10973 echo "$ac_t""no" 1>&6
10977 echo "$ac_t""no" 1>&6
10982 #################################################
10983 # check for a shared memory profiling support
10984 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
10985 echo "configure:10986: checking whether to use profiling" >&5
10986 # Check whether --with-profile or --without-profile was given.
10987 if test "${with_profile+set}" = set; then
10988 withval
="$with_profile"
10991 echo "$ac_t""yes" 1>&6
10992 cat >> confdefs.h
<<\EOF
10993 #define WITH_PROFILE 1
10998 echo "$ac_t""no" 1>&6
11002 echo "$ac_t""no" 1>&6
11008 #################################################
11009 # check for experimental netatalk resource fork support
11010 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
11011 echo "configure:11012: checking whether to support netatalk" >&5
11012 # Check whether --with-netatalk or --without-netatalk was given.
11013 if test "${with_netatalk+set}" = set; then
11014 withval
="$with_netatalk"
11017 echo "$ac_t""yes" 1>&6
11018 cat >> confdefs.h
<<\EOF
11019 #define WITH_NETATALK 1
11024 echo "$ac_t""no" 1>&6
11028 echo "$ac_t""no" 1>&6
11033 #################################################
11034 # check for experimental disk-quotas support
11035 QUOTAOBJS
=noquotas.o
11037 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11038 echo "configure:11039: checking whether to support disk-quotas" >&5
11039 # Check whether --with-quotas or --without-quotas was given.
11040 if test "${with_quotas+set}" = set; then
11041 withval
="$with_quotas"
11044 echo "$ac_t""yes" 1>&6
11048 echo "$ac_t""no" 1>&6
11052 echo "$ac_t""no" 1>&6
11058 #################################################
11059 # check for experimental utmp accounting
11061 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11062 echo "configure:11063: checking whether to support utmp accounting" >&5
11063 # Check whether --with-utmp or --without-utmp was given.
11064 if test "${with_utmp+set}" = set; then
11065 withval
="$with_utmp"
11068 echo "$ac_t""yes" 1>&6
11069 cat >> confdefs.h
<<\EOF
11070 #define WITH_UTMP 1
11075 echo "$ac_t""no" 1>&6
11079 echo "$ac_t""no" 1>&6
11084 #################################################
11085 # check for MS Dfs support
11087 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11088 echo "configure:11089: checking whether to support Microsoft Dfs" >&5
11089 # Check whether --with-msdfs or --without-msdfs was given.
11090 if test "${with_msdfs+set}" = set; then
11091 withval
="$with_msdfs"
11094 echo "$ac_t""yes" 1>&6
11095 cat >> confdefs.h
<<\EOF
11096 #define WITH_MSDFS 1
11101 echo "$ac_t""no" 1>&6
11105 echo "$ac_t""no" 1>&6
11110 #################################################
11111 # set samba configuration directory location
11113 if test "$sysconfdir" = '${prefix}/etc'
11115 # default sysconfdir, decide on prefix
11118 # if the prefix already contains the word samba,
11119 # we don't need to use a subdir for smb.conf
11120 sambaconfdir
='${sysconfdir}'
11123 # otherwise, we use a separate dir
11124 sambaconfdir
='${sysconfdir}/samba'
11128 # sysconfdir given, use that directly
11129 sambaconfdir
='${sysconfdir}'
11131 # Check whether --with-sambaconfdir or --without-sambaconfdir was given.
11132 if test "${with_sambaconfdir+set}" = set; then
11133 withval
="$with_sambaconfdir"
11136 # Just --with-sambaconfdir, use the new default
11137 # (which has already been "calculated"
11140 # --without-sambaconfdir, use old default
11141 sambaconfdir
='${LIBDIR}'
11144 sambaconfdir
="$withval"
11149 # No --with(out)-sambaconfdir, use old version for some time.
11150 if test "$sysconfdir" = '${prefix}/etc'
11152 # sysconfdir not given
11153 sambaconfdir
='${LIBDIR}'
11160 #################################################
11161 # set private directory location
11162 # Check whether --with-privatedir or --without-privatedir was given.
11163 if test "${with_privatedir+set}" = set; then
11164 withval
="$with_privatedir"
11168 # Just in case anybody calls it without argument
11170 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
11171 privatedir
='${prefix}/private'
11174 privatedir
="$withval"
11179 privatedir
='${prefix}/private'
11185 #################################################
11186 # set lock directory location
11187 # Check whether --with-lockdir or --without-lockdir was given.
11188 if test "${with_lockdir+set}" = set; then
11189 withval
="$with_lockdir"
11193 # Just in case anybody calls it without argument
11195 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
11196 lockdir
='${VARDIR}/locks'
11204 lockdir
='${VARDIR}/locks'
11210 #################################################
11211 # set SWAT directory location
11212 # Check whether --with-swatdir or --without-swatdir was given.
11213 if test "${with_swatdir+set}" = set; then
11214 withval
="$with_swatdir"
11218 # Just in case anybody does it
11220 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
11221 swatdir
='${prefix}/swat'
11229 swatdir
='${prefix}/swat'
11235 #################################################
11236 # these tests are taken from the GNU fileutils package
11237 echo "checking how to get filesystem space usage" 1>&6
11238 echo "configure:11239: checking how to get filesystem space usage" >&5
11241 # Test for statvfs64.
11242 if test $space = no
; then
11244 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11245 echo "configure:11246: checking statvfs64 function (SVR4)" >&5
11246 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11247 echo $ac_n "(cached) $ac_c" 1>&6
11249 if test "$cross_compiling" = yes; then
11250 fu_cv_sys_stat_statvfs64
=cross
11252 cat > conftest.
$ac_ext <<EOF
11253 #line 11254 "configure"
11254 #include "confdefs.h"
11256 #if defined(HAVE_UNISTD_H)
11257 #include <unistd.h>
11259 #include <sys/types.h>
11260 #include <sys/statvfs.h>
11263 struct statvfs64 fsd;
11264 exit (statvfs64 (".", &fsd));
11267 if { (eval echo configure
:11268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11269 fu_cv_sys_stat_statvfs64
=yes
11271 echo "configure: failed program was:" >&5
11272 cat conftest.
$ac_ext >&5
11274 fu_cv_sys_stat_statvfs64
=no
11281 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11282 if test $fu_cv_sys_stat_statvfs64 = yes; then
11284 cat >> confdefs.h
<<\EOF
11285 #define STAT_STATVFS64 1
11291 # Perform only the link test since it seems there are no variants of the
11292 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11293 # because that got a false positive on SCO OSR5. Adding the declaration
11294 # of a `struct statvfs' causes this test to fail (as it should) on such
11295 # systems. That system is reported to work fine with STAT_STATFS4 which
11296 # is what it gets when this test fails.
11297 if test $space = no
; then
11299 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11300 echo "configure:11301: checking statvfs function (SVR4)" >&5
11301 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11302 echo $ac_n "(cached) $ac_c" 1>&6
11304 cat > conftest.
$ac_ext <<EOF
11305 #line 11306 "configure"
11306 #include "confdefs.h"
11307 #include <sys/types.h>
11308 #include <sys/statvfs.h>
11310 struct statvfs fsd; statvfs (0, &fsd);
11313 if { (eval echo configure
:11314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11315 fu_cv_sys_stat_statvfs
=yes
11317 echo "configure: failed program was:" >&5
11318 cat conftest.
$ac_ext >&5
11320 fu_cv_sys_stat_statvfs
=no
11325 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11326 if test $fu_cv_sys_stat_statvfs = yes; then
11328 cat >> confdefs.h
<<\EOF
11329 #define STAT_STATVFS 1
11335 if test $space = no
; then
11336 # DEC Alpha running OSF/1
11337 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11338 echo "configure:11339: checking for 3-argument statfs function (DEC OSF/1)" >&5
11339 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11340 echo $ac_n "(cached) $ac_c" 1>&6
11342 if test "$cross_compiling" = yes; then
11343 fu_cv_sys_stat_statfs3_osf1
=no
11345 cat > conftest.
$ac_ext <<EOF
11346 #line 11347 "configure"
11347 #include "confdefs.h"
11349 #include <sys/param.h>
11350 #include <sys/types.h>
11351 #include <sys/mount.h>
11356 exit (statfs (".", &fsd, sizeof (struct statfs)));
11359 if { (eval echo configure
:11360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11361 fu_cv_sys_stat_statfs3_osf1
=yes
11363 echo "configure: failed program was:" >&5
11364 cat conftest.
$ac_ext >&5
11366 fu_cv_sys_stat_statfs3_osf1
=no
11373 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11374 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11376 cat >> confdefs.h
<<\EOF
11377 #define STAT_STATFS3_OSF1 1
11383 if test $space = no
; then
11385 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11386 echo "configure:11387: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11387 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11388 echo $ac_n "(cached) $ac_c" 1>&6
11390 if test "$cross_compiling" = yes; then
11391 fu_cv_sys_stat_statfs2_bsize
=no
11393 cat > conftest.
$ac_ext <<EOF
11394 #line 11395 "configure"
11395 #include "confdefs.h"
11397 #ifdef HAVE_SYS_PARAM_H
11398 #include <sys/param.h>
11400 #ifdef HAVE_SYS_MOUNT_H
11401 #include <sys/mount.h>
11403 #ifdef HAVE_SYS_VFS_H
11404 #include <sys/vfs.h>
11410 exit (statfs (".", &fsd));
11413 if { (eval echo configure
:11414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11415 fu_cv_sys_stat_statfs2_bsize
=yes
11417 echo "configure: failed program was:" >&5
11418 cat conftest.
$ac_ext >&5
11420 fu_cv_sys_stat_statfs2_bsize
=no
11427 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11428 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11430 cat >> confdefs.h
<<\EOF
11431 #define STAT_STATFS2_BSIZE 1
11437 if test $space = no
; then
11439 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11440 echo "configure:11441: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11441 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11442 echo $ac_n "(cached) $ac_c" 1>&6
11444 if test "$cross_compiling" = yes; then
11445 fu_cv_sys_stat_statfs4
=no
11447 cat > conftest.
$ac_ext <<EOF
11448 #line 11449 "configure"
11449 #include "confdefs.h"
11450 #include <sys/types.h>
11451 #include <sys/statfs.h>
11455 exit (statfs (".", &fsd, sizeof fsd, 0));
11458 if { (eval echo configure
:11459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11460 fu_cv_sys_stat_statfs4
=yes
11462 echo "configure: failed program was:" >&5
11463 cat conftest.
$ac_ext >&5
11465 fu_cv_sys_stat_statfs4
=no
11472 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11473 if test $fu_cv_sys_stat_statfs4 = yes; then
11475 cat >> confdefs.h
<<\EOF
11476 #define STAT_STATFS4 1
11482 if test $space = no
; then
11483 # 4.4BSD and NetBSD
11484 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11485 echo "configure:11486: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11486 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
11487 echo $ac_n "(cached) $ac_c" 1>&6
11489 if test "$cross_compiling" = yes; then
11490 fu_cv_sys_stat_statfs2_fsize
=no
11492 cat > conftest.
$ac_ext <<EOF
11493 #line 11494 "configure"
11494 #include "confdefs.h"
11495 #include <sys/types.h>
11496 #ifdef HAVE_SYS_PARAM_H
11497 #include <sys/param.h>
11499 #ifdef HAVE_SYS_MOUNT_H
11500 #include <sys/mount.h>
11506 exit (statfs (".", &fsd));
11509 if { (eval echo configure
:11510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11511 fu_cv_sys_stat_statfs2_fsize
=yes
11513 echo "configure: failed program was:" >&5
11514 cat conftest.
$ac_ext >&5
11516 fu_cv_sys_stat_statfs2_fsize
=no
11523 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
11524 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11526 cat >> confdefs.h
<<\EOF
11527 #define STAT_STATFS2_FSIZE 1
11533 if test $space = no
; then
11535 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
11536 echo "configure:11537: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11537 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
11538 echo $ac_n "(cached) $ac_c" 1>&6
11540 if test "$cross_compiling" = yes; then
11541 fu_cv_sys_stat_fs_data
=no
11543 cat > conftest.
$ac_ext <<EOF
11544 #line 11545 "configure"
11545 #include "confdefs.h"
11546 #include <sys/types.h>
11547 #ifdef HAVE_SYS_PARAM_H
11548 #include <sys/param.h>
11550 #ifdef HAVE_SYS_MOUNT_H
11551 #include <sys/mount.h>
11553 #ifdef HAVE_SYS_FS_TYPES_H
11554 #include <sys/fs_types.h>
11558 struct fs_data fsd;
11559 /* Ultrix's statfs returns 1 for success,
11560 0 for not mounted, -1 for failure. */
11561 exit (statfs (".", &fsd) != 1);
11564 if { (eval echo configure
:11565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11566 fu_cv_sys_stat_fs_data
=yes
11568 echo "configure: failed program was:" >&5
11569 cat conftest.
$ac_ext >&5
11571 fu_cv_sys_stat_fs_data
=no
11578 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
11579 if test $fu_cv_sys_stat_fs_data = yes; then
11581 cat >> confdefs.h
<<\EOF
11582 #define STAT_STATFS2_FS_DATA 1
11589 # As a gating factor for large file support, in order to
11590 # use <4GB files we must have the following minimal support
11592 # long long, and a 64 bit off_t or off64_t.
11593 # If we don't have all of these then disable large
11596 echo "checking if large file support can be enabled"
11597 cat > conftest.
$ac_ext <<EOF
11598 #line 11599 "configure"
11599 #include "confdefs.h"
11601 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
11602 #include <sys/types.h>
11611 if { (eval echo configure
:11612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11613 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
11615 echo "configure: failed program was:" >&5
11616 cat conftest.
$ac_ext >&5
11618 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
11621 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
11623 cat >> confdefs.h
<<\EOF
11624 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
11631 echo "checking configure summary"
11632 if test "$cross_compiling" = yes; then
11635 cat > conftest.
$ac_ext <<EOF
11636 #line 11637 "configure"
11637 #include "confdefs.h"
11638 #include "${srcdir-.}/tests/summary.c"
11640 if { (eval echo configure
:11641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11642 echo "configure OK";
11644 echo "configure: failed program was:" >&5
11645 cat conftest.
$ac_ext >&5
11647 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
11657 cat > confcache
<<\EOF
11658 # This file is a shell script that caches the results of configure
11659 # tests run on this system so they can be shared between configure
11660 # scripts and configure runs. It is not useful on other systems.
11661 # If it contains results you don't want to keep, you may remove or edit it.
11663 # By default, configure uses ./config.cache as the cache file,
11664 # creating it if it does not exist already. You can give configure
11665 # the --cache-file=FILE option to use a different cache file; that is
11666 # what configure does when it calls configure scripts in
11667 # subdirectories, so they share the cache.
11668 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11669 # config.status only pays attention to the cache file if you give it the
11670 # --recheck option to rerun configure.
11673 # The following way of writing the cache mishandles newlines in values,
11674 # but we know of no workaround that is simple, portable, and efficient.
11675 # So, don't put newlines in cache variables' values.
11676 # Ultrix sh set writes to stderr and can't be redirected directly,
11677 # and sets the high bit in the cache file unless we assign to the vars.
11679 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11681 # `set' does not quote correctly, so add quotes (double-quote substitution
11682 # turns \\\\ into \\, and sed turns \\ into \).
11684 -e "s/'/'\\\\''/g" \
11685 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11688 # `set' quotes correctly as required by POSIX, so do not add quotes.
11689 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11692 if cmp -s $cache_file confcache
; then
11695 if test -w $cache_file; then
11696 echo "updating cache $cache_file"
11697 cat confcache
> $cache_file
11699 echo "not updating unwritable cache $cache_file"
11704 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11706 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11707 # Let make expand exec_prefix.
11708 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11710 # Any assignment to VPATH causes Sun make to only execute
11711 # the first set of double-colon rules, so remove it if not needed.
11712 # If there is a colon in the path, we need to keep it.
11713 if test "x$srcdir" = x.
; then
11714 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
11717 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11719 DEFS
=-DHAVE_CONFIG_H
11721 # Without the "./", some shells look in PATH for config.status.
11722 : ${CONFIG_STATUS=./config.status}
11724 echo creating
$CONFIG_STATUS
11725 rm -f $CONFIG_STATUS
11726 cat > $CONFIG_STATUS <<EOF
11728 # Generated automatically by configure.
11729 # Run this file to recreate the current configuration.
11730 # This directory was configured as follows,
11731 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11733 # $0 $ac_configure_args
11735 # Compiler output produced by configure, useful for debugging
11736 # configure, is in ./config.log if it exists.
11738 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11741 case "\$ac_option" in
11742 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11743 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11744 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11745 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11746 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11748 -help | --help | --hel | --he | --h)
11749 echo "\$ac_cs_usage"; exit 0 ;;
11750 *) echo "\$ac_cs_usage"; exit 1 ;;
11754 ac_given_srcdir=$srcdir
11755 ac_given_INSTALL="$INSTALL"
11757 trap 'rm -fr `echo "include/stamp-h Makefile script/samba-init.d include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11759 cat >> $CONFIG_STATUS <<EOF
11761 # Protect against being on the right side of a sed subst in config.status.
11762 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11763 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11767 s%@CFLAGS@%$CFLAGS%g
11768 s%@CPPFLAGS@%$CPPFLAGS%g
11769 s%@CXXFLAGS@%$CXXFLAGS%g
11770 s%@FFLAGS@%$FFLAGS%g
11772 s%@LDFLAGS@%$LDFLAGS%g
11774 s%@exec_prefix@%$exec_prefix%g
11775 s%@prefix@%$prefix%g
11776 s%@program_transform_name@%$program_transform_name%g
11777 s%@bindir@%$bindir%g
11778 s%@sbindir@%$sbindir%g
11779 s%@libexecdir@%$libexecdir%g
11780 s%@datadir@%$datadir%g
11781 s%@sysconfdir@%$sysconfdir%g
11782 s%@sharedstatedir@%$sharedstatedir%g
11783 s%@localstatedir@%$localstatedir%g
11784 s%@libdir@%$libdir%g
11785 s%@includedir@%$includedir%g
11786 s%@oldincludedir@%$oldincludedir%g
11787 s%@infodir@%$infodir%g
11788 s%@mandir@%$mandir%g
11789 s%@RUNPROG@%$RUNPROG%g
11790 s%@MPROGS@%$MPROGS%g
11791 s%@LDSHFLAGS@%$LDSHFLAGS%g
11792 s%@HOST_OS@%$HOST_OS%g
11794 s%@WRAP32@%$WRAP32%g
11795 s%@PICFLAG@%$PICFLAG%g
11796 s%@SHLIBEXT@%$SHLIBEXT%g
11799 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11800 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11801 s%@INSTALL_DATA@%$INSTALL_DATA%g
11804 s%@host_alias@%$host_alias%g
11805 s%@host_cpu@%$host_cpu%g
11806 s%@host_vendor@%$host_vendor%g
11807 s%@host_os@%$host_os%g
11809 s%@build_alias@%$build_alias%g
11810 s%@build_cpu@%$build_cpu%g
11811 s%@build_vendor@%$build_vendor%g
11812 s%@build_os@%$build_os%g
11813 s%@RANLIB@%$RANLIB%g
11815 s%@LIBTOOL@%$LIBTOOL%g
11816 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
11817 s%@BROKEN_CC@%$BROKEN_CC%g
11818 s%@target@%$target%g
11819 s%@target_alias@%$target_alias%g
11820 s%@target_cpu@%$target_cpu%g
11821 s%@target_vendor@%$target_vendor%g
11822 s%@target_os@%$target_os%g
11824 s%@AUTOCONF@%$AUTOCONF%g
11825 s%@AUTOHEADER@%$AUTOHEADER%g
11826 s%@nssmodule@%$nssmodule%g
11827 s%@pam_winbind@%$pam_winbind%g
11828 s%@LIBOBJS@%$LIBOBJS%g
11830 s%@pam_modules@%$pam_modules%g
11831 s%@SAM_PWDB_LIB@%$SAM_PWDB_LIB%g
11832 s%@QUOTAOBJS@%$QUOTAOBJS%g
11833 s%@sambaconfdir@%$sambaconfdir%g
11834 s%@privatedir@%$privatedir%g
11835 s%@lockdir@%$lockdir%g
11836 s%@swatdir@%$swatdir%g
11837 s%@builddir@%$builddir%g
11842 cat >> $CONFIG_STATUS <<\EOF
11844 # Split the substitutions into bite-sized pieces for seds with
11845 # small command number limits, like on Digital OSF/1 and HP-UX.
11846 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
11847 ac_file
=1 # Number of current file.
11848 ac_beg
=1 # First line for current file.
11849 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
11852 while $ac_more_lines; do
11853 if test $ac_beg -gt 1; then
11854 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
11856 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
11858 if test ! -s conftest.s
$ac_file; then
11859 ac_more_lines
=false
11860 rm -f conftest.s
$ac_file
11862 if test -z "$ac_sed_cmds"; then
11863 ac_sed_cmds
="sed -f conftest.s$ac_file"
11865 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
11867 ac_file
=`expr $ac_file + 1`
11869 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
11872 if test -z "$ac_sed_cmds"; then
11877 cat >> $CONFIG_STATUS <<EOF
11879 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/samba-init.d"}
11881 cat >> $CONFIG_STATUS <<\EOF
11882 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
11883 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11885 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11886 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11887 *) ac_file_in
="${ac_file}.in" ;;
11890 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11892 # Remove last slash and all that follows it. Not all systems have dirname.
11893 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11894 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
11895 # The file is in a subdirectory.
11896 test ! -d "$ac_dir" && mkdir
"$ac_dir"
11897 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
11898 # A "../" for each directory in $ac_dir_suffix.
11899 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11901 ac_dir_suffix
= ac_dots
=
11904 case "$ac_given_srcdir" in
11906 if test -z "$ac_dots"; then top_srcdir
=.
11907 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11908 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
11909 *) # Relative path.
11910 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11911 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
11914 case "$ac_given_INSTALL" in
11915 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
11916 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
11919 echo creating
"$ac_file"
11921 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11923 *Makefile
*) ac_comsub
="1i\\
11924 # $configure_input" ;;
11928 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11930 s%@configure_input@%$configure_input%g
11931 s%@srcdir@%$srcdir%g
11932 s%@top_srcdir@%$top_srcdir%g
11933 s%@INSTALL@%$INSTALL%g
11934 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
11938 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11939 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11941 # ac_d sets the value in "#define NAME VALUE" lines.
11942 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11943 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
11946 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11947 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11948 ac_uB
='\([ ]\)%\1#\2define\3'
11951 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11952 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11953 ac_eB
='$%\1#\2define\3'
11957 if test "${CONFIG_HEADERS+set}" != set; then
11959 cat >> $CONFIG_STATUS <<EOF
11960 CONFIG_HEADERS="include/config.h"
11962 cat >> $CONFIG_STATUS <<\EOF
11964 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
11965 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11967 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11968 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11969 *) ac_file_in
="${ac_file}.in" ;;
11972 echo creating
$ac_file
11974 rm -f conftest.frag conftest.
in conftest.out
11975 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11976 cat $ac_file_inputs > conftest.
in
11980 # Transform confdefs.h into a sed script conftest.vals that substitutes
11981 # the proper values into config.h.in to produce config.h. And first:
11982 # Protect against being on the right side of a sed subst in config.status.
11983 # Protect against being in an unquoted here document in config.status.
11984 rm -f conftest.vals
11985 cat > conftest.hdr
<<\EOF
11988 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11992 sed -n -f conftest.hdr confdefs.h > conftest.vals
11995 # This sed command replaces #undef with comments. This is necessary, for
11996 # example, in the case of _POSIX_SOURCE, which is predefined and required
11997 # on some systems where configure will not decide to define it.
11998 cat >> conftest.vals <<\EOF
11999 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12002 # Break up conftest.vals because some shells have a limit on
12003 # the size of here documents, and old seds have small limits too.
12005 rm -f conftest.tail
12008 ac_lines=`grep -c . conftest.vals
`
12009 # grep -c gives empty output for an empty file on some AIX systems.
12010 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12011 # Write a limited-size here document to conftest.frag.
12012 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12013 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12015 sed -f conftest.frag conftest.in > conftest.out
12017 mv conftest.out conftest.in
12018 ' >> $CONFIG_STATUS
12019 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12020 rm -f conftest.vals
12021 mv conftest.tail conftest.vals
12023 rm -f conftest.vals
12025 cat >> $CONFIG_STATUS <<\EOF
12026 rm -f conftest.frag conftest.h
12027 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12028 cat conftest.in >> conftest.h
12030 if cmp -s $ac_file conftest.h 2>/dev/null; then
12031 echo "$ac_file is unchanged"
12034 # Remove last slash and all that follows it. Not all systems have dirname.
12035 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
12036 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12037 # The file is in a subdirectory.
12038 test ! -d "$ac_dir" && mkdir "$ac_dir"
12041 mv conftest.h $ac_file
12046 cat >> $CONFIG_STATUS <<EOF
12049 cat >> $CONFIG_STATUS <<\EOF
12051 case " $CONFIG_FILES " in
12052 *" script/samba-init.d "*) chmod +x script/samba-init.d
12057 chmod +x $CONFIG_STATUS
12058 rm -fr confdefs* $ac_clean_files
12059 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
12063 echo "prefix : $prefix"
12064 echo "exec_prefix : $exec_prefix"
12065 echo "bindir : $bindir"
12066 echo "sbindir : $sbindir"
12067 echo "libdir : $libdir"
12068 echo "vardir : $localstatedir"
12069 echo "sysconfdir : $sysconfdir"
12071 echo "sambaconfdir : $sambaconfdir"
12072 echo "privatedir : $privatedir"
12073 echo "lockdir : $lockdir"
12074 echo "swatdir : $swatdir"