3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --with-fhs use FHS-compliant paths [default=no]"
18 --with-privatedir=DIR Where to put smbpasswd ($privatedir)"
20 --with-lockdir=DIR Where to put lock files ($lockdir)"
22 --with-swatdir=DIR Where to put SWAT files ($swatdir)"
24 --with-configdir=DIR Where to put configuration files ($configdir)"
26 --enable-debug turn on debugging [default=no]"
28 --enable-shared[=PKGS] build shared libraries [default=yes]"
30 --enable-static[=PKGS] build static libraries [default=yes]"
32 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
34 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
36 --disable-libtool-lock avoid locking (might break parallel builds)"
38 --with-smbwrapper Include SMB wrapper support
39 --without-smbwrapper Don't include SMB wrapper support (default)"
41 --with-afs Include AFS support
42 --without-afs Don't include AFS support (default)"
44 --with-dfs Include DFS support
45 --without-dfs Don't include DFS support (default)"
47 --with-krb4=base-dir Include Kerberos IV support
48 --without-krb4 Don't include Kerberos IV support (default)"
50 --with-krb5=base-dir Include Kerberos 5 support
51 --without-krb5 Don't include Kerberos 5 support (default)"
53 --with-automount Include AUTOMOUNT support
54 --without-automount Don't include AUTOMOUNT support (default)"
56 --with-smbmount Include SMBMOUNT (Linux only) support
57 --without-smbmount Don't include SMBMOUNT support (default)"
59 --with-pam Include PAM password database support
60 --without-pam Don't include PAM password database support (default)"
62 --with-tdbpwd Include TDB password database
63 --without-tdbpwd Don't include TDB password database (default)"
65 --with-nisplus Include NISPLUS password database support
66 --without-nisplus Don't include NISPLUS password database support (default)"
68 --with-nisplus-home Include NISPLUS_HOME support
69 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
71 --with-ssl Include SSL support
72 --without-ssl Don't include SSL support (default)
73 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
75 --with-syslog Include experimental SYSLOG support
76 --without-syslog Don't include SYSLOG support (default)"
78 --with-profile Include profile support
79 --without-profile Don't include profile support (default)"
81 --with-netatalk Include experimental Netatalk support
82 --without-netatalk Don't include experimental Netatalk support (default)"
84 --with-quotas Include experimental disk-quota support
85 --without-quotas Don't include experimental disk-quota support (default)"
87 --with-utmp Include experimental utmp accounting
88 --without-utmp Don't include experimental utmp accounting (default)"
90 --with-msdfs Include MS Dfs support
91 --without-msdfs Don't include MS Dfs support (default)"
93 --with-vfs Include Samba vfs support
94 --without-vfs Don't include Samba vfs support (default)"
96 --with-spinlocks use spin locks instead of fcntl locks "
98 --with-acl-support Include ACL support
99 --without-acl-support Don't include ACL support (default)"
101 # Initialize some variables set by options.
102 # The variables have the same names as the options, with
103 # dashes changed to underlines.
105 cache_file
=.
/config.cache
114 program_transform_name
=s
,x
,x
,
122 bindir
='${exec_prefix}/bin'
123 sbindir
='${exec_prefix}/sbin'
124 libexecdir
='${exec_prefix}/libexec'
125 datadir
='${prefix}/share'
126 sysconfdir
='${prefix}/etc'
127 sharedstatedir
='${prefix}/com'
128 localstatedir
='${prefix}/var'
129 libdir
='${exec_prefix}/lib'
130 includedir
='${prefix}/include'
131 oldincludedir
='/usr/include'
132 infodir
='${prefix}/info'
133 mandir
='${prefix}/man'
135 # Initialize some other variables.
138 SHELL
=${CONFIG_SHELL-/bin/sh}
139 # Maximum number of lines to put in a shell here document.
146 # If the previous option needs an argument, assign it.
147 if test -n "$ac_prev"; then
148 eval "$ac_prev=\$ac_option"
154 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
158 # Accept the important Cygnus configure options, so we can diagnose typos.
162 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
164 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
165 bindir
="$ac_optarg" ;;
167 -build |
--build |
--buil |
--bui |
--bu)
169 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
170 build
="$ac_optarg" ;;
172 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
173 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
174 ac_prev
=cache_file
;;
175 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
176 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
177 cache_file
="$ac_optarg" ;;
179 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
181 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
183 datadir
="$ac_optarg" ;;
185 -disable-* |
--disable-*)
186 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
187 # Reject names that are not valid shell variable names.
188 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
189 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
191 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
192 eval "enable_${ac_feature}=no" ;;
194 -enable-* |
--enable-*)
195 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
196 # Reject names that are not valid shell variable names.
197 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
198 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
200 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
205 eval "enable_${ac_feature}='$ac_optarg'" ;;
207 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
208 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
209 |
--exec |
--exe |
--ex)
210 ac_prev
=exec_prefix
;;
211 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
212 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
213 |
--exec=* |
--exe=* |
--ex=*)
214 exec_prefix
="$ac_optarg" ;;
216 -gas |
--gas |
--ga |
--g)
217 # Obsolete; use --with-gas.
220 -help |
--help |
--hel |
--he)
221 # Omit some internal or obsolete options to make the list less imposing.
222 # This message is too long to be a string in the A/UX 3.1 sh.
224 Usage: configure [options] [host]
225 Options: [defaults in brackets after descriptions]
227 --cache-file=FILE cache test results in FILE
228 --help print this message
229 --no-create do not create output files
230 --quiet, --silent do not print \`checking...' messages
231 --version print the version of autoconf that created configure
232 Directory and file names:
233 --prefix=PREFIX install architecture-independent files in PREFIX
235 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
237 --bindir=DIR user executables in DIR [EPREFIX/bin]
238 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
239 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
240 --datadir=DIR read-only architecture-independent data in DIR
242 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
243 --sharedstatedir=DIR modifiable architecture-independent data in DIR
245 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
246 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
247 --includedir=DIR C header files in DIR [PREFIX/include]
248 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
249 --infodir=DIR info documentation in DIR [PREFIX/info]
250 --mandir=DIR man documentation in DIR [PREFIX/man]
251 --srcdir=DIR find the sources in DIR [configure dir or ..]
252 --program-prefix=PREFIX prepend PREFIX to installed program names
253 --program-suffix=SUFFIX append SUFFIX to installed program names
254 --program-transform-name=PROGRAM
255 run sed PROGRAM on installed program names
259 --build=BUILD configure for building on BUILD [BUILD=HOST]
260 --host=HOST configure for HOST [guessed]
261 --target=TARGET configure for TARGET [TARGET=HOST]
262 Features and packages:
263 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
264 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
265 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
266 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
267 --x-includes=DIR X include files are in DIR
268 --x-libraries=DIR X library files are in DIR
270 if test -n "$ac_help"; then
271 echo "--enable and --with options recognized:$ac_help"
275 -host |
--host |
--hos |
--ho)
277 -host=* |
--host=* |
--hos=* |
--ho=*)
280 -includedir |
--includedir |
--includedi |
--included |
--include \
281 |
--includ |
--inclu |
--incl |
--inc)
282 ac_prev
=includedir
;;
283 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
284 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
285 includedir
="$ac_optarg" ;;
287 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
289 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
290 infodir
="$ac_optarg" ;;
292 -libdir |
--libdir |
--libdi |
--libd)
294 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
295 libdir
="$ac_optarg" ;;
297 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
298 |
--libexe |
--libex |
--libe)
299 ac_prev
=libexecdir
;;
300 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
301 |
--libexe=* |
--libex=* |
--libe=*)
302 libexecdir
="$ac_optarg" ;;
304 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
305 |
--localstate |
--localstat |
--localsta |
--localst \
306 |
--locals |
--local |
--loca |
--loc |
--lo)
307 ac_prev
=localstatedir
;;
308 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
309 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
310 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
311 localstatedir
="$ac_optarg" ;;
313 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
315 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
316 mandir
="$ac_optarg" ;;
319 # Obsolete; use --without-fp.
322 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
326 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
327 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
330 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
331 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
332 |
--oldin |
--oldi |
--old |
--ol |
--o)
333 ac_prev
=oldincludedir
;;
334 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
335 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
336 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
337 oldincludedir
="$ac_optarg" ;;
339 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
341 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
342 prefix
="$ac_optarg" ;;
344 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
345 |
--program-pre |
--program-pr |
--program-p)
346 ac_prev
=program_prefix
;;
347 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
348 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
349 program_prefix
="$ac_optarg" ;;
351 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
352 |
--program-suf |
--program-su |
--program-s)
353 ac_prev
=program_suffix
;;
354 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
355 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
356 program_suffix
="$ac_optarg" ;;
358 -program-transform-name |
--program-transform-name \
359 |
--program-transform-nam |
--program-transform-na \
360 |
--program-transform-n |
--program-transform- \
361 |
--program-transform |
--program-transfor \
362 |
--program-transfo |
--program-transf \
363 |
--program-trans |
--program-tran \
364 |
--progr-tra |
--program-tr |
--program-t)
365 ac_prev
=program_transform_name
;;
366 -program-transform-name=* |
--program-transform-name=* \
367 |
--program-transform-nam=* |
--program-transform-na=* \
368 |
--program-transform-n=* |
--program-transform-=* \
369 |
--program-transform=* |
--program-transfor=* \
370 |
--program-transfo=* |
--program-transf=* \
371 |
--program-trans=* |
--program-tran=* \
372 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
373 program_transform_name
="$ac_optarg" ;;
375 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
376 |
-silent |
--silent |
--silen |
--sile |
--sil)
379 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
381 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
383 sbindir
="$ac_optarg" ;;
385 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
386 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
387 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
389 ac_prev
=sharedstatedir
;;
390 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
391 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
392 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
394 sharedstatedir
="$ac_optarg" ;;
396 -site |
--site |
--sit)
398 -site=* |
--site=* |
--sit=*)
401 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
403 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
404 srcdir
="$ac_optarg" ;;
406 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
407 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
408 ac_prev
=sysconfdir
;;
409 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
410 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
411 sysconfdir
="$ac_optarg" ;;
413 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
415 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
416 target
="$ac_optarg" ;;
418 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
421 -version |
--version |
--versio |
--versi |
--vers)
422 echo "configure generated by autoconf version 2.13"
426 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package
=`echo $ac_package| sed 's/-/_/g'`
436 eval "with_${ac_package}='$ac_optarg'" ;;
438 -without-* |
--without-*)
439 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
440 # Reject names that are not valid shell variable names.
441 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
442 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
444 ac_package
=`echo $ac_package| sed 's/-/_/g'`
445 eval "with_${ac_package}=no" ;;
448 # Obsolete; use --with-x.
451 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
452 |
--x-incl |
--x-inc |
--x-in |
--x-i)
453 ac_prev
=x_includes
;;
454 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
455 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
456 x_includes
="$ac_optarg" ;;
458 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
459 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
460 ac_prev
=x_libraries
;;
461 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
462 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
463 x_libraries
="$ac_optarg" ;;
465 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
469 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
470 echo "configure: warning: $ac_option: invalid host type" 1>&2
472 if test "x$nonopt" != xNONE
; then
473 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
481 if test -n "$ac_prev"; then
482 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
485 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
487 # File descriptor usage:
490 # 2 errors and warnings
491 # 3 some systems may open it to /dev/tty
492 # 4 used on the Kubota Titan
493 # 6 checking for... messages and results
494 # 5 compiler messages saved in config.log
495 if test "$silent" = yes; then
503 This file contains any messages produced by compilers while
504 running configure, to aid debugging if configure makes a mistake.
507 # Strip out --no-create and --no-recursion so they do not pile up.
508 # Also quote any args containing shell metacharacters.
513 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
514 |
--no-cr |
--no-c) ;;
515 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
516 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
517 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
518 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
519 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
524 # Only set these to C if already set. These must not be set unconditionally
525 # because not all systems understand e.g. LANG=C (notably SCO).
526 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
527 # Non-C LC_CTYPE values break the ctype check.
528 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
529 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
530 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
531 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
533 # confdefs.h avoids OS command line length limits that DEFS can exceed.
534 rm -rf conftest
* confdefs.h
535 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
538 # A filename unique to this package, relative to the directory that
539 # configure is in, which we can look for to find out if srcdir is correct.
540 ac_unique_file
=include
/includes.h
542 # Find the source files, if location was not specified.
543 if test -z "$srcdir"; then
544 ac_srcdir_defaulted
=yes
545 # Try the directory containing this script, then its parent.
547 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
548 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
550 if test ! -r $srcdir/$ac_unique_file; then
554 ac_srcdir_defaulted
=no
556 if test ! -r $srcdir/$ac_unique_file; then
557 if test "$ac_srcdir_defaulted" = yes; then
558 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
560 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
563 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
565 # Prefer explicitly selected file to automatically selected ones.
566 if test -z "$CONFIG_SITE"; then
567 if test "x$prefix" != xNONE
; then
568 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
570 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
573 for ac_site_file
in $CONFIG_SITE; do
574 if test -r "$ac_site_file"; then
575 echo "loading site script $ac_site_file"
580 if test -r "$cache_file"; then
581 echo "loading cache $cache_file"
584 echo "creating cache $cache_file"
589 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
590 ac_cpp
='$CPP $CPPFLAGS'
591 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
592 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
593 cross_compiling
=$ac_cv_prog_cc_cross
597 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
598 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
599 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
606 ac_n
= ac_c
='\c' ac_t
=
612 #################################################
613 # Directory handling stuff to support both the
614 # legacy SAMBA directories and FHS compliant
618 # Check whether --with-fhs or --without-fhs was given.
619 if test "${with_fhs+set}" = set; then
621 codepagedir
="\$(DATADIR)/samba/codepages"
622 configdir
="${sysconfdir}/samba"
623 lockdir
="\${VARDIR}/lock/samba"
624 logfilebase
="\${VARDIR}/log/samba"
625 privatedir
="\${CONFIGDIR}/private"
626 swatdir
="\${DATADIR}/samba/swat"
628 codepagedir
="\$(LIBDIR)/codepages"
629 configdir
="\$(LIBDIR)"
630 lockdir
="\$(VARDIR)/locks"
631 logfilebase
="\$(VARDIR)"
632 privatedir
="\${prefix}/private"
633 swatdir
="\${prefix}/swat"
637 #################################################
638 # set private directory location
639 # Check whether --with-privatedir or --without-privatedir was given.
640 if test "${with_privatedir+set}" = set; then
641 withval
="$with_privatedir"
645 # Just in case anybody calls it without argument
647 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
650 privatedir
="$withval"
656 #################################################
657 # set lock directory location
658 # Check whether --with-lockdir or --without-lockdir was given.
659 if test "${with_lockdir+set}" = set; then
660 withval
="$with_lockdir"
664 # Just in case anybody calls it without argument
666 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
675 #################################################
676 # set SWAT directory location
677 # Check whether --with-swatdir or --without-swatdir was given.
678 if test "${with_swatdir+set}" = set; then
679 withval
="$with_swatdir"
683 # Just in case anybody does it
685 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
694 #################################################
695 # set configuration directory location
696 # Check whether --with-configdir or --without-configdir was given.
697 if test "${with_configdir+set}" = set; then
698 withval
="$with_configdir"
702 # Just in case anybody does it
704 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
733 # compile with optimization and without debugging by default
736 # Check whether --enable-debug or --disable-debug was given.
737 if test "${enable_debug+set}" = set; then
738 enableval
="$enable_debug"
739 if eval "test x$enable_debug = xyes"; then
745 CFLAGS
="${CFLAGS:=} $OPTIM"
747 # Extract the first word of "gcc", so it can be a program name with args.
748 set dummy gcc
; ac_word
=$2
749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
750 echo "configure:751: checking for $ac_word" >&5
751 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 if test -n "$CC"; then
755 ac_cv_prog_CC
="$CC" # Let the user override the test.
757 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
759 for ac_dir
in $ac_dummy; do
760 test -z "$ac_dir" && ac_dir
=.
761 if test -f $ac_dir/$ac_word; then
770 if test -n "$CC"; then
771 echo "$ac_t""$CC" 1>&6
773 echo "$ac_t""no" 1>&6
776 if test -z "$CC"; then
777 # Extract the first word of "cc", so it can be a program name with args.
778 set dummy cc
; ac_word
=$2
779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
780 echo "configure:781: checking for $ac_word" >&5
781 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
784 if test -n "$CC"; then
785 ac_cv_prog_CC
="$CC" # Let the user override the test.
787 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
790 for ac_dir
in $ac_dummy; do
791 test -z "$ac_dir" && ac_dir
=.
792 if test -f $ac_dir/$ac_word; then
793 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
802 if test $ac_prog_rejected = yes; then
803 # We found a bogon in the path, so make sure we never use it.
804 set dummy
$ac_cv_prog_CC
806 if test $# -gt 0; then
807 # We chose a different compiler from the bogus one.
808 # However, it has the same basename, so the bogon will be chosen
809 # first if we set CC to just the basename; use the full file name.
811 set dummy
"$ac_dir/$ac_word" "$@"
819 if test -n "$CC"; then
820 echo "$ac_t""$CC" 1>&6
822 echo "$ac_t""no" 1>&6
825 if test -z "$CC"; then
828 # Extract the first word of "cl", so it can be a program name with args.
829 set dummy cl
; ac_word
=$2
830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
831 echo "configure:832: checking for $ac_word" >&5
832 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
833 echo $ac_n "(cached) $ac_c" 1>&6
835 if test -n "$CC"; then
836 ac_cv_prog_CC
="$CC" # Let the user override the test.
838 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
840 for ac_dir
in $ac_dummy; do
841 test -z "$ac_dir" && ac_dir
=.
842 if test -f $ac_dir/$ac_word; then
851 if test -n "$CC"; then
852 echo "$ac_t""$CC" 1>&6
854 echo "$ac_t""no" 1>&6
859 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
862 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
863 echo "configure:864: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
866 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
867 ac_cpp
='$CPP $CPPFLAGS'
868 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
869 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
870 cross_compiling
=$ac_cv_prog_cc_cross
872 cat > conftest.
$ac_ext << EOF
874 #line 875 "configure"
875 #include "confdefs.h"
879 if { (eval echo configure
:880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
880 ac_cv_prog_cc_works
=yes
881 # If we can't run a trivial program, we are probably using a cross compiler.
882 if (.
/conftest
; exit) 2>/dev
/null
; then
883 ac_cv_prog_cc_cross
=no
885 ac_cv_prog_cc_cross
=yes
888 echo "configure: failed program was:" >&5
889 cat conftest.
$ac_ext >&5
890 ac_cv_prog_cc_works
=no
894 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
895 ac_cpp
='$CPP $CPPFLAGS'
896 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
897 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
898 cross_compiling
=$ac_cv_prog_cc_cross
900 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
901 if test $ac_cv_prog_cc_works = no
; then
902 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
904 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
905 echo "configure:906: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
906 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
907 cross_compiling
=$ac_cv_prog_cc_cross
909 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
910 echo "configure:911: checking whether we are using GNU C" >&5
911 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
912 echo $ac_n "(cached) $ac_c" 1>&6
914 cat > conftest.c
<<EOF
919 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
926 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
928 if test $ac_cv_prog_gcc = yes; then
934 ac_test_CFLAGS
="${CFLAGS+set}"
935 ac_save_CFLAGS
="$CFLAGS"
937 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
938 echo "configure:939: checking whether ${CC-cc} accepts -g" >&5
939 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
942 echo 'void f(){}' > conftest.c
943 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
952 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
953 if test "$ac_test_CFLAGS" = set; then
954 CFLAGS
="$ac_save_CFLAGS"
955 elif test $ac_cv_prog_cc_g = yes; then
956 if test "$GCC" = yes; then
962 if test "$GCC" = yes; then
970 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
971 if test -f $ac_dir/install-sh
; then
973 ac_install_sh
="$ac_aux_dir/install-sh -c"
975 elif test -f $ac_dir/install.sh
; then
977 ac_install_sh
="$ac_aux_dir/install.sh -c"
981 if test -z "$ac_aux_dir"; then
982 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
984 ac_config_guess
=$ac_aux_dir/config.guess
985 ac_config_sub
=$ac_aux_dir/config.sub
986 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
988 # Find a good install program. We prefer a C program (faster),
989 # so one script is as good as another. But avoid the broken or
990 # incompatible versions:
991 # SysV /etc/install, /usr/sbin/install
992 # SunOS /usr/etc/install
995 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
996 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
997 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
998 # ./install, which can be erroneously created by make from ./install.sh.
999 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1000 echo "configure:1001: checking for a BSD compatible install" >&5
1001 if test -z "$INSTALL"; then
1002 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1005 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1006 for ac_dir
in $PATH; do
1007 # Account for people who put trailing slashes in PATH elements.
1009 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1011 # OSF1 and SCO ODT 3.0 have their own names for install.
1012 # Don't use installbsd from OSF since it installs stuff as root
1014 for ac_prog
in ginstall scoinst
install; do
1015 if test -f $ac_dir/$ac_prog; then
1016 if test $ac_prog = install &&
1017 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1018 # AIX install. It has an incompatible calling convention.
1021 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1032 if test "${ac_cv_path_install+set}" = set; then
1033 INSTALL
="$ac_cv_path_install"
1035 # As a last resort, use the slow shell script. We don't cache a
1036 # path for INSTALL within a source directory, because that will
1037 # break other packages using the cache if that directory is
1038 # removed, or if the path is relative.
1039 INSTALL
="$ac_install_sh"
1042 echo "$ac_t""$INSTALL" 1>&6
1044 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1045 # It thinks the first close brace ends the variable substitution.
1046 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1048 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1050 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1052 for ac_prog
in gawk mawk nawk
awk
1054 # Extract the first word of "$ac_prog", so it can be a program name with args.
1055 set dummy
$ac_prog; ac_word
=$2
1056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1057 echo "configure:1058: checking for $ac_word" >&5
1058 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1059 echo $ac_n "(cached) $ac_c" 1>&6
1061 if test -n "$AWK"; then
1062 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1064 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1066 for ac_dir
in $ac_dummy; do
1067 test -z "$ac_dir" && ac_dir
=.
1068 if test -f $ac_dir/$ac_word; then
1069 ac_cv_prog_AWK
="$ac_prog"
1076 AWK
="$ac_cv_prog_AWK"
1077 if test -n "$AWK"; then
1078 echo "$ac_t""$AWK" 1>&6
1080 echo "$ac_t""no" 1>&6
1083 test -n "$AWK" && break
1086 # Check whether --enable-shared or --disable-shared was given.
1087 if test "${enable_shared+set}" = set; then
1088 enableval
="$enable_shared"
1089 p
=${PACKAGE-default}
1090 case "$enableval" in
1091 yes) enable_shared
=yes ;;
1092 no
) enable_shared
=no
;;
1095 # Look at the argument we got. We use all the common list separators.
1096 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1097 for pkg
in $enableval; do
1098 if test "X$pkg" = "X$p"; then
1109 # Check whether --enable-static or --disable-static was given.
1110 if test "${enable_static+set}" = set; then
1111 enableval
="$enable_static"
1112 p
=${PACKAGE-default}
1113 case "$enableval" in
1114 yes) enable_static
=yes ;;
1115 no
) enable_static
=no
;;
1118 # Look at the argument we got. We use all the common list separators.
1119 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1120 for pkg
in $enableval; do
1121 if test "X$pkg" = "X$p"; then
1132 # Check whether --enable-fast-install or --disable-fast-install was given.
1133 if test "${enable_fast_install+set}" = set; then
1134 enableval
="$enable_fast_install"
1135 p
=${PACKAGE-default}
1136 case "$enableval" in
1137 yes) enable_fast_install
=yes ;;
1138 no
) enable_fast_install
=no
;;
1140 enable_fast_install
=no
1141 # Look at the argument we got. We use all the common list separators.
1142 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1143 for pkg
in $enableval; do
1144 if test "X$pkg" = "X$p"; then
1145 enable_fast_install
=yes
1152 enable_fast_install
=yes
1156 # Make sure we can run config.sub.
1157 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1158 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1161 echo $ac_n "checking host system type""... $ac_c" 1>&6
1162 echo "configure:1163: checking host system type" >&5
1165 case "$host_alias" in
1169 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1170 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1172 *) host_alias
=$nonopt ;;
1176 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1177 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1178 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1179 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1180 echo "$ac_t""$host" 1>&6
1182 echo $ac_n "checking build system type""... $ac_c" 1>&6
1183 echo "configure:1184: checking build system type" >&5
1186 case "$build_alias" in
1189 NONE
) build_alias
=$host_alias ;;
1190 *) build_alias
=$nonopt ;;
1194 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1195 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1196 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1197 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1198 echo "$ac_t""$build" 1>&6
1200 # Extract the first word of "ranlib", so it can be a program name with args.
1201 set dummy ranlib
; ac_word
=$2
1202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1203 echo "configure:1204: checking for $ac_word" >&5
1204 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1207 if test -n "$RANLIB"; then
1208 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1210 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1212 for ac_dir
in $ac_dummy; do
1213 test -z "$ac_dir" && ac_dir
=.
1214 if test -f $ac_dir/$ac_word; then
1215 ac_cv_prog_RANLIB
="ranlib"
1220 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1223 RANLIB
="$ac_cv_prog_RANLIB"
1224 if test -n "$RANLIB"; then
1225 echo "$ac_t""$RANLIB" 1>&6
1227 echo "$ac_t""no" 1>&6
1230 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1231 if test "${with_gnu_ld+set}" = set; then
1232 withval
="$with_gnu_ld"
1233 test "$withval" = no || with_gnu_ld
=yes
1239 if test "$ac_cv_prog_gcc" = yes; then
1240 # Check if gcc -print-prog-name=ld gives a path.
1241 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1242 echo "configure:1243: checking for ld used by GCC" >&5
1243 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1245 # Accept absolute paths.
1246 [\\/]* |
[A-Za-z
]:[\\/]*)
1247 re_direlt
='/[^/][^/]*/\.\./'
1248 # Canonicalize the path of ld
1249 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1250 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1251 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1253 test -z "$LD" && LD
="$ac_prog"
1256 # If it fails, then pretend we aren't using GCC.
1260 # If it is relative, then search for the first ld in PATH.
1264 elif test "$with_gnu_ld" = yes; then
1265 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1266 echo "configure:1267: checking for GNU ld" >&5
1268 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1269 echo "configure:1270: checking for non-GNU ld" >&5
1271 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1272 echo $ac_n "(cached) $ac_c" 1>&6
1274 if test -z "$LD"; then
1275 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1276 for ac_dir
in $PATH; do
1277 test -z "$ac_dir" && ac_dir
=.
1278 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1279 ac_cv_path_LD
="$ac_dir/$ac_prog"
1280 # Check to see if the program is GNU ld. I'd rather use --version,
1281 # but apparently some GNU ld's only accept -v.
1282 # Break only if it was the GNU/non-GNU ld that we prefer.
1283 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1284 test "$with_gnu_ld" != no
&& break
1286 test "$with_gnu_ld" != yes && break
1292 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1297 if test -n "$LD"; then
1298 echo "$ac_t""$LD" 1>&6
1300 echo "$ac_t""no" 1>&6
1302 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1303 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1304 echo "configure:1305: checking if the linker ($LD) is GNU ld" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1309 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1310 ac_cv_prog_gnu_ld
=yes
1312 ac_cv_prog_gnu_ld
=no
1316 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1319 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1320 echo "configure:1321: checking for BSD-compatible nm" >&5
1321 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1322 echo $ac_n "(cached) $ac_c" 1>&6
1324 if test -n "$NM"; then
1325 # Let the user override the test.
1328 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1329 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1330 test -z "$ac_dir" && ac_dir
=.
1331 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1332 # Check to see if the nm accepts a BSD-compat flag.
1333 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1334 # nm: unknown option "B" ignored
1335 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1336 ac_cv_path_NM
="$ac_dir/nm -B"
1338 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1339 ac_cv_path_NM
="$ac_dir/nm -p"
1342 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1343 continue # so that we can try to find one that supports BSD flags
1348 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1353 echo "$ac_t""$NM" 1>&6
1355 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1356 echo "configure:1357: checking whether ln -s works" >&5
1357 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1361 if ln -s X conftestdata
2>/dev
/null
1364 ac_cv_prog_LN_S
="ln -s"
1369 LN_S
="$ac_cv_prog_LN_S"
1370 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1371 echo "$ac_t""yes" 1>&6
1373 echo "$ac_t""no" 1>&6
1378 NONE
) lt_target
="$host" ;;
1379 *) lt_target
="$target" ;;
1382 # Check for any special flags to pass to ltconfig.
1383 libtool_flags
="--cache-file=$cache_file"
1384 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1385 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1386 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1387 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1388 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1391 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1392 if test "${enable_libtool_lock+set}" = set; then
1393 enableval
="$enable_libtool_lock"
1397 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1398 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1400 # Some flags need to be propagated to the compiler or linker for good
1402 case "$lt_target" in
1404 # Find out which ABI we are using.
1405 echo '#line 1406 "configure"' > conftest.
$ac_ext
1406 if { (eval echo configure
:1407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1407 case "`/usr/bin/file conftest.o`" in
1423 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1424 SAVE_CFLAGS
="$CFLAGS"
1425 CFLAGS
="$CFLAGS -belf"
1426 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1427 echo "configure:1428: checking whether the C compiler needs -belf" >&5
1428 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1431 cat > conftest.
$ac_ext <<EOF
1432 #line 1433 "configure"
1433 #include "confdefs.h"
1439 if { (eval echo configure
:1440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1441 lt_cv_cc_needs_belf
=yes
1443 echo "configure: failed program was:" >&5
1444 cat conftest.
$ac_ext >&5
1446 lt_cv_cc_needs_belf
=no
1451 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1452 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1453 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1454 CFLAGS
="$SAVE_CFLAGS"
1462 # Save cache, so that ltconfig can load it
1463 cat > confcache
<<\EOF
1464 # This file is a shell script that caches the results of configure
1465 # tests run on this system so they can be shared between configure
1466 # scripts and configure runs. It is not useful on other systems.
1467 # If it contains results you don't want to keep, you may remove or edit it.
1469 # By default, configure uses ./config.cache as the cache file,
1470 # creating it if it does not exist already. You can give configure
1471 # the --cache-file=FILE option to use a different cache file; that is
1472 # what configure does when it calls configure scripts in
1473 # subdirectories, so they share the cache.
1474 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1475 # config.status only pays attention to the cache file if you give it the
1476 # --recheck option to rerun configure.
1479 # The following way of writing the cache mishandles newlines in values,
1480 # but we know of no workaround that is simple, portable, and efficient.
1481 # So, don't put newlines in cache variables' values.
1482 # Ultrix sh set writes to stderr and can't be redirected directly,
1483 # and sets the high bit in the cache file unless we assign to the vars.
1485 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1487 # `set' does not quote correctly, so add quotes (double-quote substitution
1488 # turns \\\\ into \\, and sed turns \\ into \).
1490 -e "s/'/'\\\\''/g" \
1491 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1494 # `set' quotes correctly as required by POSIX, so do not add quotes.
1495 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1498 if cmp -s $cache_file confcache
; then
1501 if test -w $cache_file; then
1502 echo "updating cache $cache_file"
1503 cat confcache
> $cache_file
1505 echo "not updating unwritable cache $cache_file"
1511 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1512 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1513 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1514 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1515 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1516 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1517 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1518 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1520 # Reload cache, that may have been modified by ltconfig
1521 if test -r "$cache_file"; then
1522 echo "loading cache $cache_file"
1525 echo "creating cache $cache_file"
1530 # This can be used to rebuild libtool when needed
1531 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1533 # Always use our own libtool.
1534 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1536 # Redirect the config.log output again, so that the ltconfig log is not
1537 # clobbered by the next message.
1538 exec 5>>.
/config.log
1542 if test "x$CC" != xcc
; then
1543 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1544 echo "configure:1545: checking whether $CC and cc understand -c and -o together" >&5
1546 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1547 echo "configure:1548: checking whether cc understands -c and -o together" >&5
1549 set dummy
$CC; ac_cc
="`echo $2 |
1550 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1551 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1554 echo 'foo(){}' > conftest.c
1555 # Make sure it works both with $CC and with simple cc.
1556 # We do the test twice because some compilers refuse to overwrite an
1557 # existing .o file with -o, though they will create one.
1558 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1559 if { (eval echo configure
:1560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1560 test -f conftest.o
&& { (eval echo configure
:1561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1562 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1563 if test "x$CC" != xcc
; then
1564 # Test first that cc exists at all.
1565 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1566 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1567 if { (eval echo configure
:1568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1568 test -f conftest.o
&& { (eval echo configure
:1569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1573 # cc exists but doesn't like -o.
1574 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1579 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1584 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1585 echo "$ac_t""yes" 1>&6
1587 echo "$ac_t""no" 1>&6
1588 cat >> confdefs.h
<<\EOF
1589 #define NO_MINUS_C_MINUS_O 1
1594 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1601 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1602 echo "configure:1603: checking that the C compiler understands volatile" >&5
1603 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1604 echo $ac_n "(cached) $ac_c" 1>&6
1607 cat > conftest.
$ac_ext <<EOF
1608 #line 1609 "configure"
1609 #include "confdefs.h"
1610 #include <sys/types.h>
1615 if { (eval echo configure
:1616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1617 samba_cv_volatile
=yes
1619 echo "configure: failed program was:" >&5
1620 cat conftest.
$ac_ext >&5
1622 samba_cv_volatile
=no
1627 echo "$ac_t""$samba_cv_volatile" 1>&6
1628 if test x
"$samba_cv_volatile" = x
"yes"; then
1629 cat >> confdefs.h
<<\EOF
1630 #define HAVE_VOLATILE 1
1638 # Do some error checking and defaulting for the host and target type.
1640 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1643 # 1. You are not allowed to specify --host, --target, and nonopt at the
1645 # 2. Host defaults to nonopt.
1646 # 3. If nonopt is not specified, then host defaults to the current host,
1647 # as determined by config.guess.
1648 # 4. Target and build default to nonopt.
1649 # 5. If nonopt is not specified, then target and build default to host.
1651 # The aliases save the names the user supplied, while $host etc.
1652 # will get canonicalized.
1653 case $host---$target---$nonopt in
1654 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1655 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1659 # Make sure we can run config.sub.
1660 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1661 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1664 echo $ac_n "checking host system type""... $ac_c" 1>&6
1665 echo "configure:1666: checking host system type" >&5
1668 case "$host_alias" in
1672 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1673 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1675 *) host_alias
=$nonopt ;;
1679 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1680 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1683 echo "$ac_t""$host" 1>&6
1685 echo $ac_n "checking target system type""... $ac_c" 1>&6
1686 echo "configure:1687: checking target system type" >&5
1688 target_alias
=$target
1689 case "$target_alias" in
1692 NONE
) target_alias
=$host_alias ;;
1693 *) target_alias
=$nonopt ;;
1697 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1698 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1699 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1700 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1701 echo "$ac_t""$target" 1>&6
1703 echo $ac_n "checking build system type""... $ac_c" 1>&6
1704 echo "configure:1705: checking build system type" >&5
1707 case "$build_alias" in
1710 NONE
) build_alias
=$host_alias ;;
1711 *) build_alias
=$nonopt ;;
1715 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1716 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1717 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1718 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1719 echo "$ac_t""$build" 1>&6
1721 test "$host_alias" != "$target_alias" &&
1722 test "$program_prefix$program_suffix$program_transform_name" = \
1724 program_prefix
=${target_alias}-
1728 *irix6
*) cat >> confdefs.h
<<\EOF
1729 #include <standards.h>
1737 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1738 echo "configure:1739: checking config.cache system type" >&5
1739 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1740 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1741 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1742 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1743 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1744 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1745 echo "$ac_t""different" 1>&6
1746 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1748 echo "$ac_t""same" 1>&6
1750 ac_cv_host_system_type
="$host"
1751 ac_cv_build_system_type
="$build"
1752 ac_cv_target_system_type
="$target"
1756 # Config CPPFLAG settings for strange OS's that must be set
1757 # before other tests.
1760 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1762 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1763 echo "configure:1764: checking whether ${CC-cc} accepts -Ae" >&5
1764 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1767 echo 'void f(){}' > conftest.c
1768 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1769 ac_cv_prog_cc_Ae
=yes
1777 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1778 if test $ac_cv_prog_cc_Ae = yes; then
1779 CPPFLAGS
="$CPPFLAGS -Ae"
1782 # Defines needed for HPUX support.
1783 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1784 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1788 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1789 cat >> confdefs.h
<<\EOF
1790 #define USE_BOTH_CRYPT_CALLS 1
1795 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1796 cat >> confdefs.h
<<\EOF
1797 #define USE_BOTH_CRYPT_CALLS 1
1804 # AIX4.x doesn't even admit to having large
1805 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1808 echo "$ac_t""enabling large file support" 1>&6
1809 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1812 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1813 # to the existance of large files..
1814 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1815 # recommendations on large file support, however it makes the
1816 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1817 # recommendation makes the compile fail on gcc2.7. JRA.
1822 echo "$ac_t""enabling large file support" 1>&6
1823 if test "$ac_cv_prog_gcc" = yes; then
1824 ${CC-cc} -v >conftest.c
2>&1
1825 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1827 case "$ac_cv_gcc_compiler_version_number" in
1828 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1829 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1832 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1836 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1842 # Tests needed for SINIX large file support.
1845 if test $host = mips-sni-sysv4
; then
1846 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1847 echo "configure:1848: checking for LFS support" >&5
1848 old_CPPFLAGS
="$CPPFLAGS"
1849 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1850 if test "$cross_compiling" = yes; then
1851 SINIX_LFS_SUPPORT
=cross
1853 cat > conftest.
$ac_ext <<EOF
1854 #line 1855 "configure"
1855 #include "confdefs.h"
1859 #if _LFS64_LARGEFILE == 1
1866 if { (eval echo configure
:1867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1868 SINIX_LFS_SUPPORT
=yes
1870 echo "configure: failed program was:" >&5
1871 cat conftest.
$ac_ext >&5
1873 SINIX_LFS_SUPPORT
=no
1878 CPPFLAGS
="$old_CPPFLAGS"
1879 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1880 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1881 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1882 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1883 LIBS
="`getconf LFS64_LIBS` $LIBS"
1885 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1889 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1892 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1893 echo "configure:1894: checking for LFS support" >&5
1894 old_CPPFLAGS
="$CPPFLAGS"
1895 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1896 if test "$cross_compiling" = yes; then
1897 LINUX_LFS_SUPPORT
=cross
1899 cat > conftest.
$ac_ext <<EOF
1900 #line 1901 "configure"
1901 #include "confdefs.h"
1904 #include <sys/utsname.h>
1906 #if _LFS64_LARGEFILE == 1
1911 /* Ensure this is glibc 2.2 or higher */
1912 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1913 int libc_major = __GLIBC__;
1914 int libc_minor = __GLIBC_MINOR__;
1922 /* Ensure this is kernel 2.4 or higher */
1925 release = uts.release;
1926 major = atoi(strsep(&release, "."));
1927 minor = atoi(strsep(&release, "."));
1929 if (major > 2 || (major == 2 && minor > 3))
1938 if { (eval echo configure
:1939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1940 LINUX_LFS_SUPPORT
=yes
1942 echo "configure: failed program was:" >&5
1943 cat conftest.
$ac_ext >&5
1945 LINUX_LFS_SUPPORT
=no
1950 CPPFLAGS
="$old_CPPFLAGS"
1951 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1952 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1954 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1958 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1959 echo "configure:1960: checking for LFS support" >&5
1960 old_CPPFLAGS
="$CPPFLAGS"
1961 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1962 if test "$cross_compiling" = yes; then
1963 GLIBC_LFS_SUPPORT
=cross
1965 cat > conftest.
$ac_ext <<EOF
1966 #line 1967 "configure"
1967 #include "confdefs.h"
1971 #if _LFS64_LARGEFILE == 1
1978 if { (eval echo configure
:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1980 GLIBC_LFS_SUPPORT
=yes
1982 echo "configure: failed program was:" >&5
1983 cat conftest.
$ac_ext >&5
1985 GLIBC_LFS_SUPPORT
=no
1990 CPPFLAGS
="$old_CPPFLAGS"
1991 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1992 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1994 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1999 echo $ac_n "checking for inline""... $ac_c" 1>&6
2000 echo "configure:2001: checking for inline" >&5
2001 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2005 for ac_kw
in inline __inline__ __inline
; do
2006 cat > conftest.
$ac_ext <<EOF
2007 #line 2008 "configure"
2008 #include "confdefs.h"
2014 if { (eval echo configure
:2015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2016 ac_cv_c_inline
=$ac_kw; break
2018 echo "configure: failed program was:" >&5
2019 cat conftest.
$ac_ext >&5
2026 echo "$ac_t""$ac_cv_c_inline" 1>&6
2027 case "$ac_cv_c_inline" in
2029 no
) cat >> confdefs.h
<<\EOF
2033 *) cat >> confdefs.h
<<EOF
2034 #define inline $ac_cv_c_inline
2039 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2040 echo "configure:2041: checking how to run the C preprocessor" >&5
2041 # On Suns, sometimes $CPP names a directory.
2042 if test -n "$CPP" && test -d "$CPP"; then
2045 if test -z "$CPP"; then
2046 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2049 # This must be in double quotes, not single quotes, because CPP may get
2050 # substituted into the Makefile and "${CC-cc}" will confuse make.
2052 # On the NeXT, cc -E runs the code through the compiler's parser,
2053 # not just through cpp.
2054 cat > conftest.
$ac_ext <<EOF
2055 #line 2056 "configure"
2056 #include "confdefs.h"
2060 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2061 { (eval echo configure
:2062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2062 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2063 if test -z "$ac_err"; then
2067 echo "configure: failed program was:" >&5
2068 cat conftest.
$ac_ext >&5
2070 CPP
="${CC-cc} -E -traditional-cpp"
2071 cat > conftest.
$ac_ext <<EOF
2072 #line 2073 "configure"
2073 #include "confdefs.h"
2077 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2078 { (eval echo configure
:2079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2079 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2080 if test -z "$ac_err"; then
2084 echo "configure: failed program was:" >&5
2085 cat conftest.
$ac_ext >&5
2087 CPP
="${CC-cc} -nologo -E"
2088 cat > conftest.
$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2094 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2095 { (eval echo configure
:2096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2096 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2097 if test -z "$ac_err"; then
2101 echo "configure: failed program was:" >&5
2102 cat conftest.
$ac_ext >&5
2111 ac_cv_prog_CPP
="$CPP"
2113 CPP
="$ac_cv_prog_CPP"
2115 ac_cv_prog_CPP
="$CPP"
2117 echo "$ac_t""$CPP" 1>&6
2119 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2120 echo "configure:2121: checking for ANSI C header files" >&5
2121 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2124 cat > conftest.
$ac_ext <<EOF
2125 #line 2126 "configure"
2126 #include "confdefs.h"
2132 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2133 { (eval echo configure
:2134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2134 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2135 if test -z "$ac_err"; then
2137 ac_cv_header_stdc
=yes
2140 echo "configure: failed program was:" >&5
2141 cat conftest.
$ac_ext >&5
2143 ac_cv_header_stdc
=no
2147 if test $ac_cv_header_stdc = yes; then
2148 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2149 cat > conftest.
$ac_ext <<EOF
2150 #line 2151 "configure"
2151 #include "confdefs.h"
2154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2155 egrep "memchr" >/dev
/null
2>&1; then
2159 ac_cv_header_stdc
=no
2165 if test $ac_cv_header_stdc = yes; then
2166 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2167 cat > conftest.
$ac_ext <<EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2173 egrep "free" >/dev
/null
2>&1; then
2177 ac_cv_header_stdc
=no
2183 if test $ac_cv_header_stdc = yes; then
2184 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2185 if test "$cross_compiling" = yes; then
2188 cat > conftest.
$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2192 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2193 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2195 int main () { int i; for (i = 0; i < 256; i++)
2196 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2200 if { (eval echo configure
:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2204 echo "configure: failed program was:" >&5
2205 cat conftest.
$ac_ext >&5
2207 ac_cv_header_stdc
=no
2215 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2216 if test $ac_cv_header_stdc = yes; then
2217 cat >> confdefs.h
<<\EOF
2218 #define STDC_HEADERS 1
2224 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2226 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2227 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2228 echo "configure:2229: checking for $ac_hdr that defines DIR" >&5
2229 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 cat > conftest.
$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2235 #include <sys/types.h>
2241 if { (eval echo configure
:2242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2243 eval "ac_cv_header_dirent_$ac_safe=yes"
2245 echo "configure: failed program was:" >&5
2246 cat conftest.
$ac_ext >&5
2248 eval "ac_cv_header_dirent_$ac_safe=no"
2252 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2253 echo "$ac_t""yes" 1>&6
2254 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2255 cat >> confdefs.h
<<EOF
2256 #define $ac_tr_hdr 1
2258 ac_header_dirent
=$ac_hdr; break
2260 echo "$ac_t""no" 1>&6
2263 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2264 if test $ac_header_dirent = dirent.h
; then
2265 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2266 echo "configure:2267: checking for opendir in -ldir" >&5
2267 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2271 ac_save_LIBS
="$LIBS"
2273 cat > conftest.
$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2276 /* Override any gcc2 internal prototype to avoid an error. */
2277 /* We use char because int might match the return type of a gcc2
2278 builtin and then its argument prototype would still apply. */
2285 if { (eval echo configure
:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2287 eval "ac_cv_lib_$ac_lib_var=yes"
2289 echo "configure: failed program was:" >&5
2290 cat conftest.
$ac_ext >&5
2292 eval "ac_cv_lib_$ac_lib_var=no"
2295 LIBS
="$ac_save_LIBS"
2298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2299 echo "$ac_t""yes" 1>&6
2302 echo "$ac_t""no" 1>&6
2306 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2307 echo "configure:2308: checking for opendir in -lx" >&5
2308 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2312 ac_save_LIBS
="$LIBS"
2314 cat > conftest.
$ac_ext <<EOF
2315 #line 2316 "configure"
2316 #include "confdefs.h"
2317 /* Override any gcc2 internal prototype to avoid an error. */
2318 /* We use char because int might match the return type of a gcc2
2319 builtin and then its argument prototype would still apply. */
2326 if { (eval echo configure
:2327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2328 eval "ac_cv_lib_$ac_lib_var=yes"
2330 echo "configure: failed program was:" >&5
2331 cat conftest.
$ac_ext >&5
2333 eval "ac_cv_lib_$ac_lib_var=no"
2336 LIBS
="$ac_save_LIBS"
2339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2340 echo "$ac_t""yes" 1>&6
2343 echo "$ac_t""no" 1>&6
2348 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2349 echo "configure:2350: checking whether time.h and sys/time.h may both be included" >&5
2350 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2351 echo $ac_n "(cached) $ac_c" 1>&6
2353 cat > conftest.
$ac_ext <<EOF
2354 #line 2355 "configure"
2355 #include "confdefs.h"
2356 #include <sys/types.h>
2357 #include <sys/time.h>
2363 if { (eval echo configure
:2364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2365 ac_cv_header_time
=yes
2367 echo "configure: failed program was:" >&5
2368 cat conftest.
$ac_ext >&5
2370 ac_cv_header_time
=no
2375 echo "$ac_t""$ac_cv_header_time" 1>&6
2376 if test $ac_cv_header_time = yes; then
2377 cat >> confdefs.h
<<\EOF
2378 #define TIME_WITH_SYS_TIME 1
2383 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2384 echo "configure:2385: checking for sys/wait.h that is POSIX.1 compatible" >&5
2385 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2388 cat > conftest.
$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2391 #include <sys/types.h>
2392 #include <sys/wait.h>
2394 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2397 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2402 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2405 if { (eval echo configure
:2406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2407 ac_cv_header_sys_wait_h
=yes
2409 echo "configure: failed program was:" >&5
2410 cat conftest.
$ac_ext >&5
2412 ac_cv_header_sys_wait_h
=no
2417 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2418 if test $ac_cv_header_sys_wait_h = yes; then
2419 cat >> confdefs.h
<<\EOF
2420 #define HAVE_SYS_WAIT_H 1
2425 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2427 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2428 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2429 echo "configure:2430: checking for $ac_hdr" >&5
2430 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2431 echo $ac_n "(cached) $ac_c" 1>&6
2433 cat > conftest.
$ac_ext <<EOF
2434 #line 2435 "configure"
2435 #include "confdefs.h"
2438 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2439 { (eval echo configure
:2440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2440 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2441 if test -z "$ac_err"; then
2443 eval "ac_cv_header_$ac_safe=yes"
2446 echo "configure: failed program was:" >&5
2447 cat conftest.
$ac_ext >&5
2449 eval "ac_cv_header_$ac_safe=no"
2453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2454 echo "$ac_t""yes" 1>&6
2455 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2456 cat >> confdefs.h
<<EOF
2457 #define $ac_tr_hdr 1
2461 echo "$ac_t""no" 1>&6
2465 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2467 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2468 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2469 echo "configure:2470: checking for $ac_hdr" >&5
2470 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2473 cat > conftest.
$ac_ext <<EOF
2474 #line 2475 "configure"
2475 #include "confdefs.h"
2478 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2479 { (eval echo configure
:2480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2480 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2481 if test -z "$ac_err"; then
2483 eval "ac_cv_header_$ac_safe=yes"
2486 echo "configure: failed program was:" >&5
2487 cat conftest.
$ac_ext >&5
2489 eval "ac_cv_header_$ac_safe=no"
2493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2494 echo "$ac_t""yes" 1>&6
2495 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2496 cat >> confdefs.h
<<EOF
2497 #define $ac_tr_hdr 1
2501 echo "$ac_t""no" 1>&6
2505 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2507 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2509 echo "configure:2510: checking for $ac_hdr" >&5
2510 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2513 cat > conftest.
$ac_ext <<EOF
2514 #line 2515 "configure"
2515 #include "confdefs.h"
2518 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2519 { (eval echo configure
:2520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2520 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2521 if test -z "$ac_err"; then
2523 eval "ac_cv_header_$ac_safe=yes"
2526 echo "configure: failed program was:" >&5
2527 cat conftest.
$ac_ext >&5
2529 eval "ac_cv_header_$ac_safe=no"
2533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2534 echo "$ac_t""yes" 1>&6
2535 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2536 cat >> confdefs.h
<<EOF
2537 #define $ac_tr_hdr 1
2541 echo "$ac_t""no" 1>&6
2545 for ac_hdr
in sys
/param.h ctype.h sys
/un.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/mode.h
2547 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2548 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2549 echo "configure:2550: checking for $ac_hdr" >&5
2550 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2553 cat > conftest.
$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2558 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2559 { (eval echo configure
:2560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2560 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2561 if test -z "$ac_err"; then
2563 eval "ac_cv_header_$ac_safe=yes"
2566 echo "configure: failed program was:" >&5
2567 cat conftest.
$ac_ext >&5
2569 eval "ac_cv_header_$ac_safe=no"
2573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2574 echo "$ac_t""yes" 1>&6
2575 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2576 cat >> confdefs.h
<<EOF
2577 #define $ac_tr_hdr 1
2581 echo "$ac_t""no" 1>&6
2585 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h string.h
strings.h stdlib.h sys
/socket.h
2587 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2588 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2589 echo "configure:2590: checking for $ac_hdr" >&5
2590 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2593 cat > conftest.
$ac_ext <<EOF
2594 #line 2595 "configure"
2595 #include "confdefs.h"
2598 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2599 { (eval echo configure
:2600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2600 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2601 if test -z "$ac_err"; then
2603 eval "ac_cv_header_$ac_safe=yes"
2606 echo "configure: failed program was:" >&5
2607 cat conftest.
$ac_ext >&5
2609 eval "ac_cv_header_$ac_safe=no"
2613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2614 echo "$ac_t""yes" 1>&6
2615 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2616 cat >> confdefs.h
<<EOF
2617 #define $ac_tr_hdr 1
2621 echo "$ac_t""no" 1>&6
2625 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2627 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2628 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2629 echo "configure:2630: checking for $ac_hdr" >&5
2630 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2631 echo $ac_n "(cached) $ac_c" 1>&6
2633 cat > conftest.
$ac_ext <<EOF
2634 #line 2635 "configure"
2635 #include "confdefs.h"
2638 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2639 { (eval echo configure
:2640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2640 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2641 if test -z "$ac_err"; then
2643 eval "ac_cv_header_$ac_safe=yes"
2646 echo "configure: failed program was:" >&5
2647 cat conftest.
$ac_ext >&5
2649 eval "ac_cv_header_$ac_safe=no"
2653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2654 echo "$ac_t""yes" 1>&6
2655 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2656 cat >> confdefs.h
<<EOF
2657 #define $ac_tr_hdr 1
2661 echo "$ac_t""no" 1>&6
2665 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2667 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2668 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2669 echo "configure:2670: checking for $ac_hdr" >&5
2670 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2673 cat > conftest.
$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2678 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2679 { (eval echo configure
:2680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2680 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2681 if test -z "$ac_err"; then
2683 eval "ac_cv_header_$ac_safe=yes"
2686 echo "configure: failed program was:" >&5
2687 cat conftest.
$ac_ext >&5
2689 eval "ac_cv_header_$ac_safe=no"
2693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2694 echo "$ac_t""yes" 1>&6
2695 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2696 cat >> confdefs.h
<<EOF
2697 #define $ac_tr_hdr 1
2701 echo "$ac_t""no" 1>&6
2706 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2707 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2711 cat > conftest.
$ac_ext <<EOF
2712 #line 2713 "configure"
2713 #include "confdefs.h"
2719 if { (eval echo configure
:2720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2721 ac_cv_header_shadow_h
=yes
2723 echo "configure: failed program was:" >&5
2724 cat conftest.
$ac_ext >&5
2726 ac_cv_header_shadow_h
=no
2729 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2730 cat >> confdefs.h
<<\EOF
2731 #define HAVE_SHADOW_H 1
2737 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2739 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2740 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2741 echo "configure:2742: checking for $ac_hdr" >&5
2742 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2745 cat > conftest.
$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2750 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2751 { (eval echo configure
:2752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2752 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2753 if test -z "$ac_err"; then
2755 eval "ac_cv_header_$ac_safe=yes"
2758 echo "configure: failed program was:" >&5
2759 cat conftest.
$ac_ext >&5
2761 eval "ac_cv_header_$ac_safe=no"
2765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2766 echo "$ac_t""yes" 1>&6
2767 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2768 cat >> confdefs.h
<<EOF
2769 #define $ac_tr_hdr 1
2773 echo "$ac_t""no" 1>&6
2777 for ac_hdr
in nss.h sys
/security.h security
/pam_appl.h
2779 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2780 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2781 echo "configure:2782: checking for $ac_hdr" >&5
2782 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2785 cat > conftest.
$ac_ext <<EOF
2786 #line 2787 "configure"
2787 #include "confdefs.h"
2790 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2791 { (eval echo configure
:2792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2792 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2793 if test -z "$ac_err"; then
2795 eval "ac_cv_header_$ac_safe=yes"
2798 echo "configure: failed program was:" >&5
2799 cat conftest.
$ac_ext >&5
2801 eval "ac_cv_header_$ac_safe=no"
2805 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2806 echo "$ac_t""yes" 1>&6
2807 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2808 cat >> confdefs.h
<<EOF
2809 #define $ac_tr_hdr 1
2813 echo "$ac_t""no" 1>&6
2817 for ac_hdr
in stropts.h poll.h readline.h
history.h readline
/readline.h
2819 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2820 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2821 echo "configure:2822: checking for $ac_hdr" >&5
2822 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2825 cat > conftest.
$ac_ext <<EOF
2826 #line 2827 "configure"
2827 #include "confdefs.h"
2830 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2831 { (eval echo configure
:2832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2832 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2833 if test -z "$ac_err"; then
2835 eval "ac_cv_header_$ac_safe=yes"
2838 echo "configure: failed program was:" >&5
2839 cat conftest.
$ac_ext >&5
2841 eval "ac_cv_header_$ac_safe=no"
2845 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2846 echo "$ac_t""yes" 1>&6
2847 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2848 cat >> confdefs.h
<<EOF
2849 #define $ac_tr_hdr 1
2853 echo "$ac_t""no" 1>&6
2857 for ac_hdr
in readline
/history.h sys
/capability.h syscall.h sys
/syscall.h
2859 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2861 echo "configure:2862: checking for $ac_hdr" >&5
2862 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2863 echo $ac_n "(cached) $ac_c" 1>&6
2865 cat > conftest.
$ac_ext <<EOF
2866 #line 2867 "configure"
2867 #include "confdefs.h"
2870 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2871 { (eval echo configure
:2872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2872 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2873 if test -z "$ac_err"; then
2875 eval "ac_cv_header_$ac_safe=yes"
2878 echo "configure: failed program was:" >&5
2879 cat conftest.
$ac_ext >&5
2881 eval "ac_cv_header_$ac_safe=no"
2885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2886 echo "$ac_t""yes" 1>&6
2887 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2888 cat >> confdefs.h
<<EOF
2889 #define $ac_tr_hdr 1
2893 echo "$ac_t""no" 1>&6
2897 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2899 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2901 echo "configure:2902: checking for $ac_hdr" >&5
2902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2905 cat > conftest.
$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2910 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2911 { (eval echo configure
:2912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2912 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2913 if test -z "$ac_err"; then
2915 eval "ac_cv_header_$ac_safe=yes"
2918 echo "configure: failed program was:" >&5
2919 cat conftest.
$ac_ext >&5
2921 eval "ac_cv_header_$ac_safe=no"
2925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2926 echo "$ac_t""yes" 1>&6
2927 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2928 cat >> confdefs.h
<<EOF
2929 #define $ac_tr_hdr 1
2933 echo "$ac_t""no" 1>&6
2938 # For experimental utmp support (lastlog on some BSD-like systems)
2939 for ac_hdr
in utmp.h utmpx.h lastlog.h
2941 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2943 echo "configure:2944: checking for $ac_hdr" >&5
2944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 cat > conftest.
$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2952 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2953 { (eval echo configure
:2954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2954 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2955 if test -z "$ac_err"; then
2957 eval "ac_cv_header_$ac_safe=yes"
2960 echo "configure: failed program was:" >&5
2961 cat conftest.
$ac_ext >&5
2963 eval "ac_cv_header_$ac_safe=no"
2967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2968 echo "$ac_t""yes" 1>&6
2969 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2970 cat >> confdefs.h
<<EOF
2971 #define $ac_tr_hdr 1
2975 echo "$ac_t""no" 1>&6
2980 # For quotas on Veritas VxFS filesystems
2981 for ac_hdr
in sys
/fs
/vx_quota.h
2983 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2985 echo "configure:2986: checking for $ac_hdr" >&5
2986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2989 cat > conftest.
$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2994 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2995 { (eval echo configure
:2996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2996 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2997 if test -z "$ac_err"; then
2999 eval "ac_cv_header_$ac_safe=yes"
3002 echo "configure: failed program was:" >&5
3003 cat conftest.
$ac_ext >&5
3005 eval "ac_cv_header_$ac_safe=no"
3009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3010 echo "$ac_t""yes" 1>&6
3011 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3012 cat >> confdefs.h
<<EOF
3013 #define $ac_tr_hdr 1
3017 echo "$ac_t""no" 1>&6
3022 echo $ac_n "checking size of int""... $ac_c" 1>&6
3023 echo "configure:3024: checking size of int" >&5
3024 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3027 if test "$cross_compiling" = yes; then
3028 ac_cv_sizeof_int
=cross
3030 cat > conftest.
$ac_ext <<EOF
3031 #line 3032 "configure"
3032 #include "confdefs.h"
3036 FILE *f=fopen("conftestval", "w");
3038 fprintf(f, "%d\n", sizeof(int));
3042 if { (eval echo configure
:3043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3044 ac_cv_sizeof_int
=`cat conftestval`
3046 echo "configure: failed program was:" >&5
3047 cat conftest.
$ac_ext >&5
3055 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3056 cat >> confdefs.h
<<EOF
3057 #define SIZEOF_INT $ac_cv_sizeof_int
3061 echo $ac_n "checking size of long""... $ac_c" 1>&6
3062 echo "configure:3063: checking size of long" >&5
3063 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3066 if test "$cross_compiling" = yes; then
3067 ac_cv_sizeof_long
=cross
3069 cat > conftest.
$ac_ext <<EOF
3070 #line 3071 "configure"
3071 #include "confdefs.h"
3075 FILE *f=fopen("conftestval", "w");
3077 fprintf(f, "%d\n", sizeof(long));
3081 if { (eval echo configure
:3082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3083 ac_cv_sizeof_long
=`cat conftestval`
3085 echo "configure: failed program was:" >&5
3086 cat conftest.
$ac_ext >&5
3094 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3095 cat >> confdefs.h
<<EOF
3096 #define SIZEOF_LONG $ac_cv_sizeof_long
3100 echo $ac_n "checking size of short""... $ac_c" 1>&6
3101 echo "configure:3102: checking size of short" >&5
3102 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3103 echo $ac_n "(cached) $ac_c" 1>&6
3105 if test "$cross_compiling" = yes; then
3106 ac_cv_sizeof_short
=cross
3108 cat > conftest.
$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3114 FILE *f=fopen("conftestval", "w");
3116 fprintf(f, "%d\n", sizeof(short));
3120 if { (eval echo configure
:3121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3122 ac_cv_sizeof_short
=`cat conftestval`
3124 echo "configure: failed program was:" >&5
3125 cat conftest.
$ac_ext >&5
3127 ac_cv_sizeof_short
=0
3133 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3134 cat >> confdefs.h
<<EOF
3135 #define SIZEOF_SHORT $ac_cv_sizeof_short
3140 echo $ac_n "checking for working const""... $ac_c" 1>&6
3141 echo "configure:3142: checking for working const" >&5
3142 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3143 echo $ac_n "(cached) $ac_c" 1>&6
3145 cat > conftest.
$ac_ext <<EOF
3146 #line 3147 "configure"
3147 #include "confdefs.h"
3151 /* Ultrix mips cc rejects this. */
3152 typedef int charset[2]; const charset x;
3153 /* SunOS 4.1.1 cc rejects this. */
3154 char const *const *ccp;
3156 /* NEC SVR4.0.2 mips cc rejects this. */
3157 struct point {int x, y;};
3158 static struct point const zero = {0,0};
3159 /* AIX XL C 1.02.0.0 rejects this.
3160 It does not let you subtract one const X* pointer from another in an arm
3161 of an if-expression whose if-part is not a constant expression */
3162 const char *g = "string";
3163 ccp = &g + (g ? g-g : 0);
3164 /* HPUX 7.0 cc rejects these. */
3167 ccp = (char const *const *) p;
3168 { /* SCO 3.2v4 cc rejects this. */
3170 char const *s = 0 ? (char *) 0 : (char const *) 0;
3174 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3176 const int *foo = &x[0];
3179 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3180 typedef const int *iptr;
3184 { /* AIX XL C 1.02.0.0 rejects this saying
3185 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3186 struct s { int j; const int *ap[3]; };
3187 struct s *b; b->j = 5;
3189 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3195 if { (eval echo configure
:3196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3199 echo "configure: failed program was:" >&5
3200 cat conftest.
$ac_ext >&5
3207 echo "$ac_t""$ac_cv_c_const" 1>&6
3208 if test $ac_cv_c_const = no
; then
3209 cat >> confdefs.h
<<\EOF
3215 echo $ac_n "checking for inline""... $ac_c" 1>&6
3216 echo "configure:3217: checking for inline" >&5
3217 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3221 for ac_kw
in inline __inline__ __inline
; do
3222 cat > conftest.
$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3230 if { (eval echo configure
:3231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3232 ac_cv_c_inline
=$ac_kw; break
3234 echo "configure: failed program was:" >&5
3235 cat conftest.
$ac_ext >&5
3242 echo "$ac_t""$ac_cv_c_inline" 1>&6
3243 case "$ac_cv_c_inline" in
3245 no
) cat >> confdefs.h
<<\EOF
3249 *) cat >> confdefs.h
<<EOF
3250 #define inline $ac_cv_c_inline
3255 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3256 echo "configure:3257: checking whether byte ordering is bigendian" >&5
3257 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3258 echo $ac_n "(cached) $ac_c" 1>&6
3260 ac_cv_c_bigendian
=unknown
3261 # See if sys/param.h defines the BYTE_ORDER macro.
3262 cat > conftest.
$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265 #include <sys/types.h>
3266 #include <sys/param.h>
3269 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3274 if { (eval echo configure
:3275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3276 # It does; now see whether it defined to BIG_ENDIAN or not.
3277 cat > conftest.
$ac_ext <<EOF
3278 #line 3279 "configure"
3279 #include "confdefs.h"
3280 #include <sys/types.h>
3281 #include <sys/param.h>
3284 #if BYTE_ORDER != BIG_ENDIAN
3289 if { (eval echo configure
:3290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3291 ac_cv_c_bigendian
=yes
3293 echo "configure: failed program was:" >&5
3294 cat conftest.
$ac_ext >&5
3296 ac_cv_c_bigendian
=no
3300 echo "configure: failed program was:" >&5
3301 cat conftest.
$ac_ext >&5
3304 if test $ac_cv_c_bigendian = unknown
; then
3305 if test "$cross_compiling" = yes; then
3306 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3308 cat > conftest.
$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3312 /* Are we little or big endian? From Harbison&Steele. */
3316 char c[sizeof (long)];
3319 exit (u.c[sizeof (long) - 1] == 1);
3322 if { (eval echo configure
:3323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3324 ac_cv_c_bigendian
=no
3326 echo "configure: failed program was:" >&5
3327 cat conftest.
$ac_ext >&5
3329 ac_cv_c_bigendian
=yes
3337 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3338 if test $ac_cv_c_bigendian = yes; then
3339 cat >> confdefs.h
<<\EOF
3340 #define WORDS_BIGENDIAN 1
3345 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3346 echo "configure:3347: checking whether char is unsigned" >&5
3347 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3348 echo $ac_n "(cached) $ac_c" 1>&6
3350 if test "$GCC" = yes; then
3351 # GCC predefines this symbol on systems where it applies.
3352 cat > conftest.
$ac_ext <<EOF
3353 #line 3354 "configure"
3354 #include "confdefs.h"
3355 #ifdef __CHAR_UNSIGNED__
3360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3361 egrep "yes" >/dev
/null
2>&1; then
3363 ac_cv_c_char_unsigned
=yes
3366 ac_cv_c_char_unsigned
=no
3371 if test "$cross_compiling" = yes; then
3372 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3374 cat > conftest.
$ac_ext <<EOF
3375 #line 3376 "configure"
3376 #include "confdefs.h"
3377 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3378 #if !defined(__STDC__) || __STDC__ != 1
3382 volatile char c = 255; exit(c < 0);
3385 if { (eval echo configure
:3386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3387 ac_cv_c_char_unsigned
=yes
3389 echo "configure: failed program was:" >&5
3390 cat conftest.
$ac_ext >&5
3392 ac_cv_c_char_unsigned
=no
3400 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3401 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3402 cat >> confdefs.h
<<\EOF
3403 #define __CHAR_UNSIGNED__ 1
3409 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3410 echo "configure:3411: checking return type of signal handlers" >&5
3411 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3414 cat > conftest.
$ac_ext <<EOF
3415 #line 3416 "configure"
3416 #include "confdefs.h"
3417 #include <sys/types.h>
3423 extern "C" void (*signal (int, void (*)(int)))(int);
3425 void (*signal ()) ();
3432 if { (eval echo configure
:3433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3434 ac_cv_type_signal
=void
3436 echo "configure: failed program was:" >&5
3437 cat conftest.
$ac_ext >&5
3439 ac_cv_type_signal
=int
3444 echo "$ac_t""$ac_cv_type_signal" 1>&6
3445 cat >> confdefs.h
<<EOF
3446 #define RETSIGTYPE $ac_cv_type_signal
3450 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3451 echo "configure:3452: checking for uid_t in sys/types.h" >&5
3452 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3455 cat > conftest.
$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3458 #include <sys/types.h>
3460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3461 egrep "uid_t" >/dev
/null
2>&1; then
3463 ac_cv_type_uid_t
=yes
3472 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3473 if test $ac_cv_type_uid_t = no
; then
3474 cat >> confdefs.h
<<\EOF
3478 cat >> confdefs.h
<<\EOF
3484 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3485 echo "configure:3486: checking for mode_t" >&5
3486 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3487 echo $ac_n "(cached) $ac_c" 1>&6
3489 cat > conftest.
$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3492 #include <sys/types.h>
3498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3499 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3501 ac_cv_type_mode_t
=yes
3504 ac_cv_type_mode_t
=no
3509 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3510 if test $ac_cv_type_mode_t = no
; then
3511 cat >> confdefs.h
<<\EOF
3517 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3518 echo "configure:3519: checking for off_t" >&5
3519 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3520 echo $ac_n "(cached) $ac_c" 1>&6
3522 cat > conftest.
$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3525 #include <sys/types.h>
3531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3532 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3534 ac_cv_type_off_t
=yes
3542 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3543 if test $ac_cv_type_off_t = no
; then
3544 cat >> confdefs.h
<<\EOF
3550 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3551 echo "configure:3552: checking for size_t" >&5
3552 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 cat > conftest.
$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 #include <sys/types.h>
3564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3565 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3567 ac_cv_type_size_t
=yes
3570 ac_cv_type_size_t
=no
3575 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3576 if test $ac_cv_type_size_t = no
; then
3577 cat >> confdefs.h
<<\EOF
3578 #define size_t unsigned
3583 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3584 echo "configure:3585: checking for pid_t" >&5
3585 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3586 echo $ac_n "(cached) $ac_c" 1>&6
3588 cat > conftest.
$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3591 #include <sys/types.h>
3597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3598 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3600 ac_cv_type_pid_t
=yes
3608 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3609 if test $ac_cv_type_pid_t = no
; then
3610 cat >> confdefs.h
<<\EOF
3616 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3617 echo "configure:3618: checking for st_rdev in struct stat" >&5
3618 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3621 cat > conftest.
$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624 #include <sys/types.h>
3625 #include <sys/stat.h>
3627 struct stat s; s.st_rdev;
3630 if { (eval echo configure
:3631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3632 ac_cv_struct_st_rdev
=yes
3634 echo "configure: failed program was:" >&5
3635 cat conftest.
$ac_ext >&5
3637 ac_cv_struct_st_rdev
=no
3642 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3643 if test $ac_cv_struct_st_rdev = yes; then
3644 cat >> confdefs.h
<<\EOF
3645 #define HAVE_ST_RDEV 1
3650 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3651 echo "configure:3652: checking for d_off in dirent" >&5
3652 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3655 cat > conftest.
$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3660 #include <sys/types.h>
3663 struct dirent d; d.d_off;
3666 if { (eval echo configure
:3667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3668 ac_cv_dirent_d_off
=yes
3670 echo "configure: failed program was:" >&5
3671 cat conftest.
$ac_ext >&5
3673 ac_cv_dirent_d_off
=no
3678 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3679 if test $ac_cv_dirent_d_off = yes; then
3680 cat >> confdefs.h
<<\EOF
3681 #define HAVE_DIRENT_D_OFF 1
3686 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3687 echo "configure:3688: checking for ino_t" >&5
3688 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3691 cat > conftest.
$ac_ext <<EOF
3692 #line 3693 "configure"
3693 #include "confdefs.h"
3694 #include <sys/types.h>
3700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3701 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3703 ac_cv_type_ino_t
=yes
3711 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3712 if test $ac_cv_type_ino_t = no
; then
3713 cat >> confdefs.h
<<\EOF
3714 #define ino_t unsigned
3719 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3720 echo "configure:3721: checking for loff_t" >&5
3721 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3722 echo $ac_n "(cached) $ac_c" 1>&6
3724 cat > conftest.
$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3727 #include <sys/types.h>
3733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3734 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3736 ac_cv_type_loff_t
=yes
3739 ac_cv_type_loff_t
=no
3744 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3745 if test $ac_cv_type_loff_t = no
; then
3746 cat >> confdefs.h
<<\EOF
3747 #define loff_t off_t
3752 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3753 echo "configure:3754: checking for offset_t" >&5
3754 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3755 echo $ac_n "(cached) $ac_c" 1>&6
3757 cat > conftest.
$ac_ext <<EOF
3758 #line 3759 "configure"
3759 #include "confdefs.h"
3760 #include <sys/types.h>
3766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3767 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3769 ac_cv_type_offset_t
=yes
3772 ac_cv_type_offset_t
=no
3777 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3778 if test $ac_cv_type_offset_t = no
; then
3779 cat >> confdefs.h
<<\EOF
3780 #define offset_t loff_t
3785 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3786 echo "configure:3787: checking for ssize_t" >&5
3787 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3788 echo $ac_n "(cached) $ac_c" 1>&6
3790 cat > conftest.
$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3793 #include <sys/types.h>
3799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3800 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3802 ac_cv_type_ssize_t
=yes
3805 ac_cv_type_ssize_t
=no
3810 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3811 if test $ac_cv_type_ssize_t = no
; then
3812 cat >> confdefs.h
<<\EOF
3818 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3819 echo "configure:3820: checking for wchar_t" >&5
3820 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3821 echo $ac_n "(cached) $ac_c" 1>&6
3823 cat > conftest.
$ac_ext <<EOF
3824 #line 3825 "configure"
3825 #include "confdefs.h"
3826 #include <sys/types.h>
3832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3833 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3835 ac_cv_type_wchar_t
=yes
3838 ac_cv_type_wchar_t
=no
3843 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3844 if test $ac_cv_type_wchar_t = no
; then
3845 cat >> confdefs.h
<<\EOF
3846 #define wchar_t unsigned short
3852 # we need libcups for CUPS support...
3853 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3854 echo "configure:3855: checking for httpConnect in -lcups" >&5
3855 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3857 echo $ac_n "(cached) $ac_c" 1>&6
3859 ac_save_LIBS
="$LIBS"
3861 cat > conftest.
$ac_ext <<EOF
3862 #line 3863 "configure"
3863 #include "confdefs.h"
3864 /* Override any gcc2 internal prototype to avoid an error. */
3865 /* We use char because int might match the return type of a gcc2
3866 builtin and then its argument prototype would still apply. */
3873 if { (eval echo configure
:3874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3875 eval "ac_cv_lib_$ac_lib_var=yes"
3877 echo "configure: failed program was:" >&5
3878 cat conftest.
$ac_ext >&5
3880 eval "ac_cv_lib_$ac_lib_var=no"
3883 LIBS
="$ac_save_LIBS"
3886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3887 echo "$ac_t""yes" 1>&6
3888 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3889 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3890 cat >> confdefs.h
<<EOF
3891 #define $ac_tr_lib 1
3897 echo "$ac_t""no" 1>&6
3901 # we need libdl for PAM and the new VFS code
3902 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3903 echo "configure:3904: checking for dlopen in -ldl" >&5
3904 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3908 ac_save_LIBS
="$LIBS"
3910 cat > conftest.
$ac_ext <<EOF
3911 #line 3912 "configure"
3912 #include "confdefs.h"
3913 /* Override any gcc2 internal prototype to avoid an error. */
3914 /* We use char because int might match the return type of a gcc2
3915 builtin and then its argument prototype would still apply. */
3922 if { (eval echo configure
:3923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3924 eval "ac_cv_lib_$ac_lib_var=yes"
3926 echo "configure: failed program was:" >&5
3927 cat conftest.
$ac_ext >&5
3929 eval "ac_cv_lib_$ac_lib_var=no"
3932 LIBS
="$ac_save_LIBS"
3935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3936 echo "$ac_t""yes" 1>&6
3938 cat >> confdefs.h
<<\EOF
3939 #define HAVE_LIBDL 1
3943 echo "$ac_t""no" 1>&6
3947 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3948 echo "configure:3949: checking for sig_atomic_t type" >&5
3949 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3953 cat > conftest.
$ac_ext <<EOF
3954 #line 3955 "configure"
3955 #include "confdefs.h"
3957 #include <sys/types.h>
3967 if { (eval echo configure
:3968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3969 samba_cv_sig_atomic_t
=yes
3971 echo "configure: failed program was:" >&5
3972 cat conftest.
$ac_ext >&5
3974 samba_cv_sig_atomic_t
=no
3979 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3980 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3981 cat >> confdefs.h
<<\EOF
3982 #define HAVE_SIG_ATOMIC_T_TYPE 1
3987 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3988 echo "configure:3989: checking for errno in errno.h" >&5
3989 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3990 echo $ac_n "(cached) $ac_c" 1>&6
3993 cat > conftest.
$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
4001 if { (eval echo configure
:4002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4005 echo "configure: failed program was:" >&5
4006 cat conftest.
$ac_ext >&5
4008 samba_cv_have_errno
=no
4013 echo "$ac_t""$samba_cv_errno" 1>&6
4014 if test x
"$samba_cv_errno" = x
"yes"; then
4015 cat >> confdefs.h
<<\EOF
4016 #define HAVE_ERRNO_DECL 1
4021 # stupid glibc has the functions but no declaration. grrrr.
4022 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4023 echo "configure:4024: checking for setresuid declaration" >&5
4024 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
4025 echo $ac_n "(cached) $ac_c" 1>&6
4028 cat > conftest.
$ac_ext <<EOF
4029 #line 4030 "configure"
4030 #include "confdefs.h"
4033 int i = (int)setresuid
4036 if { (eval echo configure
:4037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4038 samba_cv_have_setresuid_decl
=yes
4040 echo "configure: failed program was:" >&5
4041 cat conftest.
$ac_ext >&5
4043 samba_cv_have_setresuid_decl
=no
4048 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
4049 if test x
"$samba_cv_have_setresuid_decl" = x
"yes"; then
4050 cat >> confdefs.h
<<\EOF
4051 #define HAVE_SETRESUID_DECL 1
4056 # stupid glibc has the functions but no declaration. grrrr.
4057 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4058 echo "configure:4059: checking for setresgid declaration" >&5
4059 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
4060 echo $ac_n "(cached) $ac_c" 1>&6
4063 cat > conftest.
$ac_ext <<EOF
4064 #line 4065 "configure"
4065 #include "confdefs.h"
4068 int i = (int)setresgid
4071 if { (eval echo configure
:4072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4073 samba_cv_have_setresgid_decl
=yes
4075 echo "configure: failed program was:" >&5
4076 cat conftest.
$ac_ext >&5
4078 samba_cv_have_setresgid_decl
=no
4083 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
4084 if test x
"$samba_cv_have_setresgid_decl" = x
"yes"; then
4085 cat >> confdefs.h
<<\EOF
4086 #define HAVE_SETRESGID_DECL 1
4091 # and glibc has setresuid under linux but the function does
4092 # nothing until kernel 2.1.44! very dumb.
4093 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4094 echo "configure:4095: checking for real setresuid" >&5
4095 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4099 if test "$cross_compiling" = yes; then
4100 samba_cv_have_setresuid
=cross
4102 cat > conftest.
$ac_ext <<EOF
4103 #line 4104 "configure"
4104 #include "confdefs.h"
4106 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4108 if { (eval echo configure
:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4110 samba_cv_have_setresuid
=yes
4112 echo "configure: failed program was:" >&5
4113 cat conftest.
$ac_ext >&5
4115 samba_cv_have_setresuid
=no
4122 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4123 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4124 cat >> confdefs.h
<<\EOF
4125 #define HAVE_SETRESUID 1
4130 # Do the same check for setresguid...
4132 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4133 echo "configure:4134: checking for real setresgid" >&5
4134 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4138 if test "$cross_compiling" = yes; then
4139 samba_cv_have_setresgid
=cross
4141 cat > conftest.
$ac_ext <<EOF
4142 #line 4143 "configure"
4143 #include "confdefs.h"
4146 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4148 if { (eval echo configure
:4149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4150 samba_cv_have_setresgid
=yes
4152 echo "configure: failed program was:" >&5
4153 cat conftest.
$ac_ext >&5
4155 samba_cv_have_setresgid
=no
4162 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4163 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4164 cat >> confdefs.h
<<\EOF
4165 #define HAVE_SETRESGID 1
4170 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4171 echo "configure:4172: checking for 8-bit clean memcmp" >&5
4172 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4173 echo $ac_n "(cached) $ac_c" 1>&6
4175 if test "$cross_compiling" = yes; then
4176 ac_cv_func_memcmp_clean
=no
4178 cat > conftest.
$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4184 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4185 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4189 if { (eval echo configure
:4190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4191 ac_cv_func_memcmp_clean
=yes
4193 echo "configure: failed program was:" >&5
4194 cat conftest.
$ac_ext >&5
4196 ac_cv_func_memcmp_clean
=no
4203 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4204 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4207 ###############################################
4208 # test for where we get crypt() from
4209 for ac_func
in crypt
4211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4212 echo "configure:4213: checking for $ac_func" >&5
4213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4214 echo $ac_n "(cached) $ac_c" 1>&6
4216 cat > conftest.
$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4219 /* System header to define __stub macros and hopefully few prototypes,
4220 which can conflict with char $ac_func(); below. */
4222 /* Override any gcc2 internal prototype to avoid an error. */
4223 /* We use char because int might match the return type of a gcc2
4224 builtin and then its argument prototype would still apply. */
4229 /* The GNU C library defines this for functions which it implements
4230 to always fail with ENOSYS. Some functions are actually named
4231 something starting with __ and the normal name is an alias. */
4232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4240 if { (eval echo configure
:4241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4242 eval "ac_cv_func_$ac_func=yes"
4244 echo "configure: failed program was:" >&5
4245 cat conftest.
$ac_ext >&5
4247 eval "ac_cv_func_$ac_func=no"
4252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4253 echo "$ac_t""yes" 1>&6
4254 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4255 cat >> confdefs.h
<<EOF
4256 #define $ac_tr_func 1
4260 echo "$ac_t""no" 1>&6
4264 if test x
"$ac_cv_func_crypt" = x
"no"; then
4265 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4266 echo "configure:4267: checking for crypt in -lcrypt" >&5
4267 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4269 echo $ac_n "(cached) $ac_c" 1>&6
4271 ac_save_LIBS
="$LIBS"
4272 LIBS
="-lcrypt $LIBS"
4273 cat > conftest.
$ac_ext <<EOF
4274 #line 4275 "configure"
4275 #include "confdefs.h"
4276 /* Override any gcc2 internal prototype to avoid an error. */
4277 /* We use char because int might match the return type of a gcc2
4278 builtin and then its argument prototype would still apply. */
4285 if { (eval echo configure
:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4287 eval "ac_cv_lib_$ac_lib_var=yes"
4289 echo "configure: failed program was:" >&5
4290 cat conftest.
$ac_ext >&5
4292 eval "ac_cv_lib_$ac_lib_var=no"
4295 LIBS
="$ac_save_LIBS"
4298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4299 echo "$ac_t""yes" 1>&6
4300 LIBS
="$LIBS -lcrypt";
4301 cat >> confdefs.h
<<\EOF
4302 #define HAVE_CRYPT 1
4306 echo "$ac_t""no" 1>&6
4311 ###############################################
4312 # test for where we get readline() from
4313 if test "$ac_cv_header_readline_h" = "yes" ||
4314 test "$ac_cv_header_readline_readline_h" = "yes"; then
4315 # we need to also pull in termcap for some systems to use readline
4316 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
4317 echo "configure:4318: checking for tgetent in -ltermcap" >&5
4318 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
4319 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4320 echo $ac_n "(cached) $ac_c" 1>&6
4322 ac_save_LIBS
="$LIBS"
4323 LIBS
="-ltermcap $LIBS"
4324 cat > conftest.
$ac_ext <<EOF
4325 #line 4326 "configure"
4326 #include "confdefs.h"
4327 /* Override any gcc2 internal prototype to avoid an error. */
4328 /* We use char because int might match the return type of a gcc2
4329 builtin and then its argument prototype would still apply. */
4336 if { (eval echo configure
:4337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4338 eval "ac_cv_lib_$ac_lib_var=yes"
4340 echo "configure: failed program was:" >&5
4341 cat conftest.
$ac_ext >&5
4343 eval "ac_cv_lib_$ac_lib_var=no"
4346 LIBS
="$ac_save_LIBS"
4349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4350 echo "$ac_t""yes" 1>&6
4351 ac_tr_lib
=HAVE_LIB
`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4352 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4353 cat >> confdefs.h
<<EOF
4354 #define $ac_tr_lib 1
4357 LIBS
="-ltermcap $LIBS"
4360 echo "$ac_t""no" 1>&6
4363 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4364 echo "configure:4365: checking for rl_callback_handler_install in -lreadline" >&5
4365 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4367 echo $ac_n "(cached) $ac_c" 1>&6
4369 ac_save_LIBS
="$LIBS"
4370 LIBS
="-lreadline $LIBS"
4371 cat > conftest.
$ac_ext <<EOF
4372 #line 4373 "configure"
4373 #include "confdefs.h"
4374 /* Override any gcc2 internal prototype to avoid an error. */
4375 /* We use char because int might match the return type of a gcc2
4376 builtin and then its argument prototype would still apply. */
4377 char rl_callback_handler_install();
4380 rl_callback_handler_install()
4383 if { (eval echo configure
:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4385 eval "ac_cv_lib_$ac_lib_var=yes"
4387 echo "configure: failed program was:" >&5
4388 cat conftest.
$ac_ext >&5
4390 eval "ac_cv_lib_$ac_lib_var=no"
4393 LIBS
="$ac_save_LIBS"
4396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4397 echo "$ac_t""yes" 1>&6
4398 ac_tr_lib
=HAVE_LIB
`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4399 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4400 cat >> confdefs.h
<<EOF
4401 #define $ac_tr_lib 1
4404 LIBS
="-lreadline $LIBS"
4407 echo "$ac_t""no" 1>&6
4413 # The following test taken from the cvs sources
4414 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4415 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4416 # libsocket.so which has a bad implementation of gethostbyname (it
4417 # only looks in /etc/hosts), so we only look for -lsocket if we need
4419 for ac_func
in connect
4421 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4422 echo "configure:4423: checking for $ac_func" >&5
4423 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4424 echo $ac_n "(cached) $ac_c" 1>&6
4426 cat > conftest.
$ac_ext <<EOF
4427 #line 4428 "configure"
4428 #include "confdefs.h"
4429 /* System header to define __stub macros and hopefully few prototypes,
4430 which can conflict with char $ac_func(); below. */
4432 /* Override any gcc2 internal prototype to avoid an error. */
4433 /* We use char because int might match the return type of a gcc2
4434 builtin and then its argument prototype would still apply. */
4439 /* The GNU C library defines this for functions which it implements
4440 to always fail with ENOSYS. Some functions are actually named
4441 something starting with __ and the normal name is an alias. */
4442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4450 if { (eval echo configure
:4451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4452 eval "ac_cv_func_$ac_func=yes"
4454 echo "configure: failed program was:" >&5
4455 cat conftest.
$ac_ext >&5
4457 eval "ac_cv_func_$ac_func=no"
4462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4463 echo "$ac_t""yes" 1>&6
4464 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4465 cat >> confdefs.h
<<EOF
4466 #define $ac_tr_func 1
4470 echo "$ac_t""no" 1>&6
4474 if test x
"$ac_cv_func_connect" = x
"no"; then
4477 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4478 echo "configure:4479: checking for printf in -lnsl_s" >&5
4479 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4483 ac_save_LIBS
="$LIBS"
4484 LIBS
="-lnsl_s $LIBS"
4485 cat > conftest.
$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4488 /* Override any gcc2 internal prototype to avoid an error. */
4489 /* We use char because int might match the return type of a gcc2
4490 builtin and then its argument prototype would still apply. */
4497 if { (eval echo configure
:4498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4499 eval "ac_cv_lib_$ac_lib_var=yes"
4501 echo "configure: failed program was:" >&5
4502 cat conftest.
$ac_ext >&5
4504 eval "ac_cv_lib_$ac_lib_var=no"
4507 LIBS
="$ac_save_LIBS"
4510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4511 echo "$ac_t""yes" 1>&6
4512 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4513 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4514 cat >> confdefs.h
<<EOF
4515 #define $ac_tr_lib 1
4518 LIBS
="-lnsl_s $LIBS"
4521 echo "$ac_t""no" 1>&6
4527 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4528 echo "configure:4529: checking for printf in -lnsl" >&5
4529 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4531 echo $ac_n "(cached) $ac_c" 1>&6
4533 ac_save_LIBS
="$LIBS"
4535 cat > conftest.
$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4538 /* Override any gcc2 internal prototype to avoid an error. */
4539 /* We use char because int might match the return type of a gcc2
4540 builtin and then its argument prototype would still apply. */
4547 if { (eval echo configure
:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4549 eval "ac_cv_lib_$ac_lib_var=yes"
4551 echo "configure: failed program was:" >&5
4552 cat conftest.
$ac_ext >&5
4554 eval "ac_cv_lib_$ac_lib_var=no"
4557 LIBS
="$ac_save_LIBS"
4560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4561 echo "$ac_t""yes" 1>&6
4562 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4563 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4564 cat >> confdefs.h
<<EOF
4565 #define $ac_tr_lib 1
4571 echo "$ac_t""no" 1>&6
4577 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4578 echo "configure:4579: checking for connect in -lsocket" >&5
4579 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4581 echo $ac_n "(cached) $ac_c" 1>&6
4583 ac_save_LIBS
="$LIBS"
4584 LIBS
="-lsocket $LIBS"
4585 cat > conftest.
$ac_ext <<EOF
4586 #line 4587 "configure"
4587 #include "confdefs.h"
4588 /* Override any gcc2 internal prototype to avoid an error. */
4589 /* We use char because int might match the return type of a gcc2
4590 builtin and then its argument prototype would still apply. */
4597 if { (eval echo configure
:4598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4599 eval "ac_cv_lib_$ac_lib_var=yes"
4601 echo "configure: failed program was:" >&5
4602 cat conftest.
$ac_ext >&5
4604 eval "ac_cv_lib_$ac_lib_var=no"
4607 LIBS
="$ac_save_LIBS"
4610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4611 echo "$ac_t""yes" 1>&6
4612 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4613 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4614 cat >> confdefs.h
<<EOF
4615 #define $ac_tr_lib 1
4618 LIBS
="-lsocket $LIBS"
4621 echo "$ac_t""no" 1>&6
4627 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4628 echo "configure:4629: checking for connect in -linet" >&5
4629 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4630 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4631 echo $ac_n "(cached) $ac_c" 1>&6
4633 ac_save_LIBS
="$LIBS"
4635 cat > conftest.
$ac_ext <<EOF
4636 #line 4637 "configure"
4637 #include "confdefs.h"
4638 /* Override any gcc2 internal prototype to avoid an error. */
4639 /* We use char because int might match the return type of a gcc2
4640 builtin and then its argument prototype would still apply. */
4647 if { (eval echo configure
:4648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4649 eval "ac_cv_lib_$ac_lib_var=yes"
4651 echo "configure: failed program was:" >&5
4652 cat conftest.
$ac_ext >&5
4654 eval "ac_cv_lib_$ac_lib_var=no"
4657 LIBS
="$ac_save_LIBS"
4660 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4661 echo "$ac_t""yes" 1>&6
4662 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4663 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4664 cat >> confdefs.h
<<EOF
4665 #define $ac_tr_lib 1
4671 echo "$ac_t""no" 1>&6
4675 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4676 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4677 # ac_cv_func_connect=yes
4678 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4679 cat >> confdefs.h
<<\EOF
4680 #define HAVE_CONNECT 1
4686 ###############################################
4687 # test for where we get get_yp_default_domain() from
4688 for ac_func
in yp_get_default_domain
4690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4691 echo "configure:4692: checking for $ac_func" >&5
4692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4693 echo $ac_n "(cached) $ac_c" 1>&6
4695 cat > conftest.
$ac_ext <<EOF
4696 #line 4697 "configure"
4697 #include "confdefs.h"
4698 /* System header to define __stub macros and hopefully few prototypes,
4699 which can conflict with char $ac_func(); below. */
4701 /* Override any gcc2 internal prototype to avoid an error. */
4702 /* We use char because int might match the return type of a gcc2
4703 builtin and then its argument prototype would still apply. */
4708 /* The GNU C library defines this for functions which it implements
4709 to always fail with ENOSYS. Some functions are actually named
4710 something starting with __ and the normal name is an alias. */
4711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4719 if { (eval echo configure
:4720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4721 eval "ac_cv_func_$ac_func=yes"
4723 echo "configure: failed program was:" >&5
4724 cat conftest.
$ac_ext >&5
4726 eval "ac_cv_func_$ac_func=no"
4731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4732 echo "$ac_t""yes" 1>&6
4733 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4734 cat >> confdefs.h
<<EOF
4735 #define $ac_tr_func 1
4739 echo "$ac_t""no" 1>&6
4743 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
4744 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4745 echo "configure:4746: checking for yp_get_default_domain in -lnsl" >&5
4746 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4747 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4750 ac_save_LIBS
="$LIBS"
4752 cat > conftest.
$ac_ext <<EOF
4753 #line 4754 "configure"
4754 #include "confdefs.h"
4755 /* Override any gcc2 internal prototype to avoid an error. */
4756 /* We use char because int might match the return type of a gcc2
4757 builtin and then its argument prototype would still apply. */
4758 char yp_get_default_domain();
4761 yp_get_default_domain()
4764 if { (eval echo configure
:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4766 eval "ac_cv_lib_$ac_lib_var=yes"
4768 echo "configure: failed program was:" >&5
4769 cat conftest.
$ac_ext >&5
4771 eval "ac_cv_lib_$ac_lib_var=no"
4774 LIBS
="$ac_save_LIBS"
4777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4778 echo "$ac_t""yes" 1>&6
4780 cat >> confdefs.h
<<\EOF
4781 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4785 echo "$ac_t""no" 1>&6
4790 # Check if we have execl, if not we need to compile smbrun.
4791 for ac_func
in execl
4793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4794 echo "configure:4795: checking for $ac_func" >&5
4795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4796 echo $ac_n "(cached) $ac_c" 1>&6
4798 cat > conftest.
$ac_ext <<EOF
4799 #line 4800 "configure"
4800 #include "confdefs.h"
4801 /* System header to define __stub macros and hopefully few prototypes,
4802 which can conflict with char $ac_func(); below. */
4804 /* Override any gcc2 internal prototype to avoid an error. */
4805 /* We use char because int might match the return type of a gcc2
4806 builtin and then its argument prototype would still apply. */
4811 /* The GNU C library defines this for functions which it implements
4812 to always fail with ENOSYS. Some functions are actually named
4813 something starting with __ and the normal name is an alias. */
4814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4822 if { (eval echo configure
:4823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4824 eval "ac_cv_func_$ac_func=yes"
4826 echo "configure: failed program was:" >&5
4827 cat conftest.
$ac_ext >&5
4829 eval "ac_cv_func_$ac_func=no"
4834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4835 echo "$ac_t""yes" 1>&6
4836 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4837 cat >> confdefs.h
<<EOF
4838 #define $ac_tr_func 1
4842 echo "$ac_t""no" 1>&6
4846 if test x
"$ac_cv_func_execl" = x
"no"; then
4847 RUNPROG
="bin/smbrun"
4852 for ac_func
in waitpid getcwd strdup strtoul strerror chown
chmod chroot
4854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4855 echo "configure:4856: checking for $ac_func" >&5
4856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4857 echo $ac_n "(cached) $ac_c" 1>&6
4859 cat > conftest.
$ac_ext <<EOF
4860 #line 4861 "configure"
4861 #include "confdefs.h"
4862 /* System header to define __stub macros and hopefully few prototypes,
4863 which can conflict with char $ac_func(); below. */
4865 /* Override any gcc2 internal prototype to avoid an error. */
4866 /* We use char because int might match the return type of a gcc2
4867 builtin and then its argument prototype would still apply. */
4872 /* The GNU C library defines this for functions which it implements
4873 to always fail with ENOSYS. Some functions are actually named
4874 something starting with __ and the normal name is an alias. */
4875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4883 if { (eval echo configure
:4884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4885 eval "ac_cv_func_$ac_func=yes"
4887 echo "configure: failed program was:" >&5
4888 cat conftest.
$ac_ext >&5
4890 eval "ac_cv_func_$ac_func=no"
4895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4896 echo "$ac_t""yes" 1>&6
4897 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4898 cat >> confdefs.h
<<EOF
4899 #define $ac_tr_func 1
4903 echo "$ac_t""no" 1>&6
4907 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
4909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4910 echo "configure:4911: checking for $ac_func" >&5
4911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4912 echo $ac_n "(cached) $ac_c" 1>&6
4914 cat > conftest.
$ac_ext <<EOF
4915 #line 4916 "configure"
4916 #include "confdefs.h"
4917 /* System header to define __stub macros and hopefully few prototypes,
4918 which can conflict with char $ac_func(); below. */
4920 /* Override any gcc2 internal prototype to avoid an error. */
4921 /* We use char because int might match the return type of a gcc2
4922 builtin and then its argument prototype would still apply. */
4927 /* The GNU C library defines this for functions which it implements
4928 to always fail with ENOSYS. Some functions are actually named
4929 something starting with __ and the normal name is an alias. */
4930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4938 if { (eval echo configure
:4939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4940 eval "ac_cv_func_$ac_func=yes"
4942 echo "configure: failed program was:" >&5
4943 cat conftest.
$ac_ext >&5
4945 eval "ac_cv_func_$ac_func=no"
4950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4951 echo "$ac_t""yes" 1>&6
4952 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4953 cat >> confdefs.h
<<EOF
4954 #define $ac_tr_func 1
4958 echo "$ac_t""no" 1>&6
4962 for ac_func
in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4965 echo "configure:4966: checking for $ac_func" >&5
4966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4967 echo $ac_n "(cached) $ac_c" 1>&6
4969 cat > conftest.
$ac_ext <<EOF
4970 #line 4971 "configure"
4971 #include "confdefs.h"
4972 /* System header to define __stub macros and hopefully few prototypes,
4973 which can conflict with char $ac_func(); below. */
4975 /* Override any gcc2 internal prototype to avoid an error. */
4976 /* We use char because int might match the return type of a gcc2
4977 builtin and then its argument prototype would still apply. */
4982 /* The GNU C library defines this for functions which it implements
4983 to always fail with ENOSYS. Some functions are actually named
4984 something starting with __ and the normal name is an alias. */
4985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4993 if { (eval echo configure
:4994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4995 eval "ac_cv_func_$ac_func=yes"
4997 echo "configure: failed program was:" >&5
4998 cat conftest.
$ac_ext >&5
5000 eval "ac_cv_func_$ac_func=no"
5005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5006 echo "$ac_t""yes" 1>&6
5007 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5008 cat >> confdefs.h
<<EOF
5009 #define $ac_tr_func 1
5013 echo "$ac_t""no" 1>&6
5017 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5020 echo "configure:5021: checking for $ac_func" >&5
5021 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5022 echo $ac_n "(cached) $ac_c" 1>&6
5024 cat > conftest.
$ac_ext <<EOF
5025 #line 5026 "configure"
5026 #include "confdefs.h"
5027 /* System header to define __stub macros and hopefully few prototypes,
5028 which can conflict with char $ac_func(); below. */
5030 /* Override any gcc2 internal prototype to avoid an error. */
5031 /* We use char because int might match the return type of a gcc2
5032 builtin and then its argument prototype would still apply. */
5037 /* The GNU C library defines this for functions which it implements
5038 to always fail with ENOSYS. Some functions are actually named
5039 something starting with __ and the normal name is an alias. */
5040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5048 if { (eval echo configure
:5049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5050 eval "ac_cv_func_$ac_func=yes"
5052 echo "configure: failed program was:" >&5
5053 cat conftest.
$ac_ext >&5
5055 eval "ac_cv_func_$ac_func=no"
5060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5061 echo "$ac_t""yes" 1>&6
5062 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5063 cat >> confdefs.h
<<EOF
5064 #define $ac_tr_func 1
5068 echo "$ac_t""no" 1>&6
5072 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf
5074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5075 echo "configure:5076: checking for $ac_func" >&5
5076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5077 echo $ac_n "(cached) $ac_c" 1>&6
5079 cat > conftest.
$ac_ext <<EOF
5080 #line 5081 "configure"
5081 #include "confdefs.h"
5082 /* System header to define __stub macros and hopefully few prototypes,
5083 which can conflict with char $ac_func(); below. */
5085 /* Override any gcc2 internal prototype to avoid an error. */
5086 /* We use char because int might match the return type of a gcc2
5087 builtin and then its argument prototype would still apply. */
5092 /* The GNU C library defines this for functions which it implements
5093 to always fail with ENOSYS. Some functions are actually named
5094 something starting with __ and the normal name is an alias. */
5095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5103 if { (eval echo configure
:5104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5105 eval "ac_cv_func_$ac_func=yes"
5107 echo "configure: failed program was:" >&5
5108 cat conftest.
$ac_ext >&5
5110 eval "ac_cv_func_$ac_func=no"
5115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5116 echo "$ac_t""yes" 1>&6
5117 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5118 cat >> confdefs.h
<<EOF
5119 #define $ac_tr_func 1
5123 echo "$ac_t""no" 1>&6
5127 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5130 echo "configure:5131: checking for $ac_func" >&5
5131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5132 echo $ac_n "(cached) $ac_c" 1>&6
5134 cat > conftest.
$ac_ext <<EOF
5135 #line 5136 "configure"
5136 #include "confdefs.h"
5137 /* System header to define __stub macros and hopefully few prototypes,
5138 which can conflict with char $ac_func(); below. */
5140 /* Override any gcc2 internal prototype to avoid an error. */
5141 /* We use char because int might match the return type of a gcc2
5142 builtin and then its argument prototype would still apply. */
5147 /* The GNU C library defines this for functions which it implements
5148 to always fail with ENOSYS. Some functions are actually named
5149 something starting with __ and the normal name is an alias. */
5150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5158 if { (eval echo configure
:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5160 eval "ac_cv_func_$ac_func=yes"
5162 echo "configure: failed program was:" >&5
5163 cat conftest.
$ac_ext >&5
5165 eval "ac_cv_func_$ac_func=no"
5170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5171 echo "$ac_t""yes" 1>&6
5172 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5173 cat >> confdefs.h
<<EOF
5174 #define $ac_tr_func 1
5178 echo "$ac_t""no" 1>&6
5182 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5185 echo "configure:5186: checking for $ac_func" >&5
5186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5187 echo $ac_n "(cached) $ac_c" 1>&6
5189 cat > conftest.
$ac_ext <<EOF
5190 #line 5191 "configure"
5191 #include "confdefs.h"
5192 /* System header to define __stub macros and hopefully few prototypes,
5193 which can conflict with char $ac_func(); below. */
5195 /* Override any gcc2 internal prototype to avoid an error. */
5196 /* We use char because int might match the return type of a gcc2
5197 builtin and then its argument prototype would still apply. */
5202 /* The GNU C library defines this for functions which it implements
5203 to always fail with ENOSYS. Some functions are actually named
5204 something starting with __ and the normal name is an alias. */
5205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5213 if { (eval echo configure
:5214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5215 eval "ac_cv_func_$ac_func=yes"
5217 echo "configure: failed program was:" >&5
5218 cat conftest.
$ac_ext >&5
5220 eval "ac_cv_func_$ac_func=no"
5225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5226 echo "$ac_t""yes" 1>&6
5227 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5228 cat >> confdefs.h
<<EOF
5229 #define $ac_tr_func 1
5233 echo "$ac_t""no" 1>&6
5237 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam
5239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5240 echo "configure:5241: checking for $ac_func" >&5
5241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5242 echo $ac_n "(cached) $ac_c" 1>&6
5244 cat > conftest.
$ac_ext <<EOF
5245 #line 5246 "configure"
5246 #include "confdefs.h"
5247 /* System header to define __stub macros and hopefully few prototypes,
5248 which can conflict with char $ac_func(); below. */
5250 /* Override any gcc2 internal prototype to avoid an error. */
5251 /* We use char because int might match the return type of a gcc2
5252 builtin and then its argument prototype would still apply. */
5257 /* The GNU C library defines this for functions which it implements
5258 to always fail with ENOSYS. Some functions are actually named
5259 something starting with __ and the normal name is an alias. */
5260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5268 if { (eval echo configure
:5269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5270 eval "ac_cv_func_$ac_func=yes"
5272 echo "configure: failed program was:" >&5
5273 cat conftest.
$ac_ext >&5
5275 eval "ac_cv_func_$ac_func=no"
5280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5281 echo "$ac_t""yes" 1>&6
5282 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5283 cat >> confdefs.h
<<EOF
5284 #define $ac_tr_func 1
5288 echo "$ac_t""no" 1>&6
5292 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl
5294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5295 echo "configure:5296: checking for $ac_func" >&5
5296 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5297 echo $ac_n "(cached) $ac_c" 1>&6
5299 cat > conftest.
$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5302 /* System header to define __stub macros and hopefully few prototypes,
5303 which can conflict with char $ac_func(); below. */
5305 /* Override any gcc2 internal prototype to avoid an error. */
5306 /* We use char because int might match the return type of a gcc2
5307 builtin and then its argument prototype would still apply. */
5312 /* The GNU C library defines this for functions which it implements
5313 to always fail with ENOSYS. Some functions are actually named
5314 something starting with __ and the normal name is an alias. */
5315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5323 if { (eval echo configure
:5324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5325 eval "ac_cv_func_$ac_func=yes"
5327 echo "configure: failed program was:" >&5
5328 cat conftest.
$ac_ext >&5
5330 eval "ac_cv_func_$ac_func=no"
5335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5336 echo "$ac_t""yes" 1>&6
5337 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5338 cat >> confdefs.h
<<EOF
5339 #define $ac_tr_func 1
5343 echo "$ac_t""no" 1>&6
5348 # syscall() is needed for smbwrapper.
5349 for ac_func
in syscall
5351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5352 echo "configure:5353: checking for $ac_func" >&5
5353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5354 echo $ac_n "(cached) $ac_c" 1>&6
5356 cat > conftest.
$ac_ext <<EOF
5357 #line 5358 "configure"
5358 #include "confdefs.h"
5359 /* System header to define __stub macros and hopefully few prototypes,
5360 which can conflict with char $ac_func(); below. */
5362 /* Override any gcc2 internal prototype to avoid an error. */
5363 /* We use char because int might match the return type of a gcc2
5364 builtin and then its argument prototype would still apply. */
5369 /* The GNU C library defines this for functions which it implements
5370 to always fail with ENOSYS. Some functions are actually named
5371 something starting with __ and the normal name is an alias. */
5372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5380 if { (eval echo configure
:5381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5382 eval "ac_cv_func_$ac_func=yes"
5384 echo "configure: failed program was:" >&5
5385 cat conftest.
$ac_ext >&5
5387 eval "ac_cv_func_$ac_func=no"
5392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5393 echo "$ac_t""yes" 1>&6
5394 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5395 cat >> confdefs.h
<<EOF
5396 #define $ac_tr_func 1
5400 echo "$ac_t""no" 1>&6
5405 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5408 echo "configure:5409: checking for $ac_func" >&5
5409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5410 echo $ac_n "(cached) $ac_c" 1>&6
5412 cat > conftest.
$ac_ext <<EOF
5413 #line 5414 "configure"
5414 #include "confdefs.h"
5415 /* System header to define __stub macros and hopefully few prototypes,
5416 which can conflict with char $ac_func(); below. */
5418 /* Override any gcc2 internal prototype to avoid an error. */
5419 /* We use char because int might match the return type of a gcc2
5420 builtin and then its argument prototype would still apply. */
5425 /* The GNU C library defines this for functions which it implements
5426 to always fail with ENOSYS. Some functions are actually named
5427 something starting with __ and the normal name is an alias. */
5428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5436 if { (eval echo configure
:5437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5438 eval "ac_cv_func_$ac_func=yes"
5440 echo "configure: failed program was:" >&5
5441 cat conftest.
$ac_ext >&5
5443 eval "ac_cv_func_$ac_func=no"
5448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5449 echo "$ac_t""yes" 1>&6
5450 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5451 cat >> confdefs.h
<<EOF
5452 #define $ac_tr_func 1
5456 echo "$ac_t""no" 1>&6
5460 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5463 echo "configure:5464: checking for $ac_func" >&5
5464 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5465 echo $ac_n "(cached) $ac_c" 1>&6
5467 cat > conftest.
$ac_ext <<EOF
5468 #line 5469 "configure"
5469 #include "confdefs.h"
5470 /* System header to define __stub macros and hopefully few prototypes,
5471 which can conflict with char $ac_func(); below. */
5473 /* Override any gcc2 internal prototype to avoid an error. */
5474 /* We use char because int might match the return type of a gcc2
5475 builtin and then its argument prototype would still apply. */
5480 /* The GNU C library defines this for functions which it implements
5481 to always fail with ENOSYS. Some functions are actually named
5482 something starting with __ and the normal name is an alias. */
5483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5491 if { (eval echo configure
:5492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5493 eval "ac_cv_func_$ac_func=yes"
5495 echo "configure: failed program was:" >&5
5496 cat conftest.
$ac_ext >&5
5498 eval "ac_cv_func_$ac_func=no"
5503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5504 echo "$ac_t""yes" 1>&6
5505 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5506 cat >> confdefs.h
<<EOF
5507 #define $ac_tr_func 1
5511 echo "$ac_t""no" 1>&6
5515 for ac_func
in __getcwd _getcwd
5517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5518 echo "configure:5519: checking for $ac_func" >&5
5519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5520 echo $ac_n "(cached) $ac_c" 1>&6
5522 cat > conftest.
$ac_ext <<EOF
5523 #line 5524 "configure"
5524 #include "confdefs.h"
5525 /* System header to define __stub macros and hopefully few prototypes,
5526 which can conflict with char $ac_func(); below. */
5528 /* Override any gcc2 internal prototype to avoid an error. */
5529 /* We use char because int might match the return type of a gcc2
5530 builtin and then its argument prototype would still apply. */
5535 /* The GNU C library defines this for functions which it implements
5536 to always fail with ENOSYS. Some functions are actually named
5537 something starting with __ and the normal name is an alias. */
5538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5546 if { (eval echo configure
:5547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5548 eval "ac_cv_func_$ac_func=yes"
5550 echo "configure: failed program was:" >&5
5551 cat conftest.
$ac_ext >&5
5553 eval "ac_cv_func_$ac_func=no"
5558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5559 echo "$ac_t""yes" 1>&6
5560 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5561 cat >> confdefs.h
<<EOF
5562 #define $ac_tr_func 1
5566 echo "$ac_t""no" 1>&6
5570 for ac_func
in __xstat __fxstat __lxstat
5572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5573 echo "configure:5574: checking for $ac_func" >&5
5574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5575 echo $ac_n "(cached) $ac_c" 1>&6
5577 cat > conftest.
$ac_ext <<EOF
5578 #line 5579 "configure"
5579 #include "confdefs.h"
5580 /* System header to define __stub macros and hopefully few prototypes,
5581 which can conflict with char $ac_func(); below. */
5583 /* Override any gcc2 internal prototype to avoid an error. */
5584 /* We use char because int might match the return type of a gcc2
5585 builtin and then its argument prototype would still apply. */
5590 /* The GNU C library defines this for functions which it implements
5591 to always fail with ENOSYS. Some functions are actually named
5592 something starting with __ and the normal name is an alias. */
5593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5601 if { (eval echo configure
:5602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5603 eval "ac_cv_func_$ac_func=yes"
5605 echo "configure: failed program was:" >&5
5606 cat conftest.
$ac_ext >&5
5608 eval "ac_cv_func_$ac_func=no"
5613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5614 echo "$ac_t""yes" 1>&6
5615 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5616 cat >> confdefs.h
<<EOF
5617 #define $ac_tr_func 1
5621 echo "$ac_t""no" 1>&6
5625 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
5627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5628 echo "configure:5629: checking for $ac_func" >&5
5629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5630 echo $ac_n "(cached) $ac_c" 1>&6
5632 cat > conftest.
$ac_ext <<EOF
5633 #line 5634 "configure"
5634 #include "confdefs.h"
5635 /* System header to define __stub macros and hopefully few prototypes,
5636 which can conflict with char $ac_func(); below. */
5638 /* Override any gcc2 internal prototype to avoid an error. */
5639 /* We use char because int might match the return type of a gcc2
5640 builtin and then its argument prototype would still apply. */
5645 /* The GNU C library defines this for functions which it implements
5646 to always fail with ENOSYS. Some functions are actually named
5647 something starting with __ and the normal name is an alias. */
5648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5656 if { (eval echo configure
:5657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5658 eval "ac_cv_func_$ac_func=yes"
5660 echo "configure: failed program was:" >&5
5661 cat conftest.
$ac_ext >&5
5663 eval "ac_cv_func_$ac_func=no"
5668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5669 echo "$ac_t""yes" 1>&6
5670 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5671 cat >> confdefs.h
<<EOF
5672 #define $ac_tr_func 1
5676 echo "$ac_t""no" 1>&6
5680 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5683 echo "configure:5684: checking for $ac_func" >&5
5684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5685 echo $ac_n "(cached) $ac_c" 1>&6
5687 cat > conftest.
$ac_ext <<EOF
5688 #line 5689 "configure"
5689 #include "confdefs.h"
5690 /* System header to define __stub macros and hopefully few prototypes,
5691 which can conflict with char $ac_func(); below. */
5693 /* Override any gcc2 internal prototype to avoid an error. */
5694 /* We use char because int might match the return type of a gcc2
5695 builtin and then its argument prototype would still apply. */
5700 /* The GNU C library defines this for functions which it implements
5701 to always fail with ENOSYS. Some functions are actually named
5702 something starting with __ and the normal name is an alias. */
5703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5711 if { (eval echo configure
:5712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5713 eval "ac_cv_func_$ac_func=yes"
5715 echo "configure: failed program was:" >&5
5716 cat conftest.
$ac_ext >&5
5718 eval "ac_cv_func_$ac_func=no"
5723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5724 echo "$ac_t""yes" 1>&6
5725 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5726 cat >> confdefs.h
<<EOF
5727 #define $ac_tr_func 1
5731 echo "$ac_t""no" 1>&6
5735 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
5737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5738 echo "configure:5739: checking for $ac_func" >&5
5739 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5740 echo $ac_n "(cached) $ac_c" 1>&6
5742 cat > conftest.
$ac_ext <<EOF
5743 #line 5744 "configure"
5744 #include "confdefs.h"
5745 /* System header to define __stub macros and hopefully few prototypes,
5746 which can conflict with char $ac_func(); below. */
5748 /* Override any gcc2 internal prototype to avoid an error. */
5749 /* We use char because int might match the return type of a gcc2
5750 builtin and then its argument prototype would still apply. */
5755 /* The GNU C library defines this for functions which it implements
5756 to always fail with ENOSYS. Some functions are actually named
5757 something starting with __ and the normal name is an alias. */
5758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5766 if { (eval echo configure
:5767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5768 eval "ac_cv_func_$ac_func=yes"
5770 echo "configure: failed program was:" >&5
5771 cat conftest.
$ac_ext >&5
5773 eval "ac_cv_func_$ac_func=no"
5778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5779 echo "$ac_t""yes" 1>&6
5780 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5781 cat >> confdefs.h
<<EOF
5782 #define $ac_tr_func 1
5786 echo "$ac_t""no" 1>&6
5790 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
5792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5793 echo "configure:5794: checking for $ac_func" >&5
5794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5795 echo $ac_n "(cached) $ac_c" 1>&6
5797 cat > conftest.
$ac_ext <<EOF
5798 #line 5799 "configure"
5799 #include "confdefs.h"
5800 /* System header to define __stub macros and hopefully few prototypes,
5801 which can conflict with char $ac_func(); below. */
5803 /* Override any gcc2 internal prototype to avoid an error. */
5804 /* We use char because int might match the return type of a gcc2
5805 builtin and then its argument prototype would still apply. */
5810 /* The GNU C library defines this for functions which it implements
5811 to always fail with ENOSYS. Some functions are actually named
5812 something starting with __ and the normal name is an alias. */
5813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5821 if { (eval echo configure
:5822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5823 eval "ac_cv_func_$ac_func=yes"
5825 echo "configure: failed program was:" >&5
5826 cat conftest.
$ac_ext >&5
5828 eval "ac_cv_func_$ac_func=no"
5833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5834 echo "$ac_t""yes" 1>&6
5835 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5836 cat >> confdefs.h
<<EOF
5837 #define $ac_tr_func 1
5841 echo "$ac_t""no" 1>&6
5845 for ac_func
in _write __write _fork __fork
5847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5848 echo "configure:5849: checking for $ac_func" >&5
5849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5850 echo $ac_n "(cached) $ac_c" 1>&6
5852 cat > conftest.
$ac_ext <<EOF
5853 #line 5854 "configure"
5854 #include "confdefs.h"
5855 /* System header to define __stub macros and hopefully few prototypes,
5856 which can conflict with char $ac_func(); below. */
5858 /* Override any gcc2 internal prototype to avoid an error. */
5859 /* We use char because int might match the return type of a gcc2
5860 builtin and then its argument prototype would still apply. */
5865 /* The GNU C library defines this for functions which it implements
5866 to always fail with ENOSYS. Some functions are actually named
5867 something starting with __ and the normal name is an alias. */
5868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5876 if { (eval echo configure
:5877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5878 eval "ac_cv_func_$ac_func=yes"
5880 echo "configure: failed program was:" >&5
5881 cat conftest.
$ac_ext >&5
5883 eval "ac_cv_func_$ac_func=no"
5888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5889 echo "$ac_t""yes" 1>&6
5890 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5891 cat >> confdefs.h
<<EOF
5892 #define $ac_tr_func 1
5896 echo "$ac_t""no" 1>&6
5900 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
5902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5903 echo "configure:5904: checking for $ac_func" >&5
5904 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5905 echo $ac_n "(cached) $ac_c" 1>&6
5907 cat > conftest.
$ac_ext <<EOF
5908 #line 5909 "configure"
5909 #include "confdefs.h"
5910 /* System header to define __stub macros and hopefully few prototypes,
5911 which can conflict with char $ac_func(); below. */
5913 /* Override any gcc2 internal prototype to avoid an error. */
5914 /* We use char because int might match the return type of a gcc2
5915 builtin and then its argument prototype would still apply. */
5920 /* The GNU C library defines this for functions which it implements
5921 to always fail with ENOSYS. Some functions are actually named
5922 something starting with __ and the normal name is an alias. */
5923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5931 if { (eval echo configure
:5932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5933 eval "ac_cv_func_$ac_func=yes"
5935 echo "configure: failed program was:" >&5
5936 cat conftest.
$ac_ext >&5
5938 eval "ac_cv_func_$ac_func=no"
5943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5944 echo "$ac_t""yes" 1>&6
5945 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5946 cat >> confdefs.h
<<EOF
5947 #define $ac_tr_func 1
5951 echo "$ac_t""no" 1>&6
5955 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5957 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5958 echo "configure:5959: checking for $ac_func" >&5
5959 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5960 echo $ac_n "(cached) $ac_c" 1>&6
5962 cat > conftest.
$ac_ext <<EOF
5963 #line 5964 "configure"
5964 #include "confdefs.h"
5965 /* System header to define __stub macros and hopefully few prototypes,
5966 which can conflict with char $ac_func(); below. */
5968 /* Override any gcc2 internal prototype to avoid an error. */
5969 /* We use char because int might match the return type of a gcc2
5970 builtin and then its argument prototype would still apply. */
5975 /* The GNU C library defines this for functions which it implements
5976 to always fail with ENOSYS. Some functions are actually named
5977 something starting with __ and the normal name is an alias. */
5978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5986 if { (eval echo configure
:5987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5988 eval "ac_cv_func_$ac_func=yes"
5990 echo "configure: failed program was:" >&5
5991 cat conftest.
$ac_ext >&5
5993 eval "ac_cv_func_$ac_func=no"
5998 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5999 echo "$ac_t""yes" 1>&6
6000 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6001 cat >> confdefs.h
<<EOF
6002 #define $ac_tr_func 1
6006 echo "$ac_t""no" 1>&6
6010 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6013 echo "configure:6014: checking for $ac_func" >&5
6014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6015 echo $ac_n "(cached) $ac_c" 1>&6
6017 cat > conftest.
$ac_ext <<EOF
6018 #line 6019 "configure"
6019 #include "confdefs.h"
6020 /* System header to define __stub macros and hopefully few prototypes,
6021 which can conflict with char $ac_func(); below. */
6023 /* Override any gcc2 internal prototype to avoid an error. */
6024 /* We use char because int might match the return type of a gcc2
6025 builtin and then its argument prototype would still apply. */
6030 /* The GNU C library defines this for functions which it implements
6031 to always fail with ENOSYS. Some functions are actually named
6032 something starting with __ and the normal name is an alias. */
6033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6041 if { (eval echo configure
:6042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6043 eval "ac_cv_func_$ac_func=yes"
6045 echo "configure: failed program was:" >&5
6046 cat conftest.
$ac_ext >&5
6048 eval "ac_cv_func_$ac_func=no"
6053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6054 echo "$ac_t""yes" 1>&6
6055 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6056 cat >> confdefs.h
<<EOF
6057 #define $ac_tr_func 1
6061 echo "$ac_t""no" 1>&6
6065 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6068 echo "configure:6069: checking for $ac_func" >&5
6069 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6070 echo $ac_n "(cached) $ac_c" 1>&6
6072 cat > conftest.
$ac_ext <<EOF
6073 #line 6074 "configure"
6074 #include "confdefs.h"
6075 /* System header to define __stub macros and hopefully few prototypes,
6076 which can conflict with char $ac_func(); below. */
6078 /* Override any gcc2 internal prototype to avoid an error. */
6079 /* We use char because int might match the return type of a gcc2
6080 builtin and then its argument prototype would still apply. */
6085 /* The GNU C library defines this for functions which it implements
6086 to always fail with ENOSYS. Some functions are actually named
6087 something starting with __ and the normal name is an alias. */
6088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6096 if { (eval echo configure
:6097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6098 eval "ac_cv_func_$ac_func=yes"
6100 echo "configure: failed program was:" >&5
6101 cat conftest.
$ac_ext >&5
6103 eval "ac_cv_func_$ac_func=no"
6108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6109 echo "$ac_t""yes" 1>&6
6110 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6111 cat >> confdefs.h
<<EOF
6112 #define $ac_tr_func 1
6116 echo "$ac_t""no" 1>&6
6120 for ac_func
in open64 _open64 __open64 creat64
6122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6123 echo "configure:6124: checking for $ac_func" >&5
6124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6125 echo $ac_n "(cached) $ac_c" 1>&6
6127 cat > conftest.
$ac_ext <<EOF
6128 #line 6129 "configure"
6129 #include "confdefs.h"
6130 /* System header to define __stub macros and hopefully few prototypes,
6131 which can conflict with char $ac_func(); below. */
6133 /* Override any gcc2 internal prototype to avoid an error. */
6134 /* We use char because int might match the return type of a gcc2
6135 builtin and then its argument prototype would still apply. */
6140 /* The GNU C library defines this for functions which it implements
6141 to always fail with ENOSYS. Some functions are actually named
6142 something starting with __ and the normal name is an alias. */
6143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6151 if { (eval echo configure
:6152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6153 eval "ac_cv_func_$ac_func=yes"
6155 echo "configure: failed program was:" >&5
6156 cat conftest.
$ac_ext >&5
6158 eval "ac_cv_func_$ac_func=no"
6163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6164 echo "$ac_t""yes" 1>&6
6165 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6166 cat >> confdefs.h
<<EOF
6167 #define $ac_tr_func 1
6171 echo "$ac_t""no" 1>&6
6177 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6180 if test x
$ac_cv_func_stat64 = xno
; then
6181 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6182 echo "configure:6183: checking for stat64 in <sys/stat.h>" >&5
6183 cat > conftest.
$ac_ext <<EOF
6184 #line 6185 "configure"
6185 #include "confdefs.h"
6187 #if defined(HAVE_UNISTD_H)
6190 #include <sys/stat.h>
6193 struct stat64 st64; exit(stat64(".",&st64));
6196 if { (eval echo configure
:6197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6198 ac_cv_func_stat64
=yes
6200 echo "configure: failed program was:" >&5
6201 cat conftest.
$ac_ext >&5
6204 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6205 if test x
$ac_cv_func_stat64 = xyes
; then
6206 cat >> confdefs.h
<<\EOF
6207 #define HAVE_STAT64 1
6213 if test x
$ac_cv_func_lstat64 = xno
; then
6214 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6215 echo "configure:6216: checking for lstat64 in <sys/stat.h>" >&5
6216 cat > conftest.
$ac_ext <<EOF
6217 #line 6218 "configure"
6218 #include "confdefs.h"
6220 #if defined(HAVE_UNISTD_H)
6223 #include <sys/stat.h>
6226 struct stat64 st64; exit(lstat64(".",&st64));
6229 if { (eval echo configure
:6230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6231 ac_cv_func_lstat64
=yes
6233 echo "configure: failed program was:" >&5
6234 cat conftest.
$ac_ext >&5
6237 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6238 if test x
$ac_cv_func_lstat64 = xyes
; then
6239 cat >> confdefs.h
<<\EOF
6240 #define HAVE_LSTAT64 1
6246 if test x
$ac_cv_func_fstat64 = xno
; then
6247 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6248 echo "configure:6249: checking for fstat64 in <sys/stat.h>" >&5
6249 cat > conftest.
$ac_ext <<EOF
6250 #line 6251 "configure"
6251 #include "confdefs.h"
6253 #if defined(HAVE_UNISTD_H)
6256 #include <sys/stat.h>
6259 struct stat64 st64; exit(fstat64(0,&st64));
6262 if { (eval echo configure
:6263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6264 ac_cv_func_fstat64
=yes
6266 echo "configure: failed program was:" >&5
6267 cat conftest.
$ac_ext >&5
6270 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6271 if test x
$ac_cv_func_fstat64 = xyes
; then
6272 cat >> confdefs.h
<<\EOF
6273 #define HAVE_FSTAT64 1
6280 # If no strcasecmp, check for it in some known places
6281 # It is in -lresolv on ReliantUNIX and UnixWare
6282 # -lresolve *must* follow -lnsl for name resolution to work properly
6285 if test x
$ac_cv_func_strcasecmp = xno
; then
6286 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6287 echo "configure:6288: checking for strcasecmp in -lresolv" >&5
6288 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6290 echo $ac_n "(cached) $ac_c" 1>&6
6292 ac_save_LIBS
="$LIBS"
6293 LIBS
="-lresolv $LIBS"
6294 cat > conftest.
$ac_ext <<EOF
6295 #line 6296 "configure"
6296 #include "confdefs.h"
6297 /* Override any gcc2 internal prototype to avoid an error. */
6298 /* We use char because int might match the return type of a gcc2
6299 builtin and then its argument prototype would still apply. */
6306 if { (eval echo configure
:6307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6308 eval "ac_cv_lib_$ac_lib_var=yes"
6310 echo "configure: failed program was:" >&5
6311 cat conftest.
$ac_ext >&5
6313 eval "ac_cv_lib_$ac_lib_var=no"
6316 LIBS
="$ac_save_LIBS"
6319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6320 echo "$ac_t""yes" 1>&6
6321 LIBS
="$LIBS -lresolv"
6322 cat >> confdefs.h
<<\EOF
6323 #define HAVE_STRCASECMP 1
6327 echo "$ac_t""no" 1>&6
6333 # Check for the functions putprpwnam, set_auth_parameters,
6334 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6335 # Needed for OSF1 and HPUX.
6339 *-lsecurity*) for ac_func
in putprpwnam
6341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6342 echo "configure:6343: checking for $ac_func" >&5
6343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6344 echo $ac_n "(cached) $ac_c" 1>&6
6346 cat > conftest.
$ac_ext <<EOF
6347 #line 6348 "configure"
6348 #include "confdefs.h"
6349 /* System header to define __stub macros and hopefully few prototypes,
6350 which can conflict with char $ac_func(); below. */
6352 /* Override any gcc2 internal prototype to avoid an error. */
6353 /* We use char because int might match the return type of a gcc2
6354 builtin and then its argument prototype would still apply. */
6359 /* The GNU C library defines this for functions which it implements
6360 to always fail with ENOSYS. Some functions are actually named
6361 something starting with __ and the normal name is an alias. */
6362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6370 if { (eval echo configure
:6371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6372 eval "ac_cv_func_$ac_func=yes"
6374 echo "configure: failed program was:" >&5
6375 cat conftest.
$ac_ext >&5
6377 eval "ac_cv_func_$ac_func=no"
6382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6383 echo "$ac_t""yes" 1>&6
6384 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6385 cat >> confdefs.h
<<EOF
6386 #define $ac_tr_func 1
6390 echo "$ac_t""no" 1>&6
6394 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6395 echo "configure:6396: checking for putprpwnam in -lsecurity" >&5
6396 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6398 echo $ac_n "(cached) $ac_c" 1>&6
6400 ac_save_LIBS
="$LIBS"
6401 LIBS
="-lsecurity $LIBS"
6402 cat > conftest.
$ac_ext <<EOF
6403 #line 6404 "configure"
6404 #include "confdefs.h"
6405 /* Override any gcc2 internal prototype to avoid an error. */
6406 /* We use char because int might match the return type of a gcc2
6407 builtin and then its argument prototype would still apply. */
6414 if { (eval echo configure
:6415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6416 eval "ac_cv_lib_$ac_lib_var=yes"
6418 echo "configure: failed program was:" >&5
6419 cat conftest.
$ac_ext >&5
6421 eval "ac_cv_lib_$ac_lib_var=no"
6424 LIBS
="$ac_save_LIBS"
6427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6428 echo "$ac_t""yes" 1>&6
6429 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6430 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6431 cat >> confdefs.h
<<EOF
6432 #define $ac_tr_lib 1
6435 LIBS
="-lsecurity $LIBS"
6438 echo "$ac_t""no" 1>&6
6441 for ac_func
in putprpwnam
6443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6444 echo "configure:6445: checking for $ac_func" >&5
6445 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6446 echo $ac_n "(cached) $ac_c" 1>&6
6448 cat > conftest.
$ac_ext <<EOF
6449 #line 6450 "configure"
6450 #include "confdefs.h"
6451 /* System header to define __stub macros and hopefully few prototypes,
6452 which can conflict with char $ac_func(); below. */
6454 /* Override any gcc2 internal prototype to avoid an error. */
6455 /* We use char because int might match the return type of a gcc2
6456 builtin and then its argument prototype would still apply. */
6461 /* The GNU C library defines this for functions which it implements
6462 to always fail with ENOSYS. Some functions are actually named
6463 something starting with __ and the normal name is an alias. */
6464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6472 if { (eval echo configure
:6473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6474 eval "ac_cv_func_$ac_func=yes"
6476 echo "configure: failed program was:" >&5
6477 cat conftest.
$ac_ext >&5
6479 eval "ac_cv_func_$ac_func=no"
6484 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6485 echo "$ac_t""yes" 1>&6
6486 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6487 cat >> confdefs.h
<<EOF
6488 #define $ac_tr_func 1
6492 echo "$ac_t""no" 1>&6
6500 *-lsec*) for ac_func
in putprpwnam
6502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6503 echo "configure:6504: checking for $ac_func" >&5
6504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6505 echo $ac_n "(cached) $ac_c" 1>&6
6507 cat > conftest.
$ac_ext <<EOF
6508 #line 6509 "configure"
6509 #include "confdefs.h"
6510 /* System header to define __stub macros and hopefully few prototypes,
6511 which can conflict with char $ac_func(); below. */
6513 /* Override any gcc2 internal prototype to avoid an error. */
6514 /* We use char because int might match the return type of a gcc2
6515 builtin and then its argument prototype would still apply. */
6520 /* The GNU C library defines this for functions which it implements
6521 to always fail with ENOSYS. Some functions are actually named
6522 something starting with __ and the normal name is an alias. */
6523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6531 if { (eval echo configure
:6532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6533 eval "ac_cv_func_$ac_func=yes"
6535 echo "configure: failed program was:" >&5
6536 cat conftest.
$ac_ext >&5
6538 eval "ac_cv_func_$ac_func=no"
6543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6544 echo "$ac_t""yes" 1>&6
6545 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6546 cat >> confdefs.h
<<EOF
6547 #define $ac_tr_func 1
6551 echo "$ac_t""no" 1>&6
6555 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6556 echo "configure:6557: checking for putprpwnam in -lsec" >&5
6557 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6558 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6559 echo $ac_n "(cached) $ac_c" 1>&6
6561 ac_save_LIBS
="$LIBS"
6563 cat > conftest.
$ac_ext <<EOF
6564 #line 6565 "configure"
6565 #include "confdefs.h"
6566 /* Override any gcc2 internal prototype to avoid an error. */
6567 /* We use char because int might match the return type of a gcc2
6568 builtin and then its argument prototype would still apply. */
6575 if { (eval echo configure
:6576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6577 eval "ac_cv_lib_$ac_lib_var=yes"
6579 echo "configure: failed program was:" >&5
6580 cat conftest.
$ac_ext >&5
6582 eval "ac_cv_lib_$ac_lib_var=no"
6585 LIBS
="$ac_save_LIBS"
6588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6589 echo "$ac_t""yes" 1>&6
6590 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6591 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6592 cat >> confdefs.h
<<EOF
6593 #define $ac_tr_lib 1
6599 echo "$ac_t""no" 1>&6
6602 for ac_func
in putprpwnam
6604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6605 echo "configure:6606: checking for $ac_func" >&5
6606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6607 echo $ac_n "(cached) $ac_c" 1>&6
6609 cat > conftest.
$ac_ext <<EOF
6610 #line 6611 "configure"
6611 #include "confdefs.h"
6612 /* System header to define __stub macros and hopefully few prototypes,
6613 which can conflict with char $ac_func(); below. */
6615 /* Override any gcc2 internal prototype to avoid an error. */
6616 /* We use char because int might match the return type of a gcc2
6617 builtin and then its argument prototype would still apply. */
6622 /* The GNU C library defines this for functions which it implements
6623 to always fail with ENOSYS. Some functions are actually named
6624 something starting with __ and the normal name is an alias. */
6625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6633 if { (eval echo configure
:6634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6635 eval "ac_cv_func_$ac_func=yes"
6637 echo "configure: failed program was:" >&5
6638 cat conftest.
$ac_ext >&5
6640 eval "ac_cv_func_$ac_func=no"
6645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6646 echo "$ac_t""yes" 1>&6
6647 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6648 cat >> confdefs.h
<<EOF
6649 #define $ac_tr_func 1
6653 echo "$ac_t""no" 1>&6
6662 *-lsecurity*) for ac_func
in set_auth_parameters
6664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6665 echo "configure:6666: checking for $ac_func" >&5
6666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6667 echo $ac_n "(cached) $ac_c" 1>&6
6669 cat > conftest.
$ac_ext <<EOF
6670 #line 6671 "configure"
6671 #include "confdefs.h"
6672 /* System header to define __stub macros and hopefully few prototypes,
6673 which can conflict with char $ac_func(); below. */
6675 /* Override any gcc2 internal prototype to avoid an error. */
6676 /* We use char because int might match the return type of a gcc2
6677 builtin and then its argument prototype would still apply. */
6682 /* The GNU C library defines this for functions which it implements
6683 to always fail with ENOSYS. Some functions are actually named
6684 something starting with __ and the normal name is an alias. */
6685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6693 if { (eval echo configure
:6694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6695 eval "ac_cv_func_$ac_func=yes"
6697 echo "configure: failed program was:" >&5
6698 cat conftest.
$ac_ext >&5
6700 eval "ac_cv_func_$ac_func=no"
6705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6706 echo "$ac_t""yes" 1>&6
6707 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6708 cat >> confdefs.h
<<EOF
6709 #define $ac_tr_func 1
6713 echo "$ac_t""no" 1>&6
6717 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6718 echo "configure:6719: checking for set_auth_parameters in -lsecurity" >&5
6719 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6721 echo $ac_n "(cached) $ac_c" 1>&6
6723 ac_save_LIBS
="$LIBS"
6724 LIBS
="-lsecurity $LIBS"
6725 cat > conftest.
$ac_ext <<EOF
6726 #line 6727 "configure"
6727 #include "confdefs.h"
6728 /* Override any gcc2 internal prototype to avoid an error. */
6729 /* We use char because int might match the return type of a gcc2
6730 builtin and then its argument prototype would still apply. */
6731 char set_auth_parameters();
6734 set_auth_parameters()
6737 if { (eval echo configure
:6738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6739 eval "ac_cv_lib_$ac_lib_var=yes"
6741 echo "configure: failed program was:" >&5
6742 cat conftest.
$ac_ext >&5
6744 eval "ac_cv_lib_$ac_lib_var=no"
6747 LIBS
="$ac_save_LIBS"
6750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6751 echo "$ac_t""yes" 1>&6
6752 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6753 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6754 cat >> confdefs.h
<<EOF
6755 #define $ac_tr_lib 1
6758 LIBS
="-lsecurity $LIBS"
6761 echo "$ac_t""no" 1>&6
6764 for ac_func
in set_auth_parameters
6766 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6767 echo "configure:6768: checking for $ac_func" >&5
6768 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6769 echo $ac_n "(cached) $ac_c" 1>&6
6771 cat > conftest.
$ac_ext <<EOF
6772 #line 6773 "configure"
6773 #include "confdefs.h"
6774 /* System header to define __stub macros and hopefully few prototypes,
6775 which can conflict with char $ac_func(); below. */
6777 /* Override any gcc2 internal prototype to avoid an error. */
6778 /* We use char because int might match the return type of a gcc2
6779 builtin and then its argument prototype would still apply. */
6784 /* The GNU C library defines this for functions which it implements
6785 to always fail with ENOSYS. Some functions are actually named
6786 something starting with __ and the normal name is an alias. */
6787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6795 if { (eval echo configure
:6796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6797 eval "ac_cv_func_$ac_func=yes"
6799 echo "configure: failed program was:" >&5
6800 cat conftest.
$ac_ext >&5
6802 eval "ac_cv_func_$ac_func=no"
6807 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6808 echo "$ac_t""yes" 1>&6
6809 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6810 cat >> confdefs.h
<<EOF
6811 #define $ac_tr_func 1
6815 echo "$ac_t""no" 1>&6
6823 *-lsec*) for ac_func
in set_auth_parameters
6825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6826 echo "configure:6827: checking for $ac_func" >&5
6827 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6828 echo $ac_n "(cached) $ac_c" 1>&6
6830 cat > conftest.
$ac_ext <<EOF
6831 #line 6832 "configure"
6832 #include "confdefs.h"
6833 /* System header to define __stub macros and hopefully few prototypes,
6834 which can conflict with char $ac_func(); below. */
6836 /* Override any gcc2 internal prototype to avoid an error. */
6837 /* We use char because int might match the return type of a gcc2
6838 builtin and then its argument prototype would still apply. */
6843 /* The GNU C library defines this for functions which it implements
6844 to always fail with ENOSYS. Some functions are actually named
6845 something starting with __ and the normal name is an alias. */
6846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6854 if { (eval echo configure
:6855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6856 eval "ac_cv_func_$ac_func=yes"
6858 echo "configure: failed program was:" >&5
6859 cat conftest.
$ac_ext >&5
6861 eval "ac_cv_func_$ac_func=no"
6866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6867 echo "$ac_t""yes" 1>&6
6868 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6869 cat >> confdefs.h
<<EOF
6870 #define $ac_tr_func 1
6874 echo "$ac_t""no" 1>&6
6878 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6879 echo "configure:6880: checking for set_auth_parameters in -lsec" >&5
6880 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6881 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6882 echo $ac_n "(cached) $ac_c" 1>&6
6884 ac_save_LIBS
="$LIBS"
6886 cat > conftest.
$ac_ext <<EOF
6887 #line 6888 "configure"
6888 #include "confdefs.h"
6889 /* Override any gcc2 internal prototype to avoid an error. */
6890 /* We use char because int might match the return type of a gcc2
6891 builtin and then its argument prototype would still apply. */
6892 char set_auth_parameters();
6895 set_auth_parameters()
6898 if { (eval echo configure
:6899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6900 eval "ac_cv_lib_$ac_lib_var=yes"
6902 echo "configure: failed program was:" >&5
6903 cat conftest.
$ac_ext >&5
6905 eval "ac_cv_lib_$ac_lib_var=no"
6908 LIBS
="$ac_save_LIBS"
6911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6912 echo "$ac_t""yes" 1>&6
6913 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6914 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6915 cat >> confdefs.h
<<EOF
6916 #define $ac_tr_lib 1
6922 echo "$ac_t""no" 1>&6
6925 for ac_func
in set_auth_parameters
6927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6928 echo "configure:6929: checking for $ac_func" >&5
6929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6930 echo $ac_n "(cached) $ac_c" 1>&6
6932 cat > conftest.
$ac_ext <<EOF
6933 #line 6934 "configure"
6934 #include "confdefs.h"
6935 /* System header to define __stub macros and hopefully few prototypes,
6936 which can conflict with char $ac_func(); below. */
6938 /* Override any gcc2 internal prototype to avoid an error. */
6939 /* We use char because int might match the return type of a gcc2
6940 builtin and then its argument prototype would still apply. */
6945 /* The GNU C library defines this for functions which it implements
6946 to always fail with ENOSYS. Some functions are actually named
6947 something starting with __ and the normal name is an alias. */
6948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6956 if { (eval echo configure
:6957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6958 eval "ac_cv_func_$ac_func=yes"
6960 echo "configure: failed program was:" >&5
6961 cat conftest.
$ac_ext >&5
6963 eval "ac_cv_func_$ac_func=no"
6968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6969 echo "$ac_t""yes" 1>&6
6970 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6971 cat >> confdefs.h
<<EOF
6972 #define $ac_tr_func 1
6976 echo "$ac_t""no" 1>&6
6984 # UnixWare 7.x has its getspnam in -lgen
6986 *-lgen*) for ac_func
in getspnam
6988 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6989 echo "configure:6990: checking for $ac_func" >&5
6990 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6991 echo $ac_n "(cached) $ac_c" 1>&6
6993 cat > conftest.
$ac_ext <<EOF
6994 #line 6995 "configure"
6995 #include "confdefs.h"
6996 /* System header to define __stub macros and hopefully few prototypes,
6997 which can conflict with char $ac_func(); below. */
6999 /* Override any gcc2 internal prototype to avoid an error. */
7000 /* We use char because int might match the return type of a gcc2
7001 builtin and then its argument prototype would still apply. */
7006 /* The GNU C library defines this for functions which it implements
7007 to always fail with ENOSYS. Some functions are actually named
7008 something starting with __ and the normal name is an alias. */
7009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7017 if { (eval echo configure
:7018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7019 eval "ac_cv_func_$ac_func=yes"
7021 echo "configure: failed program was:" >&5
7022 cat conftest.
$ac_ext >&5
7024 eval "ac_cv_func_$ac_func=no"
7029 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7030 echo "$ac_t""yes" 1>&6
7031 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7032 cat >> confdefs.h
<<EOF
7033 #define $ac_tr_func 1
7037 echo "$ac_t""no" 1>&6
7041 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7042 echo "configure:7043: checking for getspnam in -lgen" >&5
7043 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7045 echo $ac_n "(cached) $ac_c" 1>&6
7047 ac_save_LIBS
="$LIBS"
7049 cat > conftest.
$ac_ext <<EOF
7050 #line 7051 "configure"
7051 #include "confdefs.h"
7052 /* Override any gcc2 internal prototype to avoid an error. */
7053 /* We use char because int might match the return type of a gcc2
7054 builtin and then its argument prototype would still apply. */
7061 if { (eval echo configure
:7062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7063 eval "ac_cv_lib_$ac_lib_var=yes"
7065 echo "configure: failed program was:" >&5
7066 cat conftest.
$ac_ext >&5
7068 eval "ac_cv_lib_$ac_lib_var=no"
7071 LIBS
="$ac_save_LIBS"
7074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7075 echo "$ac_t""yes" 1>&6
7076 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7077 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7078 cat >> confdefs.h
<<EOF
7079 #define $ac_tr_lib 1
7085 echo "$ac_t""no" 1>&6
7088 for ac_func
in getspnam
7090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7091 echo "configure:7092: checking for $ac_func" >&5
7092 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7093 echo $ac_n "(cached) $ac_c" 1>&6
7095 cat > conftest.
$ac_ext <<EOF
7096 #line 7097 "configure"
7097 #include "confdefs.h"
7098 /* System header to define __stub macros and hopefully few prototypes,
7099 which can conflict with char $ac_func(); below. */
7101 /* Override any gcc2 internal prototype to avoid an error. */
7102 /* We use char because int might match the return type of a gcc2
7103 builtin and then its argument prototype would still apply. */
7108 /* The GNU C library defines this for functions which it implements
7109 to always fail with ENOSYS. Some functions are actually named
7110 something starting with __ and the normal name is an alias. */
7111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7119 if { (eval echo configure
:7120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7121 eval "ac_cv_func_$ac_func=yes"
7123 echo "configure: failed program was:" >&5
7124 cat conftest.
$ac_ext >&5
7126 eval "ac_cv_func_$ac_func=no"
7131 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7132 echo "$ac_t""yes" 1>&6
7133 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7134 cat >> confdefs.h
<<EOF
7135 #define $ac_tr_func 1
7139 echo "$ac_t""no" 1>&6
7148 *-lsecurity*) for ac_func
in getspnam
7150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7151 echo "configure:7152: checking for $ac_func" >&5
7152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7153 echo $ac_n "(cached) $ac_c" 1>&6
7155 cat > conftest.
$ac_ext <<EOF
7156 #line 7157 "configure"
7157 #include "confdefs.h"
7158 /* System header to define __stub macros and hopefully few prototypes,
7159 which can conflict with char $ac_func(); below. */
7161 /* Override any gcc2 internal prototype to avoid an error. */
7162 /* We use char because int might match the return type of a gcc2
7163 builtin and then its argument prototype would still apply. */
7168 /* The GNU C library defines this for functions which it implements
7169 to always fail with ENOSYS. Some functions are actually named
7170 something starting with __ and the normal name is an alias. */
7171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7179 if { (eval echo configure
:7180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7181 eval "ac_cv_func_$ac_func=yes"
7183 echo "configure: failed program was:" >&5
7184 cat conftest.
$ac_ext >&5
7186 eval "ac_cv_func_$ac_func=no"
7191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7192 echo "$ac_t""yes" 1>&6
7193 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7194 cat >> confdefs.h
<<EOF
7195 #define $ac_tr_func 1
7199 echo "$ac_t""no" 1>&6
7203 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7204 echo "configure:7205: checking for getspnam in -lsecurity" >&5
7205 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7207 echo $ac_n "(cached) $ac_c" 1>&6
7209 ac_save_LIBS
="$LIBS"
7210 LIBS
="-lsecurity $LIBS"
7211 cat > conftest.
$ac_ext <<EOF
7212 #line 7213 "configure"
7213 #include "confdefs.h"
7214 /* Override any gcc2 internal prototype to avoid an error. */
7215 /* We use char because int might match the return type of a gcc2
7216 builtin and then its argument prototype would still apply. */
7223 if { (eval echo configure
:7224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7225 eval "ac_cv_lib_$ac_lib_var=yes"
7227 echo "configure: failed program was:" >&5
7228 cat conftest.
$ac_ext >&5
7230 eval "ac_cv_lib_$ac_lib_var=no"
7233 LIBS
="$ac_save_LIBS"
7236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7237 echo "$ac_t""yes" 1>&6
7238 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7239 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7240 cat >> confdefs.h
<<EOF
7241 #define $ac_tr_lib 1
7244 LIBS
="-lsecurity $LIBS"
7247 echo "$ac_t""no" 1>&6
7250 for ac_func
in getspnam
7252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7253 echo "configure:7254: checking for $ac_func" >&5
7254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7255 echo $ac_n "(cached) $ac_c" 1>&6
7257 cat > conftest.
$ac_ext <<EOF
7258 #line 7259 "configure"
7259 #include "confdefs.h"
7260 /* System header to define __stub macros and hopefully few prototypes,
7261 which can conflict with char $ac_func(); below. */
7263 /* Override any gcc2 internal prototype to avoid an error. */
7264 /* We use char because int might match the return type of a gcc2
7265 builtin and then its argument prototype would still apply. */
7270 /* The GNU C library defines this for functions which it implements
7271 to always fail with ENOSYS. Some functions are actually named
7272 something starting with __ and the normal name is an alias. */
7273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7281 if { (eval echo configure
:7282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7283 eval "ac_cv_func_$ac_func=yes"
7285 echo "configure: failed program was:" >&5
7286 cat conftest.
$ac_ext >&5
7288 eval "ac_cv_func_$ac_func=no"
7293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7294 echo "$ac_t""yes" 1>&6
7295 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7296 cat >> confdefs.h
<<EOF
7297 #define $ac_tr_func 1
7301 echo "$ac_t""no" 1>&6
7309 *-lsec*) for ac_func
in getspnam
7311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7312 echo "configure:7313: checking for $ac_func" >&5
7313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7314 echo $ac_n "(cached) $ac_c" 1>&6
7316 cat > conftest.
$ac_ext <<EOF
7317 #line 7318 "configure"
7318 #include "confdefs.h"
7319 /* System header to define __stub macros and hopefully few prototypes,
7320 which can conflict with char $ac_func(); below. */
7322 /* Override any gcc2 internal prototype to avoid an error. */
7323 /* We use char because int might match the return type of a gcc2
7324 builtin and then its argument prototype would still apply. */
7329 /* The GNU C library defines this for functions which it implements
7330 to always fail with ENOSYS. Some functions are actually named
7331 something starting with __ and the normal name is an alias. */
7332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7340 if { (eval echo configure
:7341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7342 eval "ac_cv_func_$ac_func=yes"
7344 echo "configure: failed program was:" >&5
7345 cat conftest.
$ac_ext >&5
7347 eval "ac_cv_func_$ac_func=no"
7352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7353 echo "$ac_t""yes" 1>&6
7354 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7355 cat >> confdefs.h
<<EOF
7356 #define $ac_tr_func 1
7360 echo "$ac_t""no" 1>&6
7364 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7365 echo "configure:7366: checking for getspnam in -lsec" >&5
7366 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7368 echo $ac_n "(cached) $ac_c" 1>&6
7370 ac_save_LIBS
="$LIBS"
7372 cat > conftest.
$ac_ext <<EOF
7373 #line 7374 "configure"
7374 #include "confdefs.h"
7375 /* Override any gcc2 internal prototype to avoid an error. */
7376 /* We use char because int might match the return type of a gcc2
7377 builtin and then its argument prototype would still apply. */
7384 if { (eval echo configure
:7385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7386 eval "ac_cv_lib_$ac_lib_var=yes"
7388 echo "configure: failed program was:" >&5
7389 cat conftest.
$ac_ext >&5
7391 eval "ac_cv_lib_$ac_lib_var=no"
7394 LIBS
="$ac_save_LIBS"
7397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7398 echo "$ac_t""yes" 1>&6
7399 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7400 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7401 cat >> confdefs.h
<<EOF
7402 #define $ac_tr_lib 1
7408 echo "$ac_t""no" 1>&6
7411 for ac_func
in getspnam
7413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7414 echo "configure:7415: checking for $ac_func" >&5
7415 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7416 echo $ac_n "(cached) $ac_c" 1>&6
7418 cat > conftest.
$ac_ext <<EOF
7419 #line 7420 "configure"
7420 #include "confdefs.h"
7421 /* System header to define __stub macros and hopefully few prototypes,
7422 which can conflict with char $ac_func(); below. */
7424 /* Override any gcc2 internal prototype to avoid an error. */
7425 /* We use char because int might match the return type of a gcc2
7426 builtin and then its argument prototype would still apply. */
7431 /* The GNU C library defines this for functions which it implements
7432 to always fail with ENOSYS. Some functions are actually named
7433 something starting with __ and the normal name is an alias. */
7434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7442 if { (eval echo configure
:7443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7444 eval "ac_cv_func_$ac_func=yes"
7446 echo "configure: failed program was:" >&5
7447 cat conftest.
$ac_ext >&5
7449 eval "ac_cv_func_$ac_func=no"
7454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7455 echo "$ac_t""yes" 1>&6
7456 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7457 cat >> confdefs.h
<<EOF
7458 #define $ac_tr_func 1
7462 echo "$ac_t""no" 1>&6
7471 *-lsecurity*) for ac_func
in bigcrypt
7473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7474 echo "configure:7475: checking for $ac_func" >&5
7475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7476 echo $ac_n "(cached) $ac_c" 1>&6
7478 cat > conftest.
$ac_ext <<EOF
7479 #line 7480 "configure"
7480 #include "confdefs.h"
7481 /* System header to define __stub macros and hopefully few prototypes,
7482 which can conflict with char $ac_func(); below. */
7484 /* Override any gcc2 internal prototype to avoid an error. */
7485 /* We use char because int might match the return type of a gcc2
7486 builtin and then its argument prototype would still apply. */
7491 /* The GNU C library defines this for functions which it implements
7492 to always fail with ENOSYS. Some functions are actually named
7493 something starting with __ and the normal name is an alias. */
7494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7502 if { (eval echo configure
:7503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7504 eval "ac_cv_func_$ac_func=yes"
7506 echo "configure: failed program was:" >&5
7507 cat conftest.
$ac_ext >&5
7509 eval "ac_cv_func_$ac_func=no"
7514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7515 echo "$ac_t""yes" 1>&6
7516 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7517 cat >> confdefs.h
<<EOF
7518 #define $ac_tr_func 1
7522 echo "$ac_t""no" 1>&6
7526 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7527 echo "configure:7528: checking for bigcrypt in -lsecurity" >&5
7528 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7530 echo $ac_n "(cached) $ac_c" 1>&6
7532 ac_save_LIBS
="$LIBS"
7533 LIBS
="-lsecurity $LIBS"
7534 cat > conftest.
$ac_ext <<EOF
7535 #line 7536 "configure"
7536 #include "confdefs.h"
7537 /* Override any gcc2 internal prototype to avoid an error. */
7538 /* We use char because int might match the return type of a gcc2
7539 builtin and then its argument prototype would still apply. */
7546 if { (eval echo configure
:7547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7548 eval "ac_cv_lib_$ac_lib_var=yes"
7550 echo "configure: failed program was:" >&5
7551 cat conftest.
$ac_ext >&5
7553 eval "ac_cv_lib_$ac_lib_var=no"
7556 LIBS
="$ac_save_LIBS"
7559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7560 echo "$ac_t""yes" 1>&6
7561 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7562 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7563 cat >> confdefs.h
<<EOF
7564 #define $ac_tr_lib 1
7567 LIBS
="-lsecurity $LIBS"
7570 echo "$ac_t""no" 1>&6
7573 for ac_func
in bigcrypt
7575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7576 echo "configure:7577: checking for $ac_func" >&5
7577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7578 echo $ac_n "(cached) $ac_c" 1>&6
7580 cat > conftest.
$ac_ext <<EOF
7581 #line 7582 "configure"
7582 #include "confdefs.h"
7583 /* System header to define __stub macros and hopefully few prototypes,
7584 which can conflict with char $ac_func(); below. */
7586 /* Override any gcc2 internal prototype to avoid an error. */
7587 /* We use char because int might match the return type of a gcc2
7588 builtin and then its argument prototype would still apply. */
7593 /* The GNU C library defines this for functions which it implements
7594 to always fail with ENOSYS. Some functions are actually named
7595 something starting with __ and the normal name is an alias. */
7596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7604 if { (eval echo configure
:7605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7606 eval "ac_cv_func_$ac_func=yes"
7608 echo "configure: failed program was:" >&5
7609 cat conftest.
$ac_ext >&5
7611 eval "ac_cv_func_$ac_func=no"
7616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7617 echo "$ac_t""yes" 1>&6
7618 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7619 cat >> confdefs.h
<<EOF
7620 #define $ac_tr_func 1
7624 echo "$ac_t""no" 1>&6
7632 *-lsec*) for ac_func
in bigcrypt
7634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7635 echo "configure:7636: checking for $ac_func" >&5
7636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7637 echo $ac_n "(cached) $ac_c" 1>&6
7639 cat > conftest.
$ac_ext <<EOF
7640 #line 7641 "configure"
7641 #include "confdefs.h"
7642 /* System header to define __stub macros and hopefully few prototypes,
7643 which can conflict with char $ac_func(); below. */
7645 /* Override any gcc2 internal prototype to avoid an error. */
7646 /* We use char because int might match the return type of a gcc2
7647 builtin and then its argument prototype would still apply. */
7652 /* The GNU C library defines this for functions which it implements
7653 to always fail with ENOSYS. Some functions are actually named
7654 something starting with __ and the normal name is an alias. */
7655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7663 if { (eval echo configure
:7664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7665 eval "ac_cv_func_$ac_func=yes"
7667 echo "configure: failed program was:" >&5
7668 cat conftest.
$ac_ext >&5
7670 eval "ac_cv_func_$ac_func=no"
7675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7676 echo "$ac_t""yes" 1>&6
7677 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7678 cat >> confdefs.h
<<EOF
7679 #define $ac_tr_func 1
7683 echo "$ac_t""no" 1>&6
7687 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7688 echo "configure:7689: checking for bigcrypt in -lsec" >&5
7689 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7691 echo $ac_n "(cached) $ac_c" 1>&6
7693 ac_save_LIBS
="$LIBS"
7695 cat > conftest.
$ac_ext <<EOF
7696 #line 7697 "configure"
7697 #include "confdefs.h"
7698 /* Override any gcc2 internal prototype to avoid an error. */
7699 /* We use char because int might match the return type of a gcc2
7700 builtin and then its argument prototype would still apply. */
7707 if { (eval echo configure
:7708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7709 eval "ac_cv_lib_$ac_lib_var=yes"
7711 echo "configure: failed program was:" >&5
7712 cat conftest.
$ac_ext >&5
7714 eval "ac_cv_lib_$ac_lib_var=no"
7717 LIBS
="$ac_save_LIBS"
7720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7721 echo "$ac_t""yes" 1>&6
7722 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7723 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7724 cat >> confdefs.h
<<EOF
7725 #define $ac_tr_lib 1
7731 echo "$ac_t""no" 1>&6
7734 for ac_func
in bigcrypt
7736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7737 echo "configure:7738: checking for $ac_func" >&5
7738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7739 echo $ac_n "(cached) $ac_c" 1>&6
7741 cat > conftest.
$ac_ext <<EOF
7742 #line 7743 "configure"
7743 #include "confdefs.h"
7744 /* System header to define __stub macros and hopefully few prototypes,
7745 which can conflict with char $ac_func(); below. */
7747 /* Override any gcc2 internal prototype to avoid an error. */
7748 /* We use char because int might match the return type of a gcc2
7749 builtin and then its argument prototype would still apply. */
7754 /* The GNU C library defines this for functions which it implements
7755 to always fail with ENOSYS. Some functions are actually named
7756 something starting with __ and the normal name is an alias. */
7757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7765 if { (eval echo configure
:7766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7767 eval "ac_cv_func_$ac_func=yes"
7769 echo "configure: failed program was:" >&5
7770 cat conftest.
$ac_ext >&5
7772 eval "ac_cv_func_$ac_func=no"
7777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7778 echo "$ac_t""yes" 1>&6
7779 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7780 cat >> confdefs.h
<<EOF
7781 #define $ac_tr_func 1
7785 echo "$ac_t""no" 1>&6
7794 *-lsecurity*) for ac_func
in getprpwnam
7796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7797 echo "configure:7798: checking for $ac_func" >&5
7798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7799 echo $ac_n "(cached) $ac_c" 1>&6
7801 cat > conftest.
$ac_ext <<EOF
7802 #line 7803 "configure"
7803 #include "confdefs.h"
7804 /* System header to define __stub macros and hopefully few prototypes,
7805 which can conflict with char $ac_func(); below. */
7807 /* Override any gcc2 internal prototype to avoid an error. */
7808 /* We use char because int might match the return type of a gcc2
7809 builtin and then its argument prototype would still apply. */
7814 /* The GNU C library defines this for functions which it implements
7815 to always fail with ENOSYS. Some functions are actually named
7816 something starting with __ and the normal name is an alias. */
7817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7825 if { (eval echo configure
:7826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7827 eval "ac_cv_func_$ac_func=yes"
7829 echo "configure: failed program was:" >&5
7830 cat conftest.
$ac_ext >&5
7832 eval "ac_cv_func_$ac_func=no"
7837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7838 echo "$ac_t""yes" 1>&6
7839 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7840 cat >> confdefs.h
<<EOF
7841 #define $ac_tr_func 1
7845 echo "$ac_t""no" 1>&6
7849 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7850 echo "configure:7851: checking for getprpwnam in -lsecurity" >&5
7851 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7853 echo $ac_n "(cached) $ac_c" 1>&6
7855 ac_save_LIBS
="$LIBS"
7856 LIBS
="-lsecurity $LIBS"
7857 cat > conftest.
$ac_ext <<EOF
7858 #line 7859 "configure"
7859 #include "confdefs.h"
7860 /* Override any gcc2 internal prototype to avoid an error. */
7861 /* We use char because int might match the return type of a gcc2
7862 builtin and then its argument prototype would still apply. */
7869 if { (eval echo configure
:7870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7871 eval "ac_cv_lib_$ac_lib_var=yes"
7873 echo "configure: failed program was:" >&5
7874 cat conftest.
$ac_ext >&5
7876 eval "ac_cv_lib_$ac_lib_var=no"
7879 LIBS
="$ac_save_LIBS"
7882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7883 echo "$ac_t""yes" 1>&6
7884 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7885 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7886 cat >> confdefs.h
<<EOF
7887 #define $ac_tr_lib 1
7890 LIBS
="-lsecurity $LIBS"
7893 echo "$ac_t""no" 1>&6
7896 for ac_func
in getprpwnam
7898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7899 echo "configure:7900: checking for $ac_func" >&5
7900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7901 echo $ac_n "(cached) $ac_c" 1>&6
7903 cat > conftest.
$ac_ext <<EOF
7904 #line 7905 "configure"
7905 #include "confdefs.h"
7906 /* System header to define __stub macros and hopefully few prototypes,
7907 which can conflict with char $ac_func(); below. */
7909 /* Override any gcc2 internal prototype to avoid an error. */
7910 /* We use char because int might match the return type of a gcc2
7911 builtin and then its argument prototype would still apply. */
7916 /* The GNU C library defines this for functions which it implements
7917 to always fail with ENOSYS. Some functions are actually named
7918 something starting with __ and the normal name is an alias. */
7919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7927 if { (eval echo configure
:7928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7929 eval "ac_cv_func_$ac_func=yes"
7931 echo "configure: failed program was:" >&5
7932 cat conftest.
$ac_ext >&5
7934 eval "ac_cv_func_$ac_func=no"
7939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7940 echo "$ac_t""yes" 1>&6
7941 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7942 cat >> confdefs.h
<<EOF
7943 #define $ac_tr_func 1
7947 echo "$ac_t""no" 1>&6
7955 *-lsec*) for ac_func
in getprpwnam
7957 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7958 echo "configure:7959: checking for $ac_func" >&5
7959 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7960 echo $ac_n "(cached) $ac_c" 1>&6
7962 cat > conftest.
$ac_ext <<EOF
7963 #line 7964 "configure"
7964 #include "confdefs.h"
7965 /* System header to define __stub macros and hopefully few prototypes,
7966 which can conflict with char $ac_func(); below. */
7968 /* Override any gcc2 internal prototype to avoid an error. */
7969 /* We use char because int might match the return type of a gcc2
7970 builtin and then its argument prototype would still apply. */
7975 /* The GNU C library defines this for functions which it implements
7976 to always fail with ENOSYS. Some functions are actually named
7977 something starting with __ and the normal name is an alias. */
7978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7986 if { (eval echo configure
:7987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7988 eval "ac_cv_func_$ac_func=yes"
7990 echo "configure: failed program was:" >&5
7991 cat conftest.
$ac_ext >&5
7993 eval "ac_cv_func_$ac_func=no"
7998 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7999 echo "$ac_t""yes" 1>&6
8000 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8001 cat >> confdefs.h
<<EOF
8002 #define $ac_tr_func 1
8006 echo "$ac_t""no" 1>&6
8010 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8011 echo "configure:8012: checking for getprpwnam in -lsec" >&5
8012 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8014 echo $ac_n "(cached) $ac_c" 1>&6
8016 ac_save_LIBS
="$LIBS"
8018 cat > conftest.
$ac_ext <<EOF
8019 #line 8020 "configure"
8020 #include "confdefs.h"
8021 /* Override any gcc2 internal prototype to avoid an error. */
8022 /* We use char because int might match the return type of a gcc2
8023 builtin and then its argument prototype would still apply. */
8030 if { (eval echo configure
:8031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8032 eval "ac_cv_lib_$ac_lib_var=yes"
8034 echo "configure: failed program was:" >&5
8035 cat conftest.
$ac_ext >&5
8037 eval "ac_cv_lib_$ac_lib_var=no"
8040 LIBS
="$ac_save_LIBS"
8043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8044 echo "$ac_t""yes" 1>&6
8045 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8046 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8047 cat >> confdefs.h
<<EOF
8048 #define $ac_tr_lib 1
8054 echo "$ac_t""no" 1>&6
8057 for ac_func
in getprpwnam
8059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8060 echo "configure:8061: checking for $ac_func" >&5
8061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8062 echo $ac_n "(cached) $ac_c" 1>&6
8064 cat > conftest.
$ac_ext <<EOF
8065 #line 8066 "configure"
8066 #include "confdefs.h"
8067 /* System header to define __stub macros and hopefully few prototypes,
8068 which can conflict with char $ac_func(); below. */
8070 /* Override any gcc2 internal prototype to avoid an error. */
8071 /* We use char because int might match the return type of a gcc2
8072 builtin and then its argument prototype would still apply. */
8077 /* The GNU C library defines this for functions which it implements
8078 to always fail with ENOSYS. Some functions are actually named
8079 something starting with __ and the normal name is an alias. */
8080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8088 if { (eval echo configure
:8089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8090 eval "ac_cv_func_$ac_func=yes"
8092 echo "configure: failed program was:" >&5
8093 cat conftest.
$ac_ext >&5
8095 eval "ac_cv_func_$ac_func=no"
8100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8101 echo "$ac_t""yes" 1>&6
8102 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8103 cat >> confdefs.h
<<EOF
8104 #define $ac_tr_func 1
8108 echo "$ac_t""no" 1>&6
8116 # this bit needs to be modified for each OS that is suported by
8117 # smbwrapper. You need to specify how to created a shared library and
8118 # how to compile C code to produce PIC object files
8120 # these are the defaults, good for lots of systems
8126 # and these are for particular systems
8128 *linux
*) cat >> confdefs.h
<<\EOF
8132 *solaris
*) cat >> confdefs.h
<<\EOF
8138 *sunos
*) cat >> confdefs.h
<<\EOF
8144 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
8146 *irix
*) cat >> confdefs.h
<<\EOF
8151 *irix6
*) cat >> confdefs.h
<<\EOF
8157 ATTEMPT_WRAP32_BUILD
=yes
8159 *aix
*) cat >> confdefs.h
<<\EOF
8163 *hpux
*) cat >> confdefs.h
<<\EOF
8168 # Use special PIC flags for the native HP-UX compiler.
8169 if test $ac_cv_prog_cc_Ae = yes; then
8174 *qnx
*) cat >> confdefs.h
<<\EOF
8178 *osf
*) cat >> confdefs.h
<<\EOF
8182 *sco
*) cat >> confdefs.h
<<\EOF
8186 *next2
*) cat >> confdefs.h
<<\EOF
8190 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8191 set dummy
groff; ac_word
=$2
8192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8193 echo "configure:8194: checking for $ac_word" >&5
8194 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8195 echo $ac_n "(cached) $ac_c" 1>&6
8197 if test -n "$ROFF"; then
8198 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8200 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8202 for ac_dir
in $ac_dummy; do
8203 test -z "$ac_dir" && ac_dir
=.
8204 if test -f $ac_dir/$ac_word; then
8205 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8212 ROFF
="$ac_cv_prog_ROFF"
8213 if test -n "$ROFF"; then
8214 echo "$ac_t""$ROFF" 1>&6
8216 echo "$ac_t""no" 1>&6
8221 *-univel-*) if test "$GCC" != yes ; then
8222 cat >> confdefs.h
<<\EOF
8223 #define HAVE_MEMSET 1
8229 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8230 #define RELIANTUNIX 1
8236 if test "$GCC" != yes ; then
8237 cat >> confdefs.h
<<\EOF
8238 #define HAVE_MEMSET 1
8246 # try to work out how to produce pic code with this compiler
8247 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8248 echo "configure:8249: checking whether ${CC-cc} accepts -fpic" >&5
8249 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8250 echo $ac_n "(cached) $ac_c" 1>&6
8252 echo 'void f(){}' > conftest.c
8253 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8254 ac_cv_prog_cc_fpic
=yes
8256 ac_cv_prog_cc_fpic
=no
8262 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8263 if test $ac_cv_prog_cc_fpic = yes; then
8266 if test x
$PICFLAG = x
; then
8267 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8268 echo "configure:8269: checking whether ${CC-cc} accepts -Kpic" >&5
8269 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8270 echo $ac_n "(cached) $ac_c" 1>&6
8272 echo 'void f(){}' > conftest.c
8273 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8274 ac_cv_prog_cc_Kpic
=yes
8276 ac_cv_prog_cc_Kpic
=no
8282 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8283 if test $ac_cv_prog_cc_Kpic = yes; then
8287 if test x
$PICFLAG = x
; then
8288 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8289 echo "configure:8290: checking whether ${CC-cc} accepts -KPIC" >&5
8290 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8291 echo $ac_n "(cached) $ac_c" 1>&6
8293 echo 'void f(){}' > conftest.c
8294 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8295 ac_cv_prog_cc_KPIC
=yes
8297 ac_cv_prog_cc_KPIC
=no
8303 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8304 if test $ac_cv_prog_cc_KPIC = yes; then
8311 echo $ac_n "checking for long long""... $ac_c" 1>&6
8312 echo "configure:8313: checking for long long" >&5
8313 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8314 echo $ac_n "(cached) $ac_c" 1>&6
8317 if test "$cross_compiling" = yes; then
8318 samba_cv_have_longlong
=cross
8320 cat > conftest.
$ac_ext <<EOF
8321 #line 8322 "configure"
8322 #include "confdefs.h"
8324 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8326 if { (eval echo configure
:8327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8328 samba_cv_have_longlong
=yes
8330 echo "configure: failed program was:" >&5
8331 cat conftest.
$ac_ext >&5
8333 samba_cv_have_longlong
=no
8340 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8341 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8342 cat >> confdefs.h
<<\EOF
8343 #define HAVE_LONGLONG 1
8349 # Check if the compiler supports the LL prefix on long long integers.
8352 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8353 echo "configure:8354: checking for LL suffix on long long integers" >&5
8354 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8355 echo $ac_n "(cached) $ac_c" 1>&6
8358 cat > conftest.
$ac_ext <<EOF
8359 #line 8360 "configure"
8360 #include "confdefs.h"
8363 long long i = 0x8000000000LL
8366 if { (eval echo configure
:8367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8368 samba_cv_compiler_supports_ll
=yes
8370 echo "configure: failed program was:" >&5
8371 cat conftest.
$ac_ext >&5
8373 samba_cv_compiler_supports_ll
=no
8378 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8379 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8380 cat >> confdefs.h
<<\EOF
8381 #define COMPILER_SUPPORTS_LL 1
8387 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8388 echo "configure:8389: checking for 64 bit off_t" >&5
8389 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8390 echo $ac_n "(cached) $ac_c" 1>&6
8393 if test "$cross_compiling" = yes; then
8394 samba_cv_SIZEOF_OFF_T
=cross
8396 cat > conftest.
$ac_ext <<EOF
8397 #line 8398 "configure"
8398 #include "confdefs.h"
8400 #include <sys/stat.h>
8401 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8403 if { (eval echo configure
:8404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8405 samba_cv_SIZEOF_OFF_T
=yes
8407 echo "configure: failed program was:" >&5
8408 cat conftest.
$ac_ext >&5
8410 samba_cv_SIZEOF_OFF_T
=no
8417 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8418 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8419 cat >> confdefs.h
<<\EOF
8420 #define SIZEOF_OFF_T 8
8425 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8426 echo "configure:8427: checking for off64_t" >&5
8427 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8428 echo $ac_n "(cached) $ac_c" 1>&6
8431 if test "$cross_compiling" = yes; then
8432 samba_cv_HAVE_OFF64_T
=cross
8434 cat > conftest.
$ac_ext <<EOF
8435 #line 8436 "configure"
8436 #include "confdefs.h"
8438 #if defined(HAVE_UNISTD_H)
8442 #include <sys/stat.h>
8443 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8445 if { (eval echo configure
:8446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8447 samba_cv_HAVE_OFF64_T
=yes
8449 echo "configure: failed program was:" >&5
8450 cat conftest.
$ac_ext >&5
8452 samba_cv_HAVE_OFF64_T
=no
8459 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8460 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8461 cat >> confdefs.h
<<\EOF
8462 #define HAVE_OFF64_T 1
8467 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8468 echo "configure:8469: checking for 64 bit ino_t" >&5
8469 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8470 echo $ac_n "(cached) $ac_c" 1>&6
8473 if test "$cross_compiling" = yes; then
8474 samba_cv_SIZEOF_INO_T
=cross
8476 cat > conftest.
$ac_ext <<EOF
8477 #line 8478 "configure"
8478 #include "confdefs.h"
8480 #include <sys/stat.h>
8481 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8483 if { (eval echo configure
:8484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8485 samba_cv_SIZEOF_INO_T
=yes
8487 echo "configure: failed program was:" >&5
8488 cat conftest.
$ac_ext >&5
8490 samba_cv_SIZEOF_INO_T
=no
8497 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8498 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8499 cat >> confdefs.h
<<\EOF
8500 #define SIZEOF_INO_T 8
8505 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8506 echo "configure:8507: checking for ino64_t" >&5
8507 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8508 echo $ac_n "(cached) $ac_c" 1>&6
8511 if test "$cross_compiling" = yes; then
8512 samba_cv_HAVE_INO64_T
=cross
8514 cat > conftest.
$ac_ext <<EOF
8515 #line 8516 "configure"
8516 #include "confdefs.h"
8518 #if defined(HAVE_UNISTD_H)
8522 #include <sys/stat.h>
8523 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8525 if { (eval echo configure
:8526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8527 samba_cv_HAVE_INO64_T
=yes
8529 echo "configure: failed program was:" >&5
8530 cat conftest.
$ac_ext >&5
8532 samba_cv_HAVE_INO64_T
=no
8539 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8540 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8541 cat >> confdefs.h
<<\EOF
8542 #define HAVE_INO64_T 1
8547 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8548 echo "configure:8549: checking for struct dirent64" >&5
8549 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8550 echo $ac_n "(cached) $ac_c" 1>&6
8553 cat > conftest.
$ac_ext <<EOF
8554 #line 8555 "configure"
8555 #include "confdefs.h"
8557 #if defined(HAVE_UNISTD_H)
8560 #include <sys/types.h>
8566 if { (eval echo configure
:8567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8568 samba_cv_HAVE_STRUCT_DIRENT64
=yes
8570 echo "configure: failed program was:" >&5
8571 cat conftest.
$ac_ext >&5
8573 samba_cv_HAVE_STRUCT_DIRENT64
=no
8578 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8579 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
8580 cat >> confdefs.h
<<\EOF
8581 #define HAVE_STRUCT_DIRENT64 1
8586 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8587 echo "configure:8588: checking for unsigned char" >&5
8588 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8589 echo $ac_n "(cached) $ac_c" 1>&6
8592 if test "$cross_compiling" = yes; then
8593 samba_cv_HAVE_UNSIGNED_CHAR
=cross
8595 cat > conftest.
$ac_ext <<EOF
8596 #line 8597 "configure"
8597 #include "confdefs.h"
8599 main() { char c; c=250; exit((c > 0)?0:1); }
8601 if { (eval echo configure
:8602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8603 samba_cv_HAVE_UNSIGNED_CHAR
=yes
8605 echo "configure: failed program was:" >&5
8606 cat conftest.
$ac_ext >&5
8608 samba_cv_HAVE_UNSIGNED_CHAR
=no
8615 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8616 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
8617 cat >> confdefs.h
<<\EOF
8618 #define HAVE_UNSIGNED_CHAR 1
8623 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8624 echo "configure:8625: checking for sin_len in sock" >&5
8625 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8626 echo $ac_n "(cached) $ac_c" 1>&6
8629 cat > conftest.
$ac_ext <<EOF
8630 #line 8631 "configure"
8631 #include "confdefs.h"
8632 #include <sys/types.h>
8633 #include <sys/socket.h>
8634 #include <netinet/in.h>
8636 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8639 if { (eval echo configure
:8640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8641 samba_cv_HAVE_SOCK_SIN_LEN
=yes
8643 echo "configure: failed program was:" >&5
8644 cat conftest.
$ac_ext >&5
8646 samba_cv_HAVE_SOCK_SIN_LEN
=no
8651 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8652 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
8653 cat >> confdefs.h
<<\EOF
8654 #define HAVE_SOCK_SIN_LEN 1
8659 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8660 echo "configure:8661: checking whether seekdir returns void" >&5
8661 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8662 echo $ac_n "(cached) $ac_c" 1>&6
8665 cat > conftest.
$ac_ext <<EOF
8666 #line 8667 "configure"
8667 #include "confdefs.h"
8668 #include <sys/types.h>
8670 void seekdir(DIR *d, long loc) { return; }
8675 if { (eval echo configure
:8676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8677 samba_cv_SEEKDIR_RETURNS_VOID
=yes
8679 echo "configure: failed program was:" >&5
8680 cat conftest.
$ac_ext >&5
8682 samba_cv_SEEKDIR_RETURNS_VOID
=no
8687 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8688 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
8689 cat >> confdefs.h
<<\EOF
8690 #define SEEKDIR_RETURNS_VOID 1
8695 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8696 echo "configure:8697: checking for __FILE__ macro" >&5
8697 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8698 echo $ac_n "(cached) $ac_c" 1>&6
8701 cat > conftest.
$ac_ext <<EOF
8702 #line 8703 "configure"
8703 #include "confdefs.h"
8706 printf("%s\n", __FILE__);
8709 if { (eval echo configure
:8710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8711 samba_cv_HAVE_FILE_MACRO
=yes
8713 echo "configure: failed program was:" >&5
8714 cat conftest.
$ac_ext >&5
8716 samba_cv_HAVE_FILE_MACRO
=no
8721 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8722 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
8723 cat >> confdefs.h
<<\EOF
8724 #define HAVE_FILE_MACRO 1
8729 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8730 echo "configure:8731: checking for __FUNCTION__ macro" >&5
8731 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8732 echo $ac_n "(cached) $ac_c" 1>&6
8735 cat > conftest.
$ac_ext <<EOF
8736 #line 8737 "configure"
8737 #include "confdefs.h"
8740 printf("%s\n", __FUNCTION__);
8743 if { (eval echo configure
:8744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8745 samba_cv_HAVE_FUNCTION_MACRO
=yes
8747 echo "configure: failed program was:" >&5
8748 cat conftest.
$ac_ext >&5
8750 samba_cv_HAVE_FUNCTION_MACRO
=no
8755 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8756 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
8757 cat >> confdefs.h
<<\EOF
8758 #define HAVE_FUNCTION_MACRO 1
8763 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8764 echo "configure:8765: checking if gettimeofday takes tz argument" >&5
8765 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8766 echo $ac_n "(cached) $ac_c" 1>&6
8769 if test "$cross_compiling" = yes; then
8770 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
8772 cat > conftest.
$ac_ext <<EOF
8773 #line 8774 "configure"
8774 #include "confdefs.h"
8776 #include <sys/time.h>
8778 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8780 if { (eval echo configure
:8781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8782 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
8784 echo "configure: failed program was:" >&5
8785 cat conftest.
$ac_ext >&5
8787 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
8794 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8795 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
8796 cat >> confdefs.h
<<\EOF
8797 #define HAVE_GETTIMEOFDAY_TZ 1
8803 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8804 echo "configure:8805: checking for broken readdir" >&5
8805 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8806 echo $ac_n "(cached) $ac_c" 1>&6
8809 if test "$cross_compiling" = yes; then
8810 samba_cv_HAVE_BROKEN_READDIR
=cross
8812 cat > conftest.
$ac_ext <<EOF
8813 #line 8814 "configure"
8814 #include "confdefs.h"
8815 #include <sys/types.h>
8817 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8818 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8819 di->d_name[0] == 0) exit(0); exit(1);}
8821 if { (eval echo configure
:8822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8823 samba_cv_HAVE_BROKEN_READDIR
=yes
8825 echo "configure: failed program was:" >&5
8826 cat conftest.
$ac_ext >&5
8828 samba_cv_HAVE_BROKEN_READDIR
=no
8835 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
8836 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
8837 cat >> confdefs.h
<<\EOF
8838 #define HAVE_BROKEN_READDIR 1
8843 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
8844 echo "configure:8845: checking for utimbuf" >&5
8845 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
8846 echo $ac_n "(cached) $ac_c" 1>&6
8849 cat > conftest.
$ac_ext <<EOF
8850 #line 8851 "configure"
8851 #include "confdefs.h"
8852 #include <sys/types.h>
8855 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
8858 if { (eval echo configure
:8859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8860 samba_cv_HAVE_UTIMBUF
=yes
8862 echo "configure: failed program was:" >&5
8863 cat conftest.
$ac_ext >&5
8865 samba_cv_HAVE_UTIMBUF
=no
8870 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
8871 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
8872 cat >> confdefs.h
<<\EOF
8873 #define HAVE_UTIMBUF 1
8879 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
8881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8882 echo "configure:8883: checking for $ac_func" >&5
8883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8884 echo $ac_n "(cached) $ac_c" 1>&6
8886 cat > conftest.
$ac_ext <<EOF
8887 #line 8888 "configure"
8888 #include "confdefs.h"
8889 /* System header to define __stub macros and hopefully few prototypes,
8890 which can conflict with char $ac_func(); below. */
8892 /* Override any gcc2 internal prototype to avoid an error. */
8893 /* We use char because int might match the return type of a gcc2
8894 builtin and then its argument prototype would still apply. */
8899 /* The GNU C library defines this for functions which it implements
8900 to always fail with ENOSYS. Some functions are actually named
8901 something starting with __ and the normal name is an alias. */
8902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8910 if { (eval echo configure
:8911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8912 eval "ac_cv_func_$ac_func=yes"
8914 echo "configure: failed program was:" >&5
8915 cat conftest.
$ac_ext >&5
8917 eval "ac_cv_func_$ac_func=no"
8922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8923 echo "$ac_t""yes" 1>&6
8924 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8925 cat >> confdefs.h
<<EOF
8926 #define $ac_tr_func 1
8930 echo "$ac_t""no" 1>&6
8935 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
8936 echo "configure:8937: checking for ut_name in utmp" >&5
8937 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
8938 echo $ac_n "(cached) $ac_c" 1>&6
8941 cat > conftest.
$ac_ext <<EOF
8942 #line 8943 "configure"
8943 #include "confdefs.h"
8944 #include <sys/types.h>
8947 struct utmp ut; ut.ut_name[0] = 'a';
8950 if { (eval echo configure
:8951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8952 samba_cv_HAVE_UT_UT_NAME
=yes
8954 echo "configure: failed program was:" >&5
8955 cat conftest.
$ac_ext >&5
8957 samba_cv_HAVE_UT_UT_NAME
=no
8962 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
8963 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
8964 cat >> confdefs.h
<<\EOF
8965 #define HAVE_UT_UT_NAME 1
8970 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
8971 echo "configure:8972: checking for ut_user in utmp" >&5
8972 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
8973 echo $ac_n "(cached) $ac_c" 1>&6
8976 cat > conftest.
$ac_ext <<EOF
8977 #line 8978 "configure"
8978 #include "confdefs.h"
8979 #include <sys/types.h>
8982 struct utmp ut; ut.ut_user[0] = 'a';
8985 if { (eval echo configure
:8986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8987 samba_cv_HAVE_UT_UT_USER
=yes
8989 echo "configure: failed program was:" >&5
8990 cat conftest.
$ac_ext >&5
8992 samba_cv_HAVE_UT_UT_USER
=no
8997 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
8998 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
8999 cat >> confdefs.h
<<\EOF
9000 #define HAVE_UT_UT_USER 1
9005 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9006 echo "configure:9007: checking for ut_id in utmp" >&5
9007 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9008 echo $ac_n "(cached) $ac_c" 1>&6
9011 cat > conftest.
$ac_ext <<EOF
9012 #line 9013 "configure"
9013 #include "confdefs.h"
9014 #include <sys/types.h>
9017 struct utmp ut; ut.ut_id[0] = 'a';
9020 if { (eval echo configure
:9021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9022 samba_cv_HAVE_UT_UT_ID
=yes
9024 echo "configure: failed program was:" >&5
9025 cat conftest.
$ac_ext >&5
9027 samba_cv_HAVE_UT_UT_ID
=no
9032 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9033 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9034 cat >> confdefs.h
<<\EOF
9035 #define HAVE_UT_UT_ID 1
9040 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9041 echo "configure:9042: checking for ut_host in utmp" >&5
9042 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9043 echo $ac_n "(cached) $ac_c" 1>&6
9046 cat > conftest.
$ac_ext <<EOF
9047 #line 9048 "configure"
9048 #include "confdefs.h"
9049 #include <sys/types.h>
9052 struct utmp ut; ut.ut_host[0] = 'a';
9055 if { (eval echo configure
:9056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9057 samba_cv_HAVE_UT_UT_HOST
=yes
9059 echo "configure: failed program was:" >&5
9060 cat conftest.
$ac_ext >&5
9062 samba_cv_HAVE_UT_UT_HOST
=no
9067 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9068 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9069 cat >> confdefs.h
<<\EOF
9070 #define HAVE_UT_UT_HOST 1
9075 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9076 echo "configure:9077: checking for ut_time in utmp" >&5
9077 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9078 echo $ac_n "(cached) $ac_c" 1>&6
9081 cat > conftest.
$ac_ext <<EOF
9082 #line 9083 "configure"
9083 #include "confdefs.h"
9084 #include <sys/types.h>
9087 struct utmp ut; time_t t; ut.ut_time = t;
9090 if { (eval echo configure
:9091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9092 samba_cv_HAVE_UT_UT_TIME
=yes
9094 echo "configure: failed program was:" >&5
9095 cat conftest.
$ac_ext >&5
9097 samba_cv_HAVE_UT_UT_TIME
=no
9102 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9103 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
9104 cat >> confdefs.h
<<\EOF
9105 #define HAVE_UT_UT_TIME 1
9110 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9111 echo "configure:9112: checking for ut_tv in utmp" >&5
9112 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9113 echo $ac_n "(cached) $ac_c" 1>&6
9116 cat > conftest.
$ac_ext <<EOF
9117 #line 9118 "configure"
9118 #include "confdefs.h"
9119 #include <sys/types.h>
9122 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9125 if { (eval echo configure
:9126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9127 samba_cv_HAVE_UT_UT_TV
=yes
9129 echo "configure: failed program was:" >&5
9130 cat conftest.
$ac_ext >&5
9132 samba_cv_HAVE_UT_UT_TV
=no
9137 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9138 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
9139 cat >> confdefs.h
<<\EOF
9140 #define HAVE_UT_UT_TV 1
9145 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9146 echo "configure:9147: checking for ut_type in utmp" >&5
9147 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9148 echo $ac_n "(cached) $ac_c" 1>&6
9151 cat > conftest.
$ac_ext <<EOF
9152 #line 9153 "configure"
9153 #include "confdefs.h"
9154 #include <sys/types.h>
9157 struct utmp ut; ut.ut_type = 0;
9160 if { (eval echo configure
:9161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9162 samba_cv_HAVE_UT_UT_TYPE
=yes
9164 echo "configure: failed program was:" >&5
9165 cat conftest.
$ac_ext >&5
9167 samba_cv_HAVE_UT_UT_TYPE
=no
9172 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9173 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
9174 cat >> confdefs.h
<<\EOF
9175 #define HAVE_UT_UT_TYPE 1
9180 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9181 echo "configure:9182: checking for ut_pid in utmp" >&5
9182 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9183 echo $ac_n "(cached) $ac_c" 1>&6
9186 cat > conftest.
$ac_ext <<EOF
9187 #line 9188 "configure"
9188 #include "confdefs.h"
9189 #include <sys/types.h>
9192 struct utmp ut; ut.ut_pid = 0;
9195 if { (eval echo configure
:9196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9197 samba_cv_HAVE_UT_UT_PID
=yes
9199 echo "configure: failed program was:" >&5
9200 cat conftest.
$ac_ext >&5
9202 samba_cv_HAVE_UT_UT_PID
=no
9207 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9208 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
9209 cat >> confdefs.h
<<\EOF
9210 #define HAVE_UT_UT_PID 1
9215 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9216 echo "configure:9217: checking for ut_exit in utmp" >&5
9217 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9218 echo $ac_n "(cached) $ac_c" 1>&6
9221 cat > conftest.
$ac_ext <<EOF
9222 #line 9223 "configure"
9223 #include "confdefs.h"
9224 #include <sys/types.h>
9227 struct utmp ut; ut.ut_exit.e_exit = 0;
9230 if { (eval echo configure
:9231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9232 samba_cv_HAVE_UT_UT_EXIT
=yes
9234 echo "configure: failed program was:" >&5
9235 cat conftest.
$ac_ext >&5
9237 samba_cv_HAVE_UT_UT_EXIT
=no
9242 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9243 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
9244 cat >> confdefs.h
<<\EOF
9245 #define HAVE_UT_UT_EXIT 1
9250 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9251 echo "configure:9252: checking for ut_addr in utmp" >&5
9252 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9253 echo $ac_n "(cached) $ac_c" 1>&6
9256 cat > conftest.
$ac_ext <<EOF
9257 #line 9258 "configure"
9258 #include "confdefs.h"
9259 #include <sys/types.h>
9262 struct utmp ut; ut.ut_addr = 0;
9265 if { (eval echo configure
:9266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9267 samba_cv_HAVE_UT_UT_ADDR
=yes
9269 echo "configure: failed program was:" >&5
9270 cat conftest.
$ac_ext >&5
9272 samba_cv_HAVE_UT_UT_ADDR
=no
9277 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9278 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
9279 cat >> confdefs.h
<<\EOF
9280 #define HAVE_UT_UT_ADDR 1
9285 if test x
$ac_cv_func_pututline = xyes
; then
9286 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9287 echo "configure:9288: checking whether pututline returns pointer" >&5
9288 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9289 echo $ac_n "(cached) $ac_c" 1>&6
9292 cat > conftest.
$ac_ext <<EOF
9293 #line 9294 "configure"
9294 #include "confdefs.h"
9295 #include <sys/types.h>
9298 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9301 if { (eval echo configure
:9302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9303 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
9305 echo "configure: failed program was:" >&5
9306 cat conftest.
$ac_ext >&5
9308 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
9313 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9314 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
9315 cat >> confdefs.h
<<\EOF
9316 #define PUTUTLINE_RETURNS_UTMP 1
9322 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9323 echo "configure:9324: checking for ut_syslen in utmpx" >&5
9324 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9325 echo $ac_n "(cached) $ac_c" 1>&6
9328 cat > conftest.
$ac_ext <<EOF
9329 #line 9330 "configure"
9330 #include "confdefs.h"
9331 #include <sys/types.h>
9334 struct utmpx ux; ux.ut_syslen = 0;
9337 if { (eval echo configure
:9338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9339 samba_cv_HAVE_UX_UT_SYSLEN
=yes
9341 echo "configure: failed program was:" >&5
9342 cat conftest.
$ac_ext >&5
9344 samba_cv_HAVE_UX_UT_SYSLEN
=no
9349 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9350 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
9351 cat >> confdefs.h
<<\EOF
9352 #define HAVE_UX_UT_SYSLEN 1
9357 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9358 echo "configure:9359: checking for Linux kernel oplocks" >&5
9359 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9360 echo $ac_n "(cached) $ac_c" 1>&6
9363 if test "$cross_compiling" = yes; then
9364 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
9366 cat > conftest.
$ac_ext <<EOF
9367 #line 9368 "configure"
9368 #include "confdefs.h"
9370 #include <sys/types.h>
9373 #define F_GETLEASE 1025
9376 int fd = open("/dev/null", O_RDONLY);
9377 return fcntl(fd, F_GETLEASE, 0) == -1;
9381 if { (eval echo configure
:9382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9383 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
9385 echo "configure: failed program was:" >&5
9386 cat conftest.
$ac_ext >&5
9388 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
9395 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9396 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
9397 cat >> confdefs.h
<<\EOF
9398 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9403 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9404 echo "configure:9405: checking for kernel change notify support" >&5
9405 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9406 echo $ac_n "(cached) $ac_c" 1>&6
9409 if test "$cross_compiling" = yes; then
9410 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
9412 cat > conftest.
$ac_ext <<EOF
9413 #line 9414 "configure"
9414 #include "confdefs.h"
9416 #include <sys/types.h>
9420 #define F_NOTIFY 1026
9423 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9427 if { (eval echo configure
:9428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9429 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
9431 echo "configure: failed program was:" >&5
9432 cat conftest.
$ac_ext >&5
9434 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
9441 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9442 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
9443 cat >> confdefs.h
<<\EOF
9444 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9449 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9450 echo "configure:9451: checking for kernel share modes" >&5
9451 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9452 echo $ac_n "(cached) $ac_c" 1>&6
9455 if test "$cross_compiling" = yes; then
9456 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
9458 cat > conftest.
$ac_ext <<EOF
9459 #line 9460 "configure"
9460 #include "confdefs.h"
9462 #include <sys/types.h>
9465 #include <sys/file.h>
9467 #define LOCK_MAND 32
9468 #define LOCK_READ 64
9471 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9475 if { (eval echo configure
:9476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9477 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
9479 echo "configure: failed program was:" >&5
9480 cat conftest.
$ac_ext >&5
9482 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
9489 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9490 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
9491 cat >> confdefs.h
<<\EOF
9492 #define HAVE_KERNEL_SHARE_MODES 1
9500 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9501 echo "configure:9502: checking for IRIX kernel oplock type definitions" >&5
9502 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9503 echo $ac_n "(cached) $ac_c" 1>&6
9506 cat > conftest.
$ac_ext <<EOF
9507 #line 9508 "configure"
9508 #include "confdefs.h"
9509 #include <sys/types.h>
9512 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9515 if { (eval echo configure
:9516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9517 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
9519 echo "configure: failed program was:" >&5
9520 cat conftest.
$ac_ext >&5
9522 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
9527 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9528 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
9529 cat >> confdefs.h
<<\EOF
9530 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9535 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9536 echo "configure:9537: checking for irix specific capabilities" >&5
9537 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9538 echo $ac_n "(cached) $ac_c" 1>&6
9541 if test "$cross_compiling" = yes; then
9542 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
9544 cat > conftest.
$ac_ext <<EOF
9545 #line 9546 "configure"
9546 #include "confdefs.h"
9547 #include <sys/types.h>
9548 #include <sys/capability.h>
9551 if ((cap = cap_get_proc()) == NULL)
9553 cap->cap_effective |= CAP_NETWORK_MGT;
9554 cap->cap_inheritable |= CAP_NETWORK_MGT;
9560 if { (eval echo configure
:9561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9562 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
9564 echo "configure: failed program was:" >&5
9565 cat conftest.
$ac_ext >&5
9567 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
9574 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9575 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
9576 cat >> confdefs.h
<<\EOF
9577 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9583 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9584 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9587 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9588 echo "configure:9589: checking for int16 typedef included by rpc/rpc.h" >&5
9589 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9590 echo $ac_n "(cached) $ac_c" 1>&6
9593 cat > conftest.
$ac_ext <<EOF
9594 #line 9595 "configure"
9595 #include "confdefs.h"
9596 #include <sys/types.h>
9597 #if defined(HAVE_RPC_RPC_H)
9598 #include <rpc/rpc.h>
9604 if { (eval echo configure
:9605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9606 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
9608 echo "configure: failed program was:" >&5
9609 cat conftest.
$ac_ext >&5
9611 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
9616 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9617 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
9618 cat >> confdefs.h
<<\EOF
9619 #define HAVE_INT16_FROM_RPC_RPC_H 1
9624 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9625 echo "configure:9626: checking for uint16 typedef included by rpc/rpc.h" >&5
9626 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9627 echo $ac_n "(cached) $ac_c" 1>&6
9630 cat > conftest.
$ac_ext <<EOF
9631 #line 9632 "configure"
9632 #include "confdefs.h"
9633 #include <sys/types.h>
9634 #if defined(HAVE_RPC_RPC_H)
9635 #include <rpc/rpc.h>
9641 if { (eval echo configure
:9642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9643 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
9645 echo "configure: failed program was:" >&5
9646 cat conftest.
$ac_ext >&5
9648 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
9653 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9654 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
9655 cat >> confdefs.h
<<\EOF
9656 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9661 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9662 echo "configure:9663: checking for int32 typedef included by rpc/rpc.h" >&5
9663 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9664 echo $ac_n "(cached) $ac_c" 1>&6
9667 cat > conftest.
$ac_ext <<EOF
9668 #line 9669 "configure"
9669 #include "confdefs.h"
9670 #include <sys/types.h>
9671 #if defined(HAVE_RPC_RPC_H)
9672 #include <rpc/rpc.h>
9678 if { (eval echo configure
:9679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9680 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
9682 echo "configure: failed program was:" >&5
9683 cat conftest.
$ac_ext >&5
9685 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
9690 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9691 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
9692 cat >> confdefs.h
<<\EOF
9693 #define HAVE_INT32_FROM_RPC_RPC_H 1
9698 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9699 echo "configure:9700: checking for uint32 typedef included by rpc/rpc.h" >&5
9700 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9701 echo $ac_n "(cached) $ac_c" 1>&6
9704 cat > conftest.
$ac_ext <<EOF
9705 #line 9706 "configure"
9706 #include "confdefs.h"
9707 #include <sys/types.h>
9708 #if defined(HAVE_RPC_RPC_H)
9709 #include <rpc/rpc.h>
9715 if { (eval echo configure
:9716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9717 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
9719 echo "configure: failed program was:" >&5
9720 cat conftest.
$ac_ext >&5
9722 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
9727 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
9728 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
9729 cat >> confdefs.h
<<\EOF
9730 #define HAVE_UINT32_FROM_RPC_RPC_H 1
9736 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
9737 echo "configure:9738: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
9738 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
9739 echo $ac_n "(cached) $ac_c" 1>&6
9742 cat > conftest.
$ac_ext <<EOF
9743 #line 9744 "configure"
9744 #include "confdefs.h"
9745 #include <sys/types.h>
9746 #ifdef HAVE_SYS_SECURITY_H
9747 #include <sys/security.h>
9749 #endif /* HAVE_SYS_SECURITY_H */
9750 #if defined(HAVE_RPC_RPC_H)
9751 #include <rpc/rpc.h>
9757 if { (eval echo configure
:9758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9759 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
9761 echo "configure: failed program was:" >&5
9762 cat conftest.
$ac_ext >&5
9764 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
9769 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9770 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
9771 cat >> confdefs.h
<<\EOF
9772 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9777 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9778 echo "configure:9779: checking for test routines" >&5
9779 if test "$cross_compiling" = yes; then
9780 echo "configure: warning: cannot run when cross-compiling" 1>&2
9782 cat > conftest.
$ac_ext <<EOF
9783 #line 9784 "configure"
9784 #include "confdefs.h"
9785 #include "${srcdir-.}/tests/trivial.c"
9787 if { (eval echo configure
:9788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9789 echo "$ac_t""yes" 1>&6
9791 echo "configure: failed program was:" >&5
9792 cat conftest.
$ac_ext >&5
9794 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9800 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9801 echo "configure:9802: checking for ftruncate extend" >&5
9802 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
9803 echo $ac_n "(cached) $ac_c" 1>&6
9806 if test "$cross_compiling" = yes; then
9807 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
9809 cat > conftest.
$ac_ext <<EOF
9810 #line 9811 "configure"
9811 #include "confdefs.h"
9812 #include "${srcdir-.}/tests/ftruncate.c"
9814 if { (eval echo configure
:9815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9816 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
9818 echo "configure: failed program was:" >&5
9819 cat conftest.
$ac_ext >&5
9821 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
9828 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
9829 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
9830 cat >> confdefs.h
<<\EOF
9831 #define HAVE_FTRUNCATE_EXTEND 1
9836 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
9837 echo "configure:9838: checking for broken getgroups" >&5
9838 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
9839 echo $ac_n "(cached) $ac_c" 1>&6
9842 if test "$cross_compiling" = yes; then
9843 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
9845 cat > conftest.
$ac_ext <<EOF
9846 #line 9847 "configure"
9847 #include "confdefs.h"
9848 #include "${srcdir-.}/tests/getgroups.c"
9850 if { (eval echo configure
:9851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9852 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
9854 echo "configure: failed program was:" >&5
9855 cat conftest.
$ac_ext >&5
9857 samba_cv_HAVE_BROKEN_GETGROUPS
=no
9864 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
9865 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
9866 cat >> confdefs.h
<<\EOF
9867 #define HAVE_BROKEN_GETGROUPS 1
9872 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
9873 echo "configure:9874: checking whether getpass should be replaced" >&5
9874 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
9875 echo $ac_n "(cached) $ac_c" 1>&6
9878 SAVE_CPPFLAGS
="$CPPFLAGS"
9879 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
9880 cat > conftest.
$ac_ext <<EOF
9881 #line 9882 "configure"
9882 #include "confdefs.h"
9884 #define REPLACE_GETPASS 1
9885 #define NO_CONFIG_H 1
9886 #define main dont_declare_main
9887 #include "${srcdir-.}/lib/getsmbpass.c"
9894 if { (eval echo configure
:9895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9896 samba_cv_REPLACE_GETPASS
=yes
9898 echo "configure: failed program was:" >&5
9899 cat conftest.
$ac_ext >&5
9901 samba_cv_REPLACE_GETPASS
=no
9904 CPPFLAGS
="$SAVE_CPPFLAGS"
9908 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
9909 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
9910 cat >> confdefs.h
<<\EOF
9911 #define REPLACE_GETPASS 1
9916 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
9917 echo "configure:9918: checking for broken inet_ntoa" >&5
9918 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
9919 echo $ac_n "(cached) $ac_c" 1>&6
9922 if test "$cross_compiling" = yes; then
9923 samba_cv_REPLACE_INET_NTOA
=cross
9925 cat > conftest.
$ac_ext <<EOF
9926 #line 9927 "configure"
9927 #include "confdefs.h"
9930 #include <sys/types.h>
9931 #include <netinet/in.h>
9932 #ifdef HAVE_ARPA_INET_H
9933 #include <arpa/inet.h>
9935 main() { struct in_addr ip; ip.s_addr = 0x12345678;
9936 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
9937 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
9940 if { (eval echo configure
:9941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9942 samba_cv_REPLACE_INET_NTOA
=yes
9944 echo "configure: failed program was:" >&5
9945 cat conftest.
$ac_ext >&5
9947 samba_cv_REPLACE_INET_NTOA
=no
9954 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
9955 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
9956 cat >> confdefs.h
<<\EOF
9957 #define REPLACE_INET_NTOA 1
9962 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
9963 echo "configure:9964: checking for sysconf(_SC_NGROUPS_MAX)" >&5
9964 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
9965 echo $ac_n "(cached) $ac_c" 1>&6
9968 if test "$cross_compiling" = yes; then
9969 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
9971 cat > conftest.
$ac_ext <<EOF
9972 #line 9973 "configure"
9973 #include "confdefs.h"
9975 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
9977 if { (eval echo configure
:9978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9979 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
9981 echo "configure: failed program was:" >&5
9982 cat conftest.
$ac_ext >&5
9984 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
9991 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
9992 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
9993 cat >> confdefs.h
<<\EOF
9994 #define SYSCONF_SC_NGROUPS_MAX 1
9999 echo $ac_n "checking for root""... $ac_c" 1>&6
10000 echo "configure:10001: checking for root" >&5
10001 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10002 echo $ac_n "(cached) $ac_c" 1>&6
10005 if test "$cross_compiling" = yes; then
10006 samba_cv_HAVE_ROOT
=cross
10008 cat > conftest.
$ac_ext <<EOF
10009 #line 10010 "configure"
10010 #include "confdefs.h"
10011 main() { exit(getuid() != 0); }
10013 if { (eval echo configure
:10014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10015 samba_cv_HAVE_ROOT
=yes
10017 echo "configure: failed program was:" >&5
10018 cat conftest.
$ac_ext >&5
10020 samba_cv_HAVE_ROOT
=no
10027 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10028 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10029 cat >> confdefs.h
<<\EOF
10030 #define HAVE_ROOT 1
10034 echo "configure: warning: running as non-root will disable some tests" 1>&2
10038 # look for a method of finding the list of network interfaces
10040 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10041 echo "configure:10042: checking for iface AIX" >&5
10042 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10043 echo $ac_n "(cached) $ac_c" 1>&6
10046 if test "$cross_compiling" = yes; then
10047 samba_cv_HAVE_IFACE_AIX
=cross
10049 cat > conftest.
$ac_ext <<EOF
10050 #line 10051 "configure"
10051 #include "confdefs.h"
10053 #define HAVE_IFACE_AIX 1
10054 #define AUTOCONF_TEST 1
10055 #include "confdefs.h"
10056 #include "${srcdir-.}/lib/interfaces.c"
10058 if { (eval echo configure
:10059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10060 samba_cv_HAVE_IFACE_AIX
=yes
10062 echo "configure: failed program was:" >&5
10063 cat conftest.
$ac_ext >&5
10065 samba_cv_HAVE_IFACE_AIX
=no
10072 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10073 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
10074 iface
=yes;cat >> confdefs.h
<<\EOF
10075 #define HAVE_IFACE_AIX 1
10080 if test $iface = no
; then
10081 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10082 echo "configure:10083: checking for iface ifconf" >&5
10083 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10084 echo $ac_n "(cached) $ac_c" 1>&6
10087 if test "$cross_compiling" = yes; then
10088 samba_cv_HAVE_IFACE_IFCONF
=cross
10090 cat > conftest.
$ac_ext <<EOF
10091 #line 10092 "configure"
10092 #include "confdefs.h"
10094 #define HAVE_IFACE_IFCONF 1
10095 #define AUTOCONF_TEST 1
10096 #include "confdefs.h"
10097 #include "${srcdir-.}/lib/interfaces.c"
10099 if { (eval echo configure
:10100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10101 samba_cv_HAVE_IFACE_IFCONF
=yes
10103 echo "configure: failed program was:" >&5
10104 cat conftest.
$ac_ext >&5
10106 samba_cv_HAVE_IFACE_IFCONF
=no
10113 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10114 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
10115 iface
=yes;cat >> confdefs.h
<<\EOF
10116 #define HAVE_IFACE_IFCONF 1
10122 if test $iface = no
; then
10123 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10124 echo "configure:10125: checking for iface ifreq" >&5
10125 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10126 echo $ac_n "(cached) $ac_c" 1>&6
10129 if test "$cross_compiling" = yes; then
10130 samba_cv_HAVE_IFACE_IFREQ
=cross
10132 cat > conftest.
$ac_ext <<EOF
10133 #line 10134 "configure"
10134 #include "confdefs.h"
10136 #define HAVE_IFACE_IFREQ 1
10137 #define AUTOCONF_TEST 1
10138 #include "confdefs.h"
10139 #include "${srcdir-.}/lib/interfaces.c"
10141 if { (eval echo configure
:10142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10143 samba_cv_HAVE_IFACE_IFREQ
=yes
10145 echo "configure: failed program was:" >&5
10146 cat conftest.
$ac_ext >&5
10148 samba_cv_HAVE_IFACE_IFREQ
=no
10155 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10156 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
10157 iface
=yes;cat >> confdefs.h
<<\EOF
10158 #define HAVE_IFACE_IFREQ 1
10165 ################################################
10166 # look for a method of setting the effective uid
10168 if test $seteuid = no
; then
10169 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10170 echo "configure:10171: checking for setresuid" >&5
10171 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10172 echo $ac_n "(cached) $ac_c" 1>&6
10175 if test "$cross_compiling" = yes; then
10176 samba_cv_USE_SETRESUID
=cross
10178 cat > conftest.
$ac_ext <<EOF
10179 #line 10180 "configure"
10180 #include "confdefs.h"
10182 #define AUTOCONF_TEST 1
10183 #define USE_SETRESUID 1
10184 #include "confdefs.h"
10185 #include "${srcdir-.}/lib/util_sec.c"
10187 if { (eval echo configure
:10188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10189 samba_cv_USE_SETRESUID
=yes
10191 echo "configure: failed program was:" >&5
10192 cat conftest.
$ac_ext >&5
10194 samba_cv_USE_SETRESUID
=no
10201 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10202 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
10203 seteuid
=yes;cat >> confdefs.h
<<\EOF
10204 #define USE_SETRESUID 1
10211 if test $seteuid = no
; then
10212 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10213 echo "configure:10214: checking for setreuid" >&5
10214 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10215 echo $ac_n "(cached) $ac_c" 1>&6
10218 if test "$cross_compiling" = yes; then
10219 samba_cv_USE_SETREUID
=cross
10221 cat > conftest.
$ac_ext <<EOF
10222 #line 10223 "configure"
10223 #include "confdefs.h"
10225 #define AUTOCONF_TEST 1
10226 #define USE_SETREUID 1
10227 #include "confdefs.h"
10228 #include "${srcdir-.}/lib/util_sec.c"
10230 if { (eval echo configure
:10231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10232 samba_cv_USE_SETREUID
=yes
10234 echo "configure: failed program was:" >&5
10235 cat conftest.
$ac_ext >&5
10237 samba_cv_USE_SETREUID
=no
10244 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10245 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
10246 seteuid
=yes;cat >> confdefs.h
<<\EOF
10247 #define USE_SETREUID 1
10253 if test $seteuid = no
; then
10254 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10255 echo "configure:10256: checking for seteuid" >&5
10256 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10257 echo $ac_n "(cached) $ac_c" 1>&6
10260 if test "$cross_compiling" = yes; then
10261 samba_cv_USE_SETEUID
=cross
10263 cat > conftest.
$ac_ext <<EOF
10264 #line 10265 "configure"
10265 #include "confdefs.h"
10267 #define AUTOCONF_TEST 1
10268 #define USE_SETEUID 1
10269 #include "confdefs.h"
10270 #include "${srcdir-.}/lib/util_sec.c"
10272 if { (eval echo configure
:10273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10274 samba_cv_USE_SETEUID
=yes
10276 echo "configure: failed program was:" >&5
10277 cat conftest.
$ac_ext >&5
10279 samba_cv_USE_SETEUID
=no
10286 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10287 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
10288 seteuid
=yes;cat >> confdefs.h
<<\EOF
10289 #define USE_SETEUID 1
10295 if test $seteuid = no
; then
10296 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10297 echo "configure:10298: checking for setuidx" >&5
10298 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10299 echo $ac_n "(cached) $ac_c" 1>&6
10302 if test "$cross_compiling" = yes; then
10303 samba_cv_USE_SETUIDX
=cross
10305 cat > conftest.
$ac_ext <<EOF
10306 #line 10307 "configure"
10307 #include "confdefs.h"
10309 #define AUTOCONF_TEST 1
10310 #define USE_SETUIDX 1
10311 #include "confdefs.h"
10312 #include "${srcdir-.}/lib/util_sec.c"
10314 if { (eval echo configure
:10315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10316 samba_cv_USE_SETUIDX
=yes
10318 echo "configure: failed program was:" >&5
10319 cat conftest.
$ac_ext >&5
10321 samba_cv_USE_SETUIDX
=no
10328 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10329 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
10330 seteuid
=yes;cat >> confdefs.h
<<\EOF
10331 #define USE_SETUIDX 1
10338 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10339 echo "configure:10340: checking for working mmap" >&5
10340 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10341 echo $ac_n "(cached) $ac_c" 1>&6
10344 if test "$cross_compiling" = yes; then
10345 samba_cv_HAVE_MMAP
=cross
10347 cat > conftest.
$ac_ext <<EOF
10348 #line 10349 "configure"
10349 #include "confdefs.h"
10350 #include "${srcdir-.}/tests/shared_mmap.c"
10352 if { (eval echo configure
:10353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10354 samba_cv_HAVE_MMAP
=yes
10356 echo "configure: failed program was:" >&5
10357 cat conftest.
$ac_ext >&5
10359 samba_cv_HAVE_MMAP
=no
10366 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10367 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
10368 cat >> confdefs.h
<<\EOF
10369 #define HAVE_MMAP 1
10374 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10375 echo "configure:10376: checking for ftruncate needs root" >&5
10376 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10377 echo $ac_n "(cached) $ac_c" 1>&6
10380 if test "$cross_compiling" = yes; then
10381 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
10383 cat > conftest.
$ac_ext <<EOF
10384 #line 10385 "configure"
10385 #include "confdefs.h"
10386 #include "${srcdir-.}/tests/ftruncroot.c"
10388 if { (eval echo configure
:10389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10390 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
10392 echo "configure: failed program was:" >&5
10393 cat conftest.
$ac_ext >&5
10395 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
10402 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10403 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
10404 cat >> confdefs.h
<<\EOF
10405 #define FTRUNCATE_NEEDS_ROOT 1
10410 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10411 echo "configure:10412: checking for fcntl locking" >&5
10412 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10413 echo $ac_n "(cached) $ac_c" 1>&6
10416 if test "$cross_compiling" = yes; then
10417 samba_cv_HAVE_FCNTL_LOCK
=cross
10419 cat > conftest.
$ac_ext <<EOF
10420 #line 10421 "configure"
10421 #include "confdefs.h"
10422 #include "${srcdir-.}/tests/fcntl_lock.c"
10424 if { (eval echo configure
:10425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10426 samba_cv_HAVE_FCNTL_LOCK
=yes
10428 echo "configure: failed program was:" >&5
10429 cat conftest.
$ac_ext >&5
10431 samba_cv_HAVE_FCNTL_LOCK
=no
10438 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10439 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
10440 cat >> confdefs.h
<<\EOF
10441 #define HAVE_FCNTL_LOCK 1
10446 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10447 echo "configure:10448: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10448 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10449 echo $ac_n "(cached) $ac_c" 1>&6
10452 if test "$cross_compiling" = yes; then
10453 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
10455 cat > conftest.
$ac_ext <<EOF
10456 #line 10457 "configure"
10457 #include "confdefs.h"
10458 #include "${srcdir-.}/tests/fcntl_lock64.c"
10460 if { (eval echo configure
:10461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10462 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
10464 echo "configure: failed program was:" >&5
10465 cat conftest.
$ac_ext >&5
10467 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
10474 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10475 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
10476 cat >> confdefs.h
<<\EOF
10477 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10484 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10485 echo "configure:10486: checking for 64 bit fcntl locking" >&5
10486 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10487 echo $ac_n "(cached) $ac_c" 1>&6
10490 if test "$cross_compiling" = yes; then
10491 samba_cv_HAVE_STRUCT_FLOCK64
=cross
10493 cat > conftest.
$ac_ext <<EOF
10494 #line 10495 "configure"
10495 #include "confdefs.h"
10497 #if defined(HAVE_UNISTD_H)
10498 #include <unistd.h>
10501 #include <stdlib.h>
10503 #ifdef HAVE_FCNTL_H
10507 #ifdef HAVE_SYS_FCNTL_H
10508 #include <sys/fcntl.h>
10510 main() { struct flock64 fl64;
10511 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10518 if { (eval echo configure
:10519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10520 samba_cv_HAVE_STRUCT_FLOCK64
=yes
10522 echo "configure: failed program was:" >&5
10523 cat conftest.
$ac_ext >&5
10525 samba_cv_HAVE_STRUCT_FLOCK64
=no
10532 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10534 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
10535 cat >> confdefs.h
<<\EOF
10536 #define HAVE_STRUCT_FLOCK64 1
10542 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10543 echo "configure:10544: checking for a crypt that needs truncated salt" >&5
10544 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
10545 echo $ac_n "(cached) $ac_c" 1>&6
10548 if test "$cross_compiling" = yes; then
10549 samba_cv_HAVE_TRUNCATED_SALT
=cross
10551 cat > conftest.
$ac_ext <<EOF
10552 #line 10553 "configure"
10553 #include "confdefs.h"
10554 #include "${srcdir-.}/tests/crypttest.c"
10556 if { (eval echo configure
:10557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10558 samba_cv_HAVE_TRUNCATED_SALT
=no
10560 echo "configure: failed program was:" >&5
10561 cat conftest.
$ac_ext >&5
10563 samba_cv_HAVE_TRUNCATED_SALT
=yes
10570 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10571 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
10572 cat >> confdefs.h
<<\EOF
10573 #define HAVE_TRUNCATED_SALT 1
10578 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10579 echo "configure:10580: checking for broken nisplus include files" >&5
10580 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10581 echo $ac_n "(cached) $ac_c" 1>&6
10584 cat > conftest.
$ac_ext <<EOF
10585 #line 10586 "configure"
10586 #include "confdefs.h"
10587 #include <sys/acl.h>
10588 #if defined(HAVE_RPCSVC_NIS_H)
10589 #include <rpcsvc/nis.h>
10595 if { (eval echo configure
:10596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10597 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
10599 echo "configure: failed program was:" >&5
10600 cat conftest.
$ac_ext >&5
10602 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
10607 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10608 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
10609 cat >> confdefs.h
<<\EOF
10610 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10616 #################################################
10617 # check for smbwrapper support
10618 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10619 echo "configure:10620: checking whether to use smbwrapper" >&5
10620 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10621 if test "${with_smbwrapper+set}" = set; then
10622 withval
="$with_smbwrapper"
10625 echo "$ac_t""yes" 1>&6
10626 cat >> confdefs.h
<<\EOF
10627 #define WITH_SMBWRAPPER 1
10630 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10632 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
10635 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
10638 # Conditions under which smbwrapper should not be built.
10640 if test x
$PICFLAG = x
; then
10641 echo No support
for PIC code
- disabling smbwrapper and smbsh
10644 elif test x
$ac_cv_func_syscall = xno
; then
10645 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10651 echo "$ac_t""no" 1>&6
10655 echo "$ac_t""no" 1>&6
10660 #################################################
10661 # check for the AFS filesystem
10662 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10663 echo "configure:10664: checking whether to use AFS" >&5
10664 # Check whether --with-afs or --without-afs was given.
10665 if test "${with_afs+set}" = set; then
10666 withval
="$with_afs"
10669 echo "$ac_t""yes" 1>&6
10670 cat >> confdefs.h
<<\EOF
10676 echo "$ac_t""no" 1>&6
10680 echo "$ac_t""no" 1>&6
10686 #################################################
10687 # check for the DFS auth system
10688 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
10689 echo "configure:10690: checking whether to use DFS auth" >&5
10690 # Check whether --with-dfs or --without-dfs was given.
10691 if test "${with_dfs+set}" = set; then
10692 withval
="$with_dfs"
10695 echo "$ac_t""yes" 1>&6
10696 cat >> confdefs.h
<<\EOF
10702 echo "$ac_t""no" 1>&6
10706 echo "$ac_t""no" 1>&6
10711 #################################################
10712 # check for Kerberos IV auth system
10713 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10714 echo "configure:10715: checking whether to use Kerberos IV" >&5
10715 # Check whether --with-krb4 or --without-krb4 was given.
10716 if test "${with_krb4+set}" = set; then
10717 withval
="$with_krb4"
10718 echo "$ac_t""yes" 1>&6
10719 cat >> confdefs.h
<<\EOF
10720 #define KRB4_AUTH 1
10723 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10724 echo "configure:10725: checking for dn_expand in -lresolv" >&5
10725 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10727 echo $ac_n "(cached) $ac_c" 1>&6
10729 ac_save_LIBS
="$LIBS"
10730 LIBS
="-lresolv $LIBS"
10731 cat > conftest.
$ac_ext <<EOF
10732 #line 10733 "configure"
10733 #include "confdefs.h"
10734 /* Override any gcc2 internal prototype to avoid an error. */
10735 /* We use char because int might match the return type of a gcc2
10736 builtin and then its argument prototype would still apply. */
10743 if { (eval echo configure
:10744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10745 eval "ac_cv_lib_$ac_lib_var=yes"
10747 echo "configure: failed program was:" >&5
10748 cat conftest.
$ac_ext >&5
10750 eval "ac_cv_lib_$ac_lib_var=no"
10753 LIBS
="$ac_save_LIBS"
10756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10757 echo "$ac_t""yes" 1>&6
10758 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10759 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10760 cat >> confdefs.h
<<EOF
10761 #define $ac_tr_lib 1
10764 LIBS
="-lresolv $LIBS"
10767 echo "$ac_t""no" 1>&6
10770 LIBS
="$LIBS -lkrb -ldes"
10771 CFLAGS
="$CFLAGS -I$withval/include"
10772 LDFLAGS
="$LDFLAGS -L$withval/lib"
10774 echo "$ac_t""no" 1>&6
10779 #################################################
10780 # check for Kerberos 5 auth system
10781 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10782 echo "configure:10783: checking whether to use Kerberos 5" >&5
10783 # Check whether --with-krb5 or --without-krb5 was given.
10784 if test "${with_krb5+set}" = set; then
10785 withval
="$with_krb5"
10786 echo "$ac_t""yes" 1>&6
10787 cat >> confdefs.h
<<\EOF
10788 #define KRB5_AUTH 1
10791 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
10792 CFLAGS
="$CFLAGS -I$withval/include"
10793 LDFLAGS
="$LDFLAGS -L$withval/lib"
10795 echo "$ac_t""no" 1>&6
10800 #################################################
10801 # check for automount support
10802 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
10803 echo "configure:10804: checking whether to use AUTOMOUNT" >&5
10804 # Check whether --with-automount or --without-automount was given.
10805 if test "${with_automount+set}" = set; then
10806 withval
="$with_automount"
10809 echo "$ac_t""yes" 1>&6
10810 cat >> confdefs.h
<<\EOF
10811 #define WITH_AUTOMOUNT 1
10816 echo "$ac_t""no" 1>&6
10820 echo "$ac_t""no" 1>&6
10825 #################################################
10826 # check for smbmount support
10827 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
10828 echo "configure:10829: checking whether to use SMBMOUNT" >&5
10829 # Check whether --with-smbmount or --without-smbmount was given.
10830 if test "${with_smbmount+set}" = set; then
10831 withval
="$with_smbmount"
10834 echo "$ac_t""yes" 1>&6
10835 cat >> confdefs.h
<<\EOF
10836 #define WITH_SMBMOUNT 1
10839 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
10842 echo "$ac_t""no" 1>&6
10847 echo "$ac_t""no" 1>&6
10854 #################################################
10855 # check for a PAM password database
10856 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
10857 echo "configure:10858: checking whether to use PAM password database" >&5
10858 # Check whether --with-pam or --without-pam was given.
10859 if test "${with_pam+set}" = set; then
10860 withval
="$with_pam"
10863 echo "$ac_t""yes" 1>&6
10864 cat >> confdefs.h
<<\EOF
10871 echo "$ac_t""no" 1>&6
10875 echo "$ac_t""no" 1>&6
10880 #################################################
10881 # check for a TDB password database
10882 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
10883 echo "configure:10884: checking whether to use TDB password database" >&5
10884 # Check whether --with-tdbpwd or --without-tdbpwd was given.
10885 if test "${with_tdbpwd+set}" = set; then
10886 withval
="$with_tdbpwd"
10889 echo "$ac_t""yes" 1>&6
10890 cat >> confdefs.h
<<\EOF
10891 #define WITH_TDBPWD 1
10894 # AC_MSG_ERROR([TDB password database not supported in this version.])
10897 echo "$ac_t""no" 1>&6
10901 echo "$ac_t""no" 1>&6
10906 #################################################
10907 # removed until we get the code actually working
10910 # check for a LDAP password database
10911 #AC_MSG_CHECKING(whether to use LDAP password database)
10913 #[ --with-ldap Include LDAP support
10914 # --without-ldap Don't include LDAP support (default)],
10915 #[ case "$withval" in
10917 # AC_MSG_RESULT(yes)
10918 # AC_DEFINE(WITH_LDAP)
10919 # AC_MSG_ERROR([LDAP password database not supported in this version.])
10922 # AC_MSG_RESULT(no)
10925 # AC_MSG_RESULT(no)
10928 #################################################
10929 # check for a NISPLUS password database
10930 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
10931 echo "configure:10932: checking whether to use NISPLUS password database" >&5
10932 # Check whether --with-nisplus or --without-nisplus was given.
10933 if test "${with_nisplus+set}" = set; then
10934 withval
="$with_nisplus"
10937 echo "$ac_t""yes" 1>&6
10938 cat >> confdefs.h
<<\EOF
10939 #define WITH_NISPLUS 1
10944 echo "$ac_t""no" 1>&6
10948 echo "$ac_t""no" 1>&6
10953 #################################################
10954 # check for a NISPLUS_HOME support
10955 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
10956 echo "configure:10957: checking whether to use NISPLUS_HOME" >&5
10957 # Check whether --with-nisplus-home or --without-nisplus-home was given.
10958 if test "${with_nisplus_home+set}" = set; then
10959 withval
="$with_nisplus_home"
10962 echo "$ac_t""yes" 1>&6
10963 cat >> confdefs.h
<<\EOF
10964 #define WITH_NISPLUS_HOME 1
10969 echo "$ac_t""no" 1>&6
10973 echo "$ac_t""no" 1>&6
10978 #################################################
10979 # check for the secure socket layer
10980 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
10981 echo "configure:10982: checking whether to use SSL" >&5
10982 # Check whether --with-ssl or --without-ssl was given.
10983 if test "${with_ssl+set}" = set; then
10984 withval
="$with_ssl"
10987 echo "$ac_t""yes" 1>&6
10988 cat >> confdefs.h
<<\EOF
10992 withval
="/usr/local/ssl" # default
10994 if test "${with_sslinc+set}" = set; then
10996 withval
="$with_sslinc"
10999 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11000 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11001 LIBS
="-lssl -lcrypto $LIBS"
11002 LDFLAGS
="=L/usr/local/ssl/lib $LDFLAGS"
11005 CFLAGS
="-I${withval}/include $CFLAGS"
11006 LIBS
="-lssl -lcrypto $LIBS"
11007 LDFLAGS
="-L${withval}/lib $LDFLAGS"
11013 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11014 LIBS
="-lssl -lcrypto $LIBS"
11015 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
11019 if test ! -d ${withval}; then
11020 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11024 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11028 echo "$ac_t""no" 1>&6
11032 echo "$ac_t""no" 1>&6
11037 #################################################
11038 # check for syslog logging
11039 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11040 echo "configure:11041: checking whether to use syslog logging" >&5
11041 # Check whether --with-syslog or --without-syslog was given.
11042 if test "${with_syslog+set}" = set; then
11043 withval
="$with_syslog"
11046 echo "$ac_t""yes" 1>&6
11047 cat >> confdefs.h
<<\EOF
11048 #define WITH_SYSLOG 1
11053 echo "$ac_t""no" 1>&6
11057 echo "$ac_t""no" 1>&6
11062 #################################################
11063 # check for a shared memory profiling support
11064 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11065 echo "configure:11066: checking whether to use profiling" >&5
11066 # Check whether --with-profile or --without-profile was given.
11067 if test "${with_profile+set}" = set; then
11068 withval
="$with_profile"
11071 echo "$ac_t""yes" 1>&6
11072 cat >> confdefs.h
<<\EOF
11073 #define WITH_PROFILE 1
11078 echo "$ac_t""no" 1>&6
11082 echo "$ac_t""no" 1>&6
11088 #################################################
11089 # check for experimental netatalk resource fork support
11090 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
11091 echo "configure:11092: checking whether to support netatalk" >&5
11092 # Check whether --with-netatalk or --without-netatalk was given.
11093 if test "${with_netatalk+set}" = set; then
11094 withval
="$with_netatalk"
11097 echo "$ac_t""yes" 1>&6
11098 cat >> confdefs.h
<<\EOF
11099 #define WITH_NETATALK 1
11104 echo "$ac_t""no" 1>&6
11108 echo "$ac_t""no" 1>&6
11113 #################################################
11114 # check for experimental disk-quotas support
11115 QUOTAOBJS
=smbd
/noquotas.o
11117 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11118 echo "configure:11119: checking whether to support disk-quotas" >&5
11119 # Check whether --with-quotas or --without-quotas was given.
11120 if test "${with_quotas+set}" = set; then
11121 withval
="$with_quotas"
11124 echo "$ac_t""yes" 1>&6
11125 QUOTAOBJS
=smbd
/quotas.o
11128 echo "$ac_t""no" 1>&6
11132 echo "$ac_t""no" 1>&6
11138 #################################################
11139 # check for experimental utmp accounting
11141 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11142 echo "configure:11143: checking whether to support utmp accounting" >&5
11143 # Check whether --with-utmp or --without-utmp was given.
11144 if test "${with_utmp+set}" = set; then
11145 withval
="$with_utmp"
11148 echo "$ac_t""yes" 1>&6
11149 cat >> confdefs.h
<<\EOF
11150 #define WITH_UTMP 1
11155 echo "$ac_t""no" 1>&6
11159 echo "$ac_t""no" 1>&6
11164 #################################################
11165 # check for MS Dfs support
11167 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11168 echo "configure:11169: checking whether to support Microsoft Dfs" >&5
11169 # Check whether --with-msdfs or --without-msdfs was given.
11170 if test "${with_msdfs+set}" = set; then
11171 withval
="$with_msdfs"
11174 echo "$ac_t""yes" 1>&6
11175 cat >> confdefs.h
<<\EOF
11176 #define WITH_MSDFS 1
11181 echo "$ac_t""no" 1>&6
11185 echo "$ac_t""no" 1>&6
11190 #################################################
11191 # check for Samba VFS support
11193 echo $ac_n "checking whether to support the experimantal Samba vfs""... $ac_c" 1>&6
11194 echo "configure:11195: checking whether to support the experimantal Samba vfs" >&5
11195 # Check whether --with-vfs or --without-vfs was given.
11196 if test "${with_vfs+set}" = set; then
11197 withval
="$with_vfs"
11200 echo "$ac_t""yes" 1>&6
11201 cat >> confdefs.h
<<\EOF
11207 echo "$ac_t""no" 1>&6
11211 echo "$ac_t""no" 1>&6
11216 #################################################
11217 # these tests are taken from the GNU fileutils package
11218 echo "checking how to get filesystem space usage" 1>&6
11219 echo "configure:11220: checking how to get filesystem space usage" >&5
11222 # Test for statvfs64.
11223 if test $space = no
; then
11225 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11226 echo "configure:11227: checking statvfs64 function (SVR4)" >&5
11227 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11228 echo $ac_n "(cached) $ac_c" 1>&6
11230 if test "$cross_compiling" = yes; then
11231 fu_cv_sys_stat_statvfs64
=cross
11233 cat > conftest.
$ac_ext <<EOF
11234 #line 11235 "configure"
11235 #include "confdefs.h"
11237 #if defined(HAVE_UNISTD_H)
11238 #include <unistd.h>
11240 #include <sys/types.h>
11241 #include <sys/statvfs.h>
11244 struct statvfs64 fsd;
11245 exit (statvfs64 (".", &fsd));
11248 if { (eval echo configure
:11249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11250 fu_cv_sys_stat_statvfs64
=yes
11252 echo "configure: failed program was:" >&5
11253 cat conftest.
$ac_ext >&5
11255 fu_cv_sys_stat_statvfs64
=no
11262 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11263 if test $fu_cv_sys_stat_statvfs64 = yes; then
11265 cat >> confdefs.h
<<\EOF
11266 #define STAT_STATVFS64 1
11272 # Perform only the link test since it seems there are no variants of the
11273 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11274 # because that got a false positive on SCO OSR5. Adding the declaration
11275 # of a `struct statvfs' causes this test to fail (as it should) on such
11276 # systems. That system is reported to work fine with STAT_STATFS4 which
11277 # is what it gets when this test fails.
11278 if test $space = no
; then
11280 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11281 echo "configure:11282: checking statvfs function (SVR4)" >&5
11282 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11283 echo $ac_n "(cached) $ac_c" 1>&6
11285 cat > conftest.
$ac_ext <<EOF
11286 #line 11287 "configure"
11287 #include "confdefs.h"
11288 #include <sys/types.h>
11289 #include <sys/statvfs.h>
11291 struct statvfs fsd; statvfs (0, &fsd);
11294 if { (eval echo configure
:11295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11296 fu_cv_sys_stat_statvfs
=yes
11298 echo "configure: failed program was:" >&5
11299 cat conftest.
$ac_ext >&5
11301 fu_cv_sys_stat_statvfs
=no
11306 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11307 if test $fu_cv_sys_stat_statvfs = yes; then
11309 cat >> confdefs.h
<<\EOF
11310 #define STAT_STATVFS 1
11316 if test $space = no
; then
11317 # DEC Alpha running OSF/1
11318 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11319 echo "configure:11320: checking for 3-argument statfs function (DEC OSF/1)" >&5
11320 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11321 echo $ac_n "(cached) $ac_c" 1>&6
11323 if test "$cross_compiling" = yes; then
11324 fu_cv_sys_stat_statfs3_osf1
=no
11326 cat > conftest.
$ac_ext <<EOF
11327 #line 11328 "configure"
11328 #include "confdefs.h"
11330 #include <sys/param.h>
11331 #include <sys/types.h>
11332 #include <sys/mount.h>
11337 exit (statfs (".", &fsd, sizeof (struct statfs)));
11340 if { (eval echo configure
:11341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11342 fu_cv_sys_stat_statfs3_osf1
=yes
11344 echo "configure: failed program was:" >&5
11345 cat conftest.
$ac_ext >&5
11347 fu_cv_sys_stat_statfs3_osf1
=no
11354 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11355 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11357 cat >> confdefs.h
<<\EOF
11358 #define STAT_STATFS3_OSF1 1
11364 if test $space = no
; then
11366 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11367 echo "configure:11368: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11368 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11369 echo $ac_n "(cached) $ac_c" 1>&6
11371 if test "$cross_compiling" = yes; then
11372 fu_cv_sys_stat_statfs2_bsize
=no
11374 cat > conftest.
$ac_ext <<EOF
11375 #line 11376 "configure"
11376 #include "confdefs.h"
11378 #ifdef HAVE_SYS_PARAM_H
11379 #include <sys/param.h>
11381 #ifdef HAVE_SYS_MOUNT_H
11382 #include <sys/mount.h>
11384 #ifdef HAVE_SYS_VFS_H
11385 #include <sys/vfs.h>
11391 exit (statfs (".", &fsd));
11394 if { (eval echo configure
:11395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11396 fu_cv_sys_stat_statfs2_bsize
=yes
11398 echo "configure: failed program was:" >&5
11399 cat conftest.
$ac_ext >&5
11401 fu_cv_sys_stat_statfs2_bsize
=no
11408 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11409 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11411 cat >> confdefs.h
<<\EOF
11412 #define STAT_STATFS2_BSIZE 1
11418 if test $space = no
; then
11420 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11421 echo "configure:11422: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11422 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11423 echo $ac_n "(cached) $ac_c" 1>&6
11425 if test "$cross_compiling" = yes; then
11426 fu_cv_sys_stat_statfs4
=no
11428 cat > conftest.
$ac_ext <<EOF
11429 #line 11430 "configure"
11430 #include "confdefs.h"
11431 #include <sys/types.h>
11432 #include <sys/statfs.h>
11436 exit (statfs (".", &fsd, sizeof fsd, 0));
11439 if { (eval echo configure
:11440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11441 fu_cv_sys_stat_statfs4
=yes
11443 echo "configure: failed program was:" >&5
11444 cat conftest.
$ac_ext >&5
11446 fu_cv_sys_stat_statfs4
=no
11453 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11454 if test $fu_cv_sys_stat_statfs4 = yes; then
11456 cat >> confdefs.h
<<\EOF
11457 #define STAT_STATFS4 1
11463 if test $space = no
; then
11464 # 4.4BSD and NetBSD
11465 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11466 echo "configure:11467: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11467 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
11468 echo $ac_n "(cached) $ac_c" 1>&6
11470 if test "$cross_compiling" = yes; then
11471 fu_cv_sys_stat_statfs2_fsize
=no
11473 cat > conftest.
$ac_ext <<EOF
11474 #line 11475 "configure"
11475 #include "confdefs.h"
11476 #include <sys/types.h>
11477 #ifdef HAVE_SYS_PARAM_H
11478 #include <sys/param.h>
11480 #ifdef HAVE_SYS_MOUNT_H
11481 #include <sys/mount.h>
11487 exit (statfs (".", &fsd));
11490 if { (eval echo configure
:11491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11492 fu_cv_sys_stat_statfs2_fsize
=yes
11494 echo "configure: failed program was:" >&5
11495 cat conftest.
$ac_ext >&5
11497 fu_cv_sys_stat_statfs2_fsize
=no
11504 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
11505 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11507 cat >> confdefs.h
<<\EOF
11508 #define STAT_STATFS2_FSIZE 1
11514 if test $space = no
; then
11516 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
11517 echo "configure:11518: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11518 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
11519 echo $ac_n "(cached) $ac_c" 1>&6
11521 if test "$cross_compiling" = yes; then
11522 fu_cv_sys_stat_fs_data
=no
11524 cat > conftest.
$ac_ext <<EOF
11525 #line 11526 "configure"
11526 #include "confdefs.h"
11527 #include <sys/types.h>
11528 #ifdef HAVE_SYS_PARAM_H
11529 #include <sys/param.h>
11531 #ifdef HAVE_SYS_MOUNT_H
11532 #include <sys/mount.h>
11534 #ifdef HAVE_SYS_FS_TYPES_H
11535 #include <sys/fs_types.h>
11539 struct fs_data fsd;
11540 /* Ultrix's statfs returns 1 for success,
11541 0 for not mounted, -1 for failure. */
11542 exit (statfs (".", &fsd) != 1);
11545 if { (eval echo configure
:11546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11547 fu_cv_sys_stat_fs_data
=yes
11549 echo "configure: failed program was:" >&5
11550 cat conftest.
$ac_ext >&5
11552 fu_cv_sys_stat_fs_data
=no
11559 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
11560 if test $fu_cv_sys_stat_fs_data = yes; then
11562 cat >> confdefs.h
<<\EOF
11563 #define STAT_STATFS2_FS_DATA 1
11570 # As a gating factor for large file support, in order to
11571 # use <4GB files we must have the following minimal support
11573 # long long, and a 64 bit off_t or off64_t.
11574 # If we don't have all of these then disable large
11577 echo $ac_n "checking checking if large file support can be enabled""... $ac_c" 1>&6
11578 echo "configure:11579: checking checking if large file support can be enabled" >&5
11579 cat > conftest.
$ac_ext <<EOF
11580 #line 11581 "configure"
11581 #include "confdefs.h"
11583 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
11584 #include <sys/types.h>
11593 if { (eval echo configure
:11594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11595 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
11597 echo "configure: failed program was:" >&5
11598 cat conftest.
$ac_ext >&5
11600 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
11603 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
11605 cat >> confdefs.h
<<\EOF
11606 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
11613 # Check whether --with-spinlocks or --without-spinlocks was given.
11614 if test "${with_spinlocks+set}" = set; then
11615 withval
="$with_spinlocks"
11619 if test "x$with_spinlocks" = "xyes"; then
11620 cat >> confdefs.h
<<\EOF
11621 #define USE_SPINLOCKS 1
11625 case "$host_cpu" in
11627 cat >> confdefs.h
<<\EOF
11628 #define SPARC_SPINLOCKS 1
11633 i386|i486|i586|i686
)
11634 cat >> confdefs.h
<<\EOF
11635 #define INTEL_SPINLOCKS 1
11641 cat >> confdefs.h
<<\EOF
11642 #define MIPS_SPINLOCKS 1
11648 cat >> confdefs.h
<<\EOF
11649 #define POWERPC_SPINLOCKS 1
11656 #################################################
11657 # check for ACL support
11659 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
11660 echo "configure:11661: checking whether to support ACLs" >&5
11661 # Check whether --with-acl-support or --without-acl-support was given.
11662 if test "${with_acl_support+set}" = set; then
11663 withval
="$with_acl_support"
11669 echo "$ac_t""Using SVR4 ACLs" 1>&6
11670 cat >> confdefs.h
<<\EOF
11671 #define HAVE_UNIXWARE_ACLS 1
11676 echo "$ac_t""Using solaris ACLs" 1>&6
11677 cat >> confdefs.h
<<\EOF
11678 #define HAVE_SOLARIS_ACLS 1
11683 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
11684 echo "configure:11685: checking for acl_get_file in -lacl" >&5
11685 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
11686 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11687 echo $ac_n "(cached) $ac_c" 1>&6
11689 ac_save_LIBS
="$LIBS"
11691 cat > conftest.
$ac_ext <<EOF
11692 #line 11693 "configure"
11693 #include "confdefs.h"
11694 /* Override any gcc2 internal prototype to avoid an error. */
11695 /* We use char because int might match the return type of a gcc2
11696 builtin and then its argument prototype would still apply. */
11697 char acl_get_file();
11703 if { (eval echo configure
:11704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11705 eval "ac_cv_lib_$ac_lib_var=yes"
11707 echo "configure: failed program was:" >&5
11708 cat conftest.
$ac_ext >&5
11710 eval "ac_cv_lib_$ac_lib_var=no"
11713 LIBS
="$ac_save_LIBS"
11716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11717 echo "$ac_t""yes" 1>&6
11718 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11719 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11720 cat >> confdefs.h
<<EOF
11721 #define $ac_tr_lib 1
11727 echo "$ac_t""no" 1>&6
11730 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
11731 echo "configure:11732: checking for ACL support" >&5
11732 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
11733 echo $ac_n "(cached) $ac_c" 1>&6
11736 cat > conftest.
$ac_ext <<EOF
11737 #line 11738 "configure"
11738 #include "confdefs.h"
11739 #include <sys/types.h>
11740 #include <sys/acl.h>
11742 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
11745 if { (eval echo configure
:11746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11747 samba_cv_HAVE_POSIX_ACLS
=yes
11749 echo "configure: failed program was:" >&5
11750 cat conftest.
$ac_ext >&5
11752 samba_cv_HAVE_POSIX_ACLS
=no
11757 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
11758 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
11759 echo "$ac_t""Using posix ACLs" 1>&6
11760 cat >> confdefs.h
<<\EOF
11761 #define HAVE_POSIX_ACLS 1
11769 echo "$ac_t""no" 1>&6
11770 cat >> confdefs.h
<<\EOF
11771 #define HAVE_NO_ACLS 1
11777 cat >> confdefs.h
<<\EOF
11778 #define HAVE_NO_ACLS 1
11781 echo "$ac_t""no" 1>&6
11786 #################################################
11787 # check for the historical SAMBA installation
11789 if test "x$prefix" = xNONE
-a "$sbindir" = "\${exec_prefix}/sbin"; then
11790 # Put all binaries under the /usr/local/samba/bin directory.
11794 echo "checking configure summary"
11795 if test "$cross_compiling" = yes; then
11798 cat > conftest.
$ac_ext <<EOF
11799 #line 11800 "configure"
11800 #include "confdefs.h"
11801 #include "${srcdir-.}/tests/summary.c"
11803 if { (eval echo configure
:11804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11805 echo "configure OK";
11807 echo "configure: failed program was:" >&5
11808 cat conftest.
$ac_ext >&5
11810 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
11820 cat > confcache
<<\EOF
11821 # This file is a shell script that caches the results of configure
11822 # tests run on this system so they can be shared between configure
11823 # scripts and configure runs. It is not useful on other systems.
11824 # If it contains results you don't want to keep, you may remove or edit it.
11826 # By default, configure uses ./config.cache as the cache file,
11827 # creating it if it does not exist already. You can give configure
11828 # the --cache-file=FILE option to use a different cache file; that is
11829 # what configure does when it calls configure scripts in
11830 # subdirectories, so they share the cache.
11831 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11832 # config.status only pays attention to the cache file if you give it the
11833 # --recheck option to rerun configure.
11836 # The following way of writing the cache mishandles newlines in values,
11837 # but we know of no workaround that is simple, portable, and efficient.
11838 # So, don't put newlines in cache variables' values.
11839 # Ultrix sh set writes to stderr and can't be redirected directly,
11840 # and sets the high bit in the cache file unless we assign to the vars.
11842 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11844 # `set' does not quote correctly, so add quotes (double-quote substitution
11845 # turns \\\\ into \\, and sed turns \\ into \).
11847 -e "s/'/'\\\\''/g" \
11848 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11851 # `set' quotes correctly as required by POSIX, so do not add quotes.
11852 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11855 if cmp -s $cache_file confcache
; then
11858 if test -w $cache_file; then
11859 echo "updating cache $cache_file"
11860 cat confcache
> $cache_file
11862 echo "not updating unwritable cache $cache_file"
11867 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11869 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11870 # Let make expand exec_prefix.
11871 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11873 # Any assignment to VPATH causes Sun make to only execute
11874 # the first set of double-colon rules, so remove it if not needed.
11875 # If there is a colon in the path, we need to keep it.
11876 if test "x$srcdir" = x.
; then
11877 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
11880 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11882 DEFS
=-DHAVE_CONFIG_H
11884 # Without the "./", some shells look in PATH for config.status.
11885 : ${CONFIG_STATUS=./config.status}
11887 echo creating
$CONFIG_STATUS
11888 rm -f $CONFIG_STATUS
11889 cat > $CONFIG_STATUS <<EOF
11891 # Generated automatically by configure.
11892 # Run this file to recreate the current configuration.
11893 # This directory was configured as follows,
11894 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11896 # $0 $ac_configure_args
11898 # Compiler output produced by configure, useful for debugging
11899 # configure, is in ./config.log if it exists.
11901 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11904 case "\$ac_option" in
11905 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11906 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11907 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11908 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11909 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11911 -help | --help | --hel | --he | --h)
11912 echo "\$ac_cs_usage"; exit 0 ;;
11913 *) echo "\$ac_cs_usage"; exit 1 ;;
11917 ac_given_srcdir=$srcdir
11918 ac_given_INSTALL="$INSTALL"
11920 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11922 cat >> $CONFIG_STATUS <<EOF
11924 # Protect against being on the right side of a sed subst in config.status.
11925 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11926 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11930 s%@CFLAGS@%$CFLAGS%g
11931 s%@CPPFLAGS@%$CPPFLAGS%g
11932 s%@CXXFLAGS@%$CXXFLAGS%g
11933 s%@FFLAGS@%$FFLAGS%g
11935 s%@LDFLAGS@%$LDFLAGS%g
11937 s%@exec_prefix@%$exec_prefix%g
11938 s%@prefix@%$prefix%g
11939 s%@program_transform_name@%$program_transform_name%g
11940 s%@bindir@%$bindir%g
11941 s%@sbindir@%$sbindir%g
11942 s%@libexecdir@%$libexecdir%g
11943 s%@datadir@%$datadir%g
11944 s%@sysconfdir@%$sysconfdir%g
11945 s%@sharedstatedir@%$sharedstatedir%g
11946 s%@localstatedir@%$localstatedir%g
11947 s%@libdir@%$libdir%g
11948 s%@includedir@%$includedir%g
11949 s%@oldincludedir@%$oldincludedir%g
11950 s%@infodir@%$infodir%g
11951 s%@mandir@%$mandir%g
11952 s%@codepagedir@%$codepagedir%g
11953 s%@configdir@%$configdir%g
11954 s%@lockdir@%$lockdir%g
11955 s%@logfilebase@%$logfilebase%g
11956 s%@privatedir@%$privatedir%g
11957 s%@swatdir@%$swatdir%g
11958 s%@RUNPROG@%$RUNPROG%g
11959 s%@MPROGS@%$MPROGS%g
11960 s%@LDSHFLAGS@%$LDSHFLAGS%g
11961 s%@HOST_OS@%$HOST_OS%g
11963 s%@WRAP32@%$WRAP32%g
11964 s%@PICFLAG@%$PICFLAG%g
11965 s%@SHLIBEXT@%$SHLIBEXT%g
11967 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11968 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11969 s%@INSTALL_DATA@%$INSTALL_DATA%g
11972 s%@host_alias@%$host_alias%g
11973 s%@host_cpu@%$host_cpu%g
11974 s%@host_vendor@%$host_vendor%g
11975 s%@host_os@%$host_os%g
11977 s%@build_alias@%$build_alias%g
11978 s%@build_cpu@%$build_cpu%g
11979 s%@build_vendor@%$build_vendor%g
11980 s%@build_os@%$build_os%g
11981 s%@RANLIB@%$RANLIB%g
11983 s%@LIBTOOL@%$LIBTOOL%g
11984 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
11985 s%@BROKEN_CC@%$BROKEN_CC%g
11986 s%@target@%$target%g
11987 s%@target_alias@%$target_alias%g
11988 s%@target_cpu@%$target_cpu%g
11989 s%@target_vendor@%$target_vendor%g
11990 s%@target_os@%$target_os%g
11992 s%@LIBOBJS@%$LIBOBJS%g
11994 s%@QUOTAOBJS@%$QUOTAOBJS%g
11995 s%@builddir@%$builddir%g
12000 cat >> $CONFIG_STATUS <<\EOF
12002 # Split the substitutions into bite-sized pieces for seds with
12003 # small command number limits, like on Digital OSF/1 and HP-UX.
12004 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
12005 ac_file
=1 # Number of current file.
12006 ac_beg
=1 # First line for current file.
12007 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
12010 while $ac_more_lines; do
12011 if test $ac_beg -gt 1; then
12012 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
12014 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
12016 if test ! -s conftest.s
$ac_file; then
12017 ac_more_lines
=false
12018 rm -f conftest.s
$ac_file
12020 if test -z "$ac_sed_cmds"; then
12021 ac_sed_cmds
="sed -f conftest.s$ac_file"
12023 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
12025 ac_file
=`expr $ac_file + 1`
12027 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
12030 if test -z "$ac_sed_cmds"; then
12035 cat >> $CONFIG_STATUS <<EOF
12037 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12039 cat >> $CONFIG_STATUS <<\EOF
12040 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
12041 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12043 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12044 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12045 *) ac_file_in
="${ac_file}.in" ;;
12048 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12050 # Remove last slash and all that follows it. Not all systems have dirname.
12051 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12052 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
12053 # The file is in a subdirectory.
12054 test ! -d "$ac_dir" && mkdir
"$ac_dir"
12055 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
12056 # A "../" for each directory in $ac_dir_suffix.
12057 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12059 ac_dir_suffix
= ac_dots
=
12062 case "$ac_given_srcdir" in
12064 if test -z "$ac_dots"; then top_srcdir
=.
12065 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12066 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
12067 *) # Relative path.
12068 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12069 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
12072 case "$ac_given_INSTALL" in
12073 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
12074 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
12077 echo creating
"$ac_file"
12079 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12081 *Makefile
*) ac_comsub
="1i\\
12082 # $configure_input" ;;
12086 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12088 s%@configure_input@%$configure_input%g
12089 s%@srcdir@%$srcdir%g
12090 s%@top_srcdir@%$top_srcdir%g
12091 s%@INSTALL@%$INSTALL%g
12092 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
12096 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12097 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12099 # ac_d sets the value in "#define NAME VALUE" lines.
12100 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12101 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
12104 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12105 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12106 ac_uB
='\([ ]\)%\1#\2define\3'
12109 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12110 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12111 ac_eB
='$%\1#\2define\3'
12115 if test "${CONFIG_HEADERS+set}" != set; then
12117 cat >> $CONFIG_STATUS <<EOF
12118 CONFIG_HEADERS="include/config.h"
12120 cat >> $CONFIG_STATUS <<\EOF
12122 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
12123 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12125 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12126 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12127 *) ac_file_in
="${ac_file}.in" ;;
12130 echo creating
$ac_file
12132 rm -f conftest.frag conftest.
in conftest.out
12133 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12134 cat $ac_file_inputs > conftest.
in
12138 # Transform confdefs.h into a sed script conftest.vals that substitutes
12139 # the proper values into config.h.in to produce config.h. And first:
12140 # Protect against being on the right side of a sed subst in config.status.
12141 # Protect against being in an unquoted here document in config.status.
12142 rm -f conftest.vals
12143 cat > conftest.hdr
<<\EOF
12146 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12150 sed -n -f conftest.hdr confdefs.h > conftest.vals
12153 # This sed command replaces #undef with comments. This is necessary, for
12154 # example, in the case of _POSIX_SOURCE, which is predefined and required
12155 # on some systems where configure will not decide to define it.
12156 cat >> conftest.vals <<\EOF
12157 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12160 # Break up conftest.vals because some shells have a limit on
12161 # the size of here documents, and old seds have small limits too.
12163 rm -f conftest.tail
12166 ac_lines=`grep -c . conftest.vals
`
12167 # grep -c gives empty output for an empty file on some AIX systems.
12168 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12169 # Write a limited-size here document to conftest.frag.
12170 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12171 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12173 sed -f conftest.frag conftest.in > conftest.out
12175 mv conftest.out conftest.in
12176 ' >> $CONFIG_STATUS
12177 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12178 rm -f conftest.vals
12179 mv conftest.tail conftest.vals
12181 rm -f conftest.vals
12183 cat >> $CONFIG_STATUS <<\EOF
12184 rm -f conftest.frag conftest.h
12185 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12186 cat conftest.in >> conftest.h
12188 if cmp -s $ac_file conftest.h 2>/dev/null; then
12189 echo "$ac_file is unchanged"
12192 # Remove last slash and all that follows it. Not all systems have dirname.
12193 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
12194 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12195 # The file is in a subdirectory.
12196 test ! -d "$ac_dir" && mkdir "$ac_dir"
12199 mv conftest.h $ac_file
12204 cat >> $CONFIG_STATUS <<EOF
12207 cat >> $CONFIG_STATUS <<\EOF
12211 chmod +x $CONFIG_STATUS
12212 rm -fr confdefs* $ac_clean_files
12213 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1