3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --enable-maintainer-mode enable some make rules for maintainers"
18 --with-smbwrapper Include SMB wrapper support
19 --without-smbwrapper Don't include SMB wrapper support (default)"
21 --with-afs Include AFS support
22 --without-afs Don't include AFS support (default)"
24 --with-dfs Include DFS support
25 --without-dfs Don't include DFS support (default)"
27 --with-krb4=base-dir Include Kerberos IV support
28 --whithout-krb4 Don't include Kerbers IV support (default)"
30 --with-automount Include AUTOMOUNT support
31 --without-automount Don't include AUTOMOUNT support (default)"
33 --with-smbmount Include SMBMOUNT (Linux only) support
34 --without-smbmount Don't include SMBMOUNT support (default)"
36 --with-ldap Include LDAP support
37 --without-ldap Don't include LDAP support (default)"
39 --with-nisplus Include NISPLUS password database support
40 --without-nisplus Don't include NISPLUS password database support (default)"
42 --with-nisplus-home Include NISPLUS_HOME support
43 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
45 --with-ssl Include SSL support
46 --without-ssl Don't include SSL support (default)"
48 --with-mmap Include experimental MMAP support
49 --without-mmap Don't include MMAP support (default)"
51 --with-syslog Include experimental SYSLOG support
52 --without-syslog Don't include SYSLOG support (default)"
54 --with-netatalk Include experimental Netatalk support
55 --without-netatalk Don't include experimental Netatalk support (default)"
57 --with-quotas Include experimental disk-quota support
58 --without-quotas Don't include experimental disk-quota support (default)"
60 # Initialize some variables set by options.
61 # The variables have the same names as the options, with
62 # dashes changed to underlines.
64 cache_file
=.
/config.cache
73 program_transform_name
=s
,x
,x
,
81 bindir
='${exec_prefix}/bin'
82 sbindir
='${exec_prefix}/sbin'
83 libexecdir
='${exec_prefix}/libexec'
84 datadir
='${prefix}/share'
85 sysconfdir
='${prefix}/etc'
86 sharedstatedir
='${prefix}/com'
87 localstatedir
='${prefix}/var'
88 libdir
='${exec_prefix}/lib'
89 includedir
='${prefix}/include'
90 oldincludedir
='/usr/include'
91 infodir
='${prefix}/info'
92 mandir
='${prefix}/man'
94 # Initialize some other variables.
97 # Maximum number of lines to put in a shell here document.
104 # If the previous option needs an argument, assign it.
105 if test -n "$ac_prev"; then
106 eval "$ac_prev=\$ac_option"
112 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
116 # Accept the important Cygnus configure options, so we can diagnose typos.
120 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
122 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
123 bindir
="$ac_optarg" ;;
125 -build |
--build |
--buil |
--bui |
--bu)
127 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
128 build
="$ac_optarg" ;;
130 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
131 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
132 ac_prev
=cache_file
;;
133 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
134 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
135 cache_file
="$ac_optarg" ;;
137 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
139 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
141 datadir
="$ac_optarg" ;;
143 -disable-* |
--disable-*)
144 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
145 # Reject names that are not valid shell variable names.
146 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
147 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
149 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}=no" ;;
152 -enable-* |
--enable-*)
153 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
154 # Reject names that are not valid shell variable names.
155 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
156 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
158 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}='$ac_optarg'" ;;
165 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
166 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
167 |
--exec |
--exe |
--ex)
168 ac_prev
=exec_prefix
;;
169 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
170 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
171 |
--exec=* |
--exe=* |
--ex=*)
172 exec_prefix
="$ac_optarg" ;;
174 -gas |
--gas |
--ga |
--g)
175 # Obsolete; use --with-gas.
178 -help |
--help |
--hel |
--he)
179 # Omit some internal or obsolete options to make the list less imposing.
180 # This message is too long to be a string in the A/UX 3.1 sh.
182 Usage: configure [options] [host]
183 Options: [defaults in brackets after descriptions]
185 --cache-file=FILE cache test results in FILE
186 --help print this message
187 --no-create do not create output files
188 --quiet, --silent do not print \`checking...' messages
189 --version print the version of autoconf that created configure
190 Directory and file names:
191 --prefix=PREFIX install architecture-independent files in PREFIX
193 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
195 --bindir=DIR user executables in DIR [EPREFIX/bin]
196 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
197 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
198 --datadir=DIR read-only architecture-independent data in DIR
200 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
201 --sharedstatedir=DIR modifiable architecture-independent data in DIR
203 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
204 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
205 --includedir=DIR C header files in DIR [PREFIX/include]
206 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
207 --infodir=DIR info documentation in DIR [PREFIX/info]
208 --mandir=DIR man documentation in DIR [PREFIX/man]
209 --srcdir=DIR find the sources in DIR [configure dir or ..]
210 --program-prefix=PREFIX prepend PREFIX to installed program names
211 --program-suffix=SUFFIX append SUFFIX to installed program names
212 --program-transform-name=PROGRAM
213 run sed PROGRAM on installed program names
217 --build=BUILD configure for building on BUILD [BUILD=HOST]
218 --host=HOST configure for HOST [guessed]
219 --target=TARGET configure for TARGET [TARGET=HOST]
220 Features and packages:
221 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
222 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
223 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
224 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
225 --x-includes=DIR X include files are in DIR
226 --x-libraries=DIR X library files are in DIR
228 if test -n "$ac_help"; then
229 echo "--enable and --with options recognized:$ac_help"
233 -host |
--host |
--hos |
--ho)
235 -host=* |
--host=* |
--hos=* |
--ho=*)
238 -includedir |
--includedir |
--includedi |
--included |
--include \
239 |
--includ |
--inclu |
--incl |
--inc)
240 ac_prev
=includedir
;;
241 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
242 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
243 includedir
="$ac_optarg" ;;
245 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
247 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
248 infodir
="$ac_optarg" ;;
250 -libdir |
--libdir |
--libdi |
--libd)
252 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
253 libdir
="$ac_optarg" ;;
255 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
256 |
--libexe |
--libex |
--libe)
257 ac_prev
=libexecdir
;;
258 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
259 |
--libexe=* |
--libex=* |
--libe=*)
260 libexecdir
="$ac_optarg" ;;
262 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
263 |
--localstate |
--localstat |
--localsta |
--localst \
264 |
--locals |
--local |
--loca |
--loc |
--lo)
265 ac_prev
=localstatedir
;;
266 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
267 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
268 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
269 localstatedir
="$ac_optarg" ;;
271 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
273 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
274 mandir
="$ac_optarg" ;;
277 # Obsolete; use --without-fp.
280 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
284 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
285 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
288 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
289 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
290 |
--oldin |
--oldi |
--old |
--ol |
--o)
291 ac_prev
=oldincludedir
;;
292 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
293 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
294 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
295 oldincludedir
="$ac_optarg" ;;
297 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
299 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
300 prefix
="$ac_optarg" ;;
302 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
303 |
--program-pre |
--program-pr |
--program-p)
304 ac_prev
=program_prefix
;;
305 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
306 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
307 program_prefix
="$ac_optarg" ;;
309 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
310 |
--program-suf |
--program-su |
--program-s)
311 ac_prev
=program_suffix
;;
312 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
313 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
314 program_suffix
="$ac_optarg" ;;
316 -program-transform-name |
--program-transform-name \
317 |
--program-transform-nam |
--program-transform-na \
318 |
--program-transform-n |
--program-transform- \
319 |
--program-transform |
--program-transfor \
320 |
--program-transfo |
--program-transf \
321 |
--program-trans |
--program-tran \
322 |
--progr-tra |
--program-tr |
--program-t)
323 ac_prev
=program_transform_name
;;
324 -program-transform-name=* |
--program-transform-name=* \
325 |
--program-transform-nam=* |
--program-transform-na=* \
326 |
--program-transform-n=* |
--program-transform-=* \
327 |
--program-transform=* |
--program-transfor=* \
328 |
--program-transfo=* |
--program-transf=* \
329 |
--program-trans=* |
--program-tran=* \
330 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
331 program_transform_name
="$ac_optarg" ;;
333 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
334 |
-silent |
--silent |
--silen |
--sile |
--sil)
337 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
339 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
341 sbindir
="$ac_optarg" ;;
343 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
344 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
345 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
347 ac_prev
=sharedstatedir
;;
348 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
349 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
350 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
352 sharedstatedir
="$ac_optarg" ;;
354 -site |
--site |
--sit)
356 -site=* |
--site=* |
--sit=*)
359 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
361 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
362 srcdir
="$ac_optarg" ;;
364 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
365 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
366 ac_prev
=sysconfdir
;;
367 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
368 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
369 sysconfdir
="$ac_optarg" ;;
371 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
373 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
374 target
="$ac_optarg" ;;
376 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
379 -version |
--version |
--versio |
--versi |
--vers)
380 echo "configure generated by autoconf version 2.12"
384 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package
=`echo $ac_package| sed 's/-/_/g'`
394 eval "with_${ac_package}='$ac_optarg'" ;;
396 -without-* |
--without-*)
397 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package
=`echo $ac_package| sed 's/-/_/g'`
403 eval "with_${ac_package}=no" ;;
406 # Obsolete; use --with-x.
409 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
410 |
--x-incl |
--x-inc |
--x-in |
--x-i)
411 ac_prev
=x_includes
;;
412 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
413 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
414 x_includes
="$ac_optarg" ;;
416 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
417 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
418 ac_prev
=x_libraries
;;
419 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
420 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
421 x_libraries
="$ac_optarg" ;;
423 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
427 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
428 echo "configure: warning: $ac_option: invalid host type" 1>&2
430 if test "x$nonopt" != xNONE
; then
431 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
439 if test -n "$ac_prev"; then
440 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
443 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
445 # File descriptor usage:
448 # 2 errors and warnings
449 # 3 some systems may open it to /dev/tty
450 # 4 used on the Kubota Titan
451 # 6 checking for... messages and results
452 # 5 compiler messages saved in config.log
453 if test "$silent" = yes; then
461 This file contains any messages produced by compilers while
462 running configure, to aid debugging if configure makes a mistake.
465 # Strip out --no-create and --no-recursion so they do not pile up.
466 # Also quote any args containing shell metacharacters.
471 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
472 |
--no-cr |
--no-c) ;;
473 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
474 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
475 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
476 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
477 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
482 # Only set these to C if already set. These must not be set unconditionally
483 # because not all systems understand e.g. LANG=C (notably SCO).
484 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
485 # Non-C LC_CTYPE values break the ctype check.
486 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
487 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
488 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
489 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
491 # confdefs.h avoids OS command line length limits that DEFS can exceed.
492 rm -rf conftest
* confdefs.h
493 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
496 # A filename unique to this package, relative to the directory that
497 # configure is in, which we can look for to find out if srcdir is correct.
498 ac_unique_file
=include
/includes.h
500 # Find the source files, if location was not specified.
501 if test -z "$srcdir"; then
502 ac_srcdir_defaulted
=yes
503 # Try the directory containing this script, then its parent.
505 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
506 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
508 if test ! -r $srcdir/$ac_unique_file; then
512 ac_srcdir_defaulted
=no
514 if test ! -r $srcdir/$ac_unique_file; then
515 if test "$ac_srcdir_defaulted" = yes; then
516 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
518 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
521 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
523 # Prefer explicitly selected file to automatically selected ones.
524 if test -z "$CONFIG_SITE"; then
525 if test "x$prefix" != xNONE
; then
526 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
528 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
531 for ac_site_file
in $CONFIG_SITE; do
532 if test -r "$ac_site_file"; then
533 echo "loading site script $ac_site_file"
538 if test -r "$cache_file"; then
539 echo "loading cache $cache_file"
542 echo "creating cache $cache_file"
547 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
548 ac_cpp
='$CPP $CPPFLAGS'
549 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
550 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
551 cross_compiling
=$ac_cv_prog_cc_cross
553 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
554 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
555 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
562 ac_n
= ac_c
='\c' ac_t
=
567 # we want to be compatibe with older versions of Samba
578 # compile with optimisation and without debugging by default
579 CFLAGS
=${CFLAGS-"-O"}
581 # Extract the first word of "gcc", so it can be a program name with args.
582 set dummy gcc
; ac_word
=$2
583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
584 echo "configure:585: checking for $ac_word" >&5
585 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
586 echo $ac_n "(cached) $ac_c" 1>&6
588 if test -n "$CC"; then
589 ac_cv_prog_CC
="$CC" # Let the user override the test.
591 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
592 for ac_dir
in $PATH; do
593 test -z "$ac_dir" && ac_dir
=.
594 if test -f $ac_dir/$ac_word; then
603 if test -n "$CC"; then
604 echo "$ac_t""$CC" 1>&6
606 echo "$ac_t""no" 1>&6
609 if test -z "$CC"; then
610 # Extract the first word of "cc", so it can be a program name with args.
611 set dummy cc
; ac_word
=$2
612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
613 echo "configure:614: checking for $ac_word" >&5
614 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
615 echo $ac_n "(cached) $ac_c" 1>&6
617 if test -n "$CC"; then
618 ac_cv_prog_CC
="$CC" # Let the user override the test.
620 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
622 for ac_dir
in $PATH; do
623 test -z "$ac_dir" && ac_dir
=.
624 if test -f $ac_dir/$ac_word; then
625 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
634 if test $ac_prog_rejected = yes; then
635 # We found a bogon in the path, so make sure we never use it.
636 set dummy
$ac_cv_prog_CC
638 if test $# -gt 0; then
639 # We chose a different compiler from the bogus one.
640 # However, it has the same basename, so the bogon will be chosen
641 # first if we set CC to just the basename; use the full file name.
643 set dummy
"$ac_dir/$ac_word" "$@"
651 if test -n "$CC"; then
652 echo "$ac_t""$CC" 1>&6
654 echo "$ac_t""no" 1>&6
657 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
660 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
661 echo "configure:662: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
665 ac_cpp
='$CPP $CPPFLAGS'
666 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
667 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
668 cross_compiling
=$ac_cv_prog_cc_cross
670 cat > conftest.
$ac_ext <<EOF
671 #line 672 "configure"
672 #include "confdefs.h"
675 if { (eval echo configure
:676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
676 ac_cv_prog_cc_works
=yes
677 # If we can't run a trivial program, we are probably using a cross compiler.
678 if (.
/conftest
; exit) 2>/dev
/null
; then
679 ac_cv_prog_cc_cross
=no
681 ac_cv_prog_cc_cross
=yes
684 echo "configure: failed program was:" >&5
685 cat conftest.
$ac_ext >&5
686 ac_cv_prog_cc_works
=no
690 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
691 if test $ac_cv_prog_cc_works = no
; then
692 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
694 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
695 echo "configure:696: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
696 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
697 cross_compiling
=$ac_cv_prog_cc_cross
699 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
700 echo "configure:701: checking whether we are using GNU C" >&5
701 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
702 echo $ac_n "(cached) $ac_c" 1>&6
704 cat > conftest.c
<<EOF
709 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
716 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
718 if test $ac_cv_prog_gcc = yes; then
720 ac_test_CFLAGS
="${CFLAGS+set}"
721 ac_save_CFLAGS
="$CFLAGS"
723 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
724 echo "configure:725: checking whether ${CC-cc} accepts -g" >&5
725 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
728 echo 'void f(){}' > conftest.c
729 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
738 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
739 if test "$ac_test_CFLAGS" = set; then
740 CFLAGS
="$ac_save_CFLAGS"
741 elif test $ac_cv_prog_cc_g = yes; then
748 test "${CFLAGS+set}" = set || CFLAGS
="-g"
752 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
753 if test -f $ac_dir/install-sh
; then
755 ac_install_sh
="$ac_aux_dir/install-sh -c"
757 elif test -f $ac_dir/install.sh
; then
759 ac_install_sh
="$ac_aux_dir/install.sh -c"
763 if test -z "$ac_aux_dir"; then
764 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
766 ac_config_guess
=$ac_aux_dir/config.guess
767 ac_config_sub
=$ac_aux_dir/config.sub
768 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
770 # Find a good install program. We prefer a C program (faster),
771 # so one script is as good as another. But avoid the broken or
772 # incompatible versions:
773 # SysV /etc/install, /usr/sbin/install
774 # SunOS /usr/etc/install
777 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
778 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
779 # ./install, which can be erroneously created by make from ./install.sh.
780 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
781 echo "configure:782: checking for a BSD compatible install" >&5
782 if test -z "$INSTALL"; then
783 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
786 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
787 for ac_dir
in $PATH; do
788 # Account for people who put trailing slashes in PATH elements.
790 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
792 # OSF1 and SCO ODT 3.0 have their own names for install.
793 for ac_prog
in ginstall installbsd scoinst
install; do
794 if test -f $ac_dir/$ac_prog; then
795 if test $ac_prog = install &&
796 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
797 # AIX install. It has an incompatible calling convention.
798 # OSF/1 installbsd also uses dspmsg, but is usable.
801 ac_cv_path_install
="$ac_dir/$ac_prog -c"
812 if test "${ac_cv_path_install+set}" = set; then
813 INSTALL
="$ac_cv_path_install"
815 # As a last resort, use the slow shell script. We don't cache a
816 # path for INSTALL within a source directory, because that will
817 # break other packages using the cache if that directory is
818 # removed, or if the path is relative.
819 INSTALL
="$ac_install_sh"
822 echo "$ac_t""$INSTALL" 1>&6
824 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
825 # It thinks the first close brace ends the variable substitution.
826 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
828 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
830 for ac_prog
in mawk gawk nawk
awk
832 # Extract the first word of "$ac_prog", so it can be a program name with args.
833 set dummy
$ac_prog; ac_word
=$2
834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
835 echo "configure:836: checking for $ac_word" >&5
836 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
839 if test -n "$AWK"; then
840 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
842 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
843 for ac_dir
in $PATH; do
844 test -z "$ac_dir" && ac_dir
=.
845 if test -f $ac_dir/$ac_word; then
846 ac_cv_prog_AWK
="$ac_prog"
853 AWK
="$ac_cv_prog_AWK"
854 if test -n "$AWK"; then
855 echo "$ac_t""$AWK" 1>&6
857 echo "$ac_t""no" 1>&6
860 test -n "$AWK" && break
865 # Do some error checking and defaulting for the host and target type.
867 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
870 # 1. You are not allowed to specify --host, --target, and nonopt at the
872 # 2. Host defaults to nonopt.
873 # 3. If nonopt is not specified, then host defaults to the current host,
874 # as determined by config.guess.
875 # 4. Target and build default to nonopt.
876 # 5. If nonopt is not specified, then target and build default to host.
878 # The aliases save the names the user supplied, while $host etc.
879 # will get canonicalized.
880 case $host---$target---$nonopt in
881 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
882 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
886 # Make sure we can run config.sub.
887 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
888 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
891 echo $ac_n "checking host system type""... $ac_c" 1>&6
892 echo "configure:893: checking host system type" >&5
895 case "$host_alias" in
899 if host_alias
=`$ac_config_guess`; then :
900 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
902 *) host_alias
=$nonopt ;;
906 host=`$ac_config_sub $host_alias`
907 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
908 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
909 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
910 echo "$ac_t""$host" 1>&6
912 echo $ac_n "checking target system type""... $ac_c" 1>&6
913 echo "configure:914: checking target system type" >&5
916 case "$target_alias" in
919 NONE
) target_alias
=$host_alias ;;
920 *) target_alias
=$nonopt ;;
924 target
=`$ac_config_sub $target_alias`
925 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
926 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
927 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
928 echo "$ac_t""$target" 1>&6
930 echo $ac_n "checking build system type""... $ac_c" 1>&6
931 echo "configure:932: checking build system type" >&5
934 case "$build_alias" in
937 NONE
) build_alias
=$host_alias ;;
938 *) build_alias
=$nonopt ;;
942 build
=`$ac_config_sub $build_alias`
943 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
944 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
945 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
946 echo "$ac_t""$build" 1>&6
948 test "$host_alias" != "$target_alias" &&
949 test "$program_prefix$program_suffix$program_transform_name" = \
951 program_prefix
=${target_alias}-
955 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
956 echo "configure:957: checking config.cache system type" >&5
957 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
958 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
959 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
960 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
961 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
962 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
963 echo "$ac_t""different" 1>&6
964 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
966 echo "$ac_t""same" 1>&6
968 ac_cv_host_system_type
="$host"
969 ac_cv_build_system_type
="$build"
970 ac_cv_target_system_type
="$target"
973 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
974 if test "${enable_maintainer_mode+set}" = set; then
975 enableval
="$enable_maintainer_mode"
976 maint_mode
=$enableval
981 if test x
"$maint_mode" = x
"yes"; then MAINT
=; else MAINT
='#'; fi
983 # Extract the first word of "autoconf", so it can be a program name with args.
984 set dummy autoconf
; ac_word
=$2
985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986 echo "configure:987: checking for $ac_word" >&5
987 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
992 ac_cv_path_AUTOCONF
="$AUTOCONF" # Let the user override the test with a path.
995 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
996 for ac_dir
in $PATH; do
997 test -z "$ac_dir" && ac_dir
=.
998 if test -f $ac_dir/$ac_word; then
999 ac_cv_path_AUTOCONF
="$ac_dir/$ac_word"
1004 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF
="autoconf"
1008 AUTOCONF
="$ac_cv_path_AUTOCONF"
1009 if test -n "$AUTOCONF"; then
1010 echo "$ac_t""$AUTOCONF" 1>&6
1012 echo "$ac_t""no" 1>&6
1016 # Extract the first word of "autoheader", so it can be a program name with args.
1017 set dummy autoheader
; ac_word
=$2
1018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1019 echo "configure:1020: checking for $ac_word" >&5
1020 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1021 echo $ac_n "(cached) $ac_c" 1>&6
1023 case "$AUTOHEADER" in
1025 ac_cv_path_AUTOHEADER
="$AUTOHEADER" # Let the user override the test with a path.
1028 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1029 for ac_dir
in $PATH; do
1030 test -z "$ac_dir" && ac_dir
=.
1031 if test -f $ac_dir/$ac_word; then
1032 ac_cv_path_AUTOHEADER
="$ac_dir/$ac_word"
1037 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER
="autoheader"
1041 AUTOHEADER
="$ac_cv_path_AUTOHEADER"
1042 if test -n "$AUTOHEADER"; then
1043 echo "$ac_t""$AUTOHEADER" 1>&6
1045 echo "$ac_t""no" 1>&6
1052 # Config CPPFLAG settings for strange OS's that must be set
1053 # before other tests.
1056 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1058 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1059 echo "configure:1060: checking whether ${CC-cc} accepts -Ae" >&5
1060 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1061 echo $ac_n "(cached) $ac_c" 1>&6
1063 echo 'void f(){}' > conftest.c
1064 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1065 ac_cv_prog_cc_Ae
=yes
1073 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1074 if test $ac_cv_prog_cc_Ae = yes; then
1075 CPPFLAGS
="$CPPFLAGS -Ae"
1079 # AIX4.x is *so* broken. It doesn't even admit to having large
1080 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1083 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1087 echo $ac_n "checking for inline""... $ac_c" 1>&6
1088 echo "configure:1089: checking for inline" >&5
1089 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1093 for ac_kw
in inline __inline__ __inline
; do
1094 cat > conftest.
$ac_ext <<EOF
1095 #line 1096 "configure"
1096 #include "confdefs.h"
1102 if { (eval echo configure
:1103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1104 ac_cv_c_inline
=$ac_kw; break
1106 echo "configure: failed program was:" >&5
1107 cat conftest.
$ac_ext >&5
1114 echo "$ac_t""$ac_cv_c_inline" 1>&6
1115 case "$ac_cv_c_inline" in
1117 no
) cat >> confdefs.h
<<\EOF
1121 *) cat >> confdefs.h
<<EOF
1122 #define inline $ac_cv_c_inline
1127 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1128 echo "configure:1129: checking how to run the C preprocessor" >&5
1129 # On Suns, sometimes $CPP names a directory.
1130 if test -n "$CPP" && test -d "$CPP"; then
1133 if test -z "$CPP"; then
1134 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1135 echo $ac_n "(cached) $ac_c" 1>&6
1137 # This must be in double quotes, not single quotes, because CPP may get
1138 # substituted into the Makefile and "${CC-cc}" will confuse make.
1140 # On the NeXT, cc -E runs the code through the compiler's parser,
1141 # not just through cpp.
1142 cat > conftest.
$ac_ext <<EOF
1143 #line 1144 "configure"
1144 #include "confdefs.h"
1148 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1149 { (eval echo configure
:1150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1150 ac_err
=`grep -v '^ *+' conftest.out`
1151 if test -z "$ac_err"; then
1155 echo "configure: failed program was:" >&5
1156 cat conftest.
$ac_ext >&5
1158 CPP
="${CC-cc} -E -traditional-cpp"
1159 cat > conftest.
$ac_ext <<EOF
1160 #line 1161 "configure"
1161 #include "confdefs.h"
1165 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1166 { (eval echo configure
:1167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1167 ac_err
=`grep -v '^ *+' conftest.out`
1168 if test -z "$ac_err"; then
1172 echo "configure: failed program was:" >&5
1173 cat conftest.
$ac_ext >&5
1180 ac_cv_prog_CPP
="$CPP"
1182 CPP
="$ac_cv_prog_CPP"
1184 ac_cv_prog_CPP
="$CPP"
1186 echo "$ac_t""$CPP" 1>&6
1188 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1189 echo "configure:1190: checking for ANSI C header files" >&5
1190 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 cat > conftest.
$ac_ext <<EOF
1194 #line 1195 "configure"
1195 #include "confdefs.h"
1201 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1202 { (eval echo configure
:1203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1203 ac_err
=`grep -v '^ *+' conftest.out`
1204 if test -z "$ac_err"; then
1206 ac_cv_header_stdc
=yes
1209 echo "configure: failed program was:" >&5
1210 cat conftest.
$ac_ext >&5
1212 ac_cv_header_stdc
=no
1216 if test $ac_cv_header_stdc = yes; then
1217 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1218 cat > conftest.
$ac_ext <<EOF
1219 #line 1220 "configure"
1220 #include "confdefs.h"
1223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1224 egrep "memchr" >/dev
/null
2>&1; then
1228 ac_cv_header_stdc
=no
1234 if test $ac_cv_header_stdc = yes; then
1235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1236 cat > conftest.
$ac_ext <<EOF
1237 #line 1238 "configure"
1238 #include "confdefs.h"
1241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1242 egrep "free" >/dev
/null
2>&1; then
1246 ac_cv_header_stdc
=no
1252 if test $ac_cv_header_stdc = yes; then
1253 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1254 if test "$cross_compiling" = yes; then
1257 cat > conftest.
$ac_ext <<EOF
1258 #line 1259 "configure"
1259 #include "confdefs.h"
1261 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1262 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1263 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1264 int main () { int i; for (i = 0; i < 256; i++)
1265 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1269 if { (eval echo configure
:1270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1273 echo "configure: failed program was:" >&5
1274 cat conftest.
$ac_ext >&5
1276 ac_cv_header_stdc
=no
1284 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1285 if test $ac_cv_header_stdc = yes; then
1286 cat >> confdefs.h
<<\EOF
1287 #define STDC_HEADERS 1
1293 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1295 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1296 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1297 echo "configure:1298: checking for $ac_hdr that defines DIR" >&5
1298 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1301 cat > conftest.
$ac_ext <<EOF
1302 #line 1303 "configure"
1303 #include "confdefs.h"
1304 #include <sys/types.h>
1310 if { (eval echo configure
:1311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1312 eval "ac_cv_header_dirent_$ac_safe=yes"
1314 echo "configure: failed program was:" >&5
1315 cat conftest.
$ac_ext >&5
1317 eval "ac_cv_header_dirent_$ac_safe=no"
1321 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1322 echo "$ac_t""yes" 1>&6
1323 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1324 cat >> confdefs.h
<<EOF
1325 #define $ac_tr_hdr 1
1327 ac_header_dirent
=$ac_hdr; break
1329 echo "$ac_t""no" 1>&6
1332 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1333 if test $ac_header_dirent = dirent.h
; then
1334 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1335 echo "configure:1336: checking for opendir in -ldir" >&5
1336 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1337 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1340 ac_save_LIBS
="$LIBS"
1342 cat > conftest.
$ac_ext <<EOF
1343 #line 1344 "configure"
1344 #include "confdefs.h"
1345 /* Override any gcc2 internal prototype to avoid an error. */
1346 /* We use char because int might match the return type of a gcc2
1347 builtin and then its argument prototype would still apply. */
1354 if { (eval echo configure
:1355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1356 eval "ac_cv_lib_$ac_lib_var=yes"
1358 echo "configure: failed program was:" >&5
1359 cat conftest.
$ac_ext >&5
1361 eval "ac_cv_lib_$ac_lib_var=no"
1364 LIBS
="$ac_save_LIBS"
1367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1368 echo "$ac_t""yes" 1>&6
1371 echo "$ac_t""no" 1>&6
1375 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1376 echo "configure:1377: checking for opendir in -lx" >&5
1377 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1381 ac_save_LIBS
="$LIBS"
1383 cat > conftest.
$ac_ext <<EOF
1384 #line 1385 "configure"
1385 #include "confdefs.h"
1386 /* Override any gcc2 internal prototype to avoid an error. */
1387 /* We use char because int might match the return type of a gcc2
1388 builtin and then its argument prototype would still apply. */
1395 if { (eval echo configure
:1396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1397 eval "ac_cv_lib_$ac_lib_var=yes"
1399 echo "configure: failed program was:" >&5
1400 cat conftest.
$ac_ext >&5
1402 eval "ac_cv_lib_$ac_lib_var=no"
1405 LIBS
="$ac_save_LIBS"
1408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1409 echo "$ac_t""yes" 1>&6
1412 echo "$ac_t""no" 1>&6
1417 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1418 echo "configure:1419: checking whether time.h and sys/time.h may both be included" >&5
1419 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1422 cat > conftest.
$ac_ext <<EOF
1423 #line 1424 "configure"
1424 #include "confdefs.h"
1425 #include <sys/types.h>
1426 #include <sys/time.h>
1432 if { (eval echo configure
:1433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1434 ac_cv_header_time
=yes
1436 echo "configure: failed program was:" >&5
1437 cat conftest.
$ac_ext >&5
1439 ac_cv_header_time
=no
1444 echo "$ac_t""$ac_cv_header_time" 1>&6
1445 if test $ac_cv_header_time = yes; then
1446 cat >> confdefs.h
<<\EOF
1447 #define TIME_WITH_SYS_TIME 1
1452 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1453 echo "configure:1454: checking for sys/wait.h that is POSIX.1 compatible" >&5
1454 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1457 cat > conftest.
$ac_ext <<EOF
1458 #line 1459 "configure"
1459 #include "confdefs.h"
1460 #include <sys/types.h>
1461 #include <sys/wait.h>
1463 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1466 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1471 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1474 if { (eval echo configure
:1475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1476 ac_cv_header_sys_wait_h
=yes
1478 echo "configure: failed program was:" >&5
1479 cat conftest.
$ac_ext >&5
1481 ac_cv_header_sys_wait_h
=no
1486 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1487 if test $ac_cv_header_sys_wait_h = yes; then
1488 cat >> confdefs.h
<<\EOF
1489 #define HAVE_SYS_WAIT_H 1
1494 for ac_hdr
in sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
1496 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1497 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1498 echo "configure:1499: checking for $ac_hdr" >&5
1499 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1500 echo $ac_n "(cached) $ac_c" 1>&6
1502 cat > conftest.
$ac_ext <<EOF
1503 #line 1504 "configure"
1504 #include "confdefs.h"
1507 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1508 { (eval echo configure
:1509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1509 ac_err
=`grep -v '^ *+' conftest.out`
1510 if test -z "$ac_err"; then
1512 eval "ac_cv_header_$ac_safe=yes"
1515 echo "configure: failed program was:" >&5
1516 cat conftest.
$ac_ext >&5
1518 eval "ac_cv_header_$ac_safe=no"
1522 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1523 echo "$ac_t""yes" 1>&6
1524 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1525 cat >> confdefs.h
<<EOF
1526 #define $ac_tr_hdr 1
1530 echo "$ac_t""no" 1>&6
1534 for ac_hdr
in sys
/param.h ctype.h
1536 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1537 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1538 echo "configure:1539: checking for $ac_hdr" >&5
1539 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1542 cat > conftest.
$ac_ext <<EOF
1543 #line 1544 "configure"
1544 #include "confdefs.h"
1547 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1548 { (eval echo configure
:1549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1549 ac_err
=`grep -v '^ *+' conftest.out`
1550 if test -z "$ac_err"; then
1552 eval "ac_cv_header_$ac_safe=yes"
1555 echo "configure: failed program was:" >&5
1556 cat conftest.
$ac_ext >&5
1558 eval "ac_cv_header_$ac_safe=no"
1562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1563 echo "$ac_t""yes" 1>&6
1564 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1565 cat >> confdefs.h
<<EOF
1566 #define $ac_tr_hdr 1
1570 echo "$ac_t""no" 1>&6
1574 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/route.h net
/if.h
1576 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1577 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1578 echo "configure:1579: checking for $ac_hdr" >&5
1579 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1582 cat > conftest.
$ac_ext <<EOF
1583 #line 1584 "configure"
1584 #include "confdefs.h"
1587 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1588 { (eval echo configure
:1589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1589 ac_err
=`grep -v '^ *+' conftest.out`
1590 if test -z "$ac_err"; then
1592 eval "ac_cv_header_$ac_safe=yes"
1595 echo "configure: failed program was:" >&5
1596 cat conftest.
$ac_ext >&5
1598 eval "ac_cv_header_$ac_safe=no"
1602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1603 echo "$ac_t""yes" 1>&6
1604 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1605 cat >> confdefs.h
<<EOF
1606 #define $ac_tr_hdr 1
1610 echo "$ac_t""no" 1>&6
1614 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h sys
/param.h ctype.h
1616 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1617 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1618 echo "configure:1619: checking for $ac_hdr" >&5
1619 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1622 cat > conftest.
$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1627 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1628 { (eval echo configure
:1629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1629 ac_err
=`grep -v '^ *+' conftest.out`
1630 if test -z "$ac_err"; then
1632 eval "ac_cv_header_$ac_safe=yes"
1635 echo "configure: failed program was:" >&5
1636 cat conftest.
$ac_ext >&5
1638 eval "ac_cv_header_$ac_safe=no"
1642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1643 echo "$ac_t""yes" 1>&6
1644 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1645 cat >> confdefs.h
<<EOF
1646 #define $ac_tr_hdr 1
1650 echo "$ac_t""no" 1>&6
1654 for ac_hdr
in sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/mode.h
1656 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1657 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1658 echo "configure:1659: checking for $ac_hdr" >&5
1659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1662 cat > conftest.
$ac_ext <<EOF
1663 #line 1664 "configure"
1664 #include "confdefs.h"
1667 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1668 { (eval echo configure
:1669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1669 ac_err
=`grep -v '^ *+' conftest.out`
1670 if test -z "$ac_err"; then
1672 eval "ac_cv_header_$ac_safe=yes"
1675 echo "configure: failed program was:" >&5
1676 cat conftest.
$ac_ext >&5
1678 eval "ac_cv_header_$ac_safe=no"
1682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1683 echo "$ac_t""yes" 1>&6
1684 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1685 cat >> confdefs.h
<<EOF
1686 #define $ac_tr_hdr 1
1690 echo "$ac_t""no" 1>&6
1694 for ac_hdr
in sys
/filio.h string.h
strings.h stdlib.h sys
/socket.h
1696 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1697 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1698 echo "configure:1699: checking for $ac_hdr" >&5
1699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 cat > conftest.
$ac_ext <<EOF
1703 #line 1704 "configure"
1704 #include "confdefs.h"
1707 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1708 { (eval echo configure
:1709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1709 ac_err
=`grep -v '^ *+' conftest.out`
1710 if test -z "$ac_err"; then
1712 eval "ac_cv_header_$ac_safe=yes"
1715 echo "configure: failed program was:" >&5
1716 cat conftest.
$ac_ext >&5
1718 eval "ac_cv_header_$ac_safe=no"
1722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1723 echo "$ac_t""yes" 1>&6
1724 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1725 cat >> confdefs.h
<<EOF
1726 #define $ac_tr_hdr 1
1730 echo "$ac_t""no" 1>&6
1734 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h
1736 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1738 echo "configure:1739: checking for $ac_hdr" >&5
1739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1740 echo $ac_n "(cached) $ac_c" 1>&6
1742 cat > conftest.
$ac_ext <<EOF
1743 #line 1744 "configure"
1744 #include "confdefs.h"
1747 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1748 { (eval echo configure
:1749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1749 ac_err
=`grep -v '^ *+' conftest.out`
1750 if test -z "$ac_err"; then
1752 eval "ac_cv_header_$ac_safe=yes"
1755 echo "configure: failed program was:" >&5
1756 cat conftest.
$ac_ext >&5
1758 eval "ac_cv_header_$ac_safe=no"
1762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1763 echo "$ac_t""yes" 1>&6
1764 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1765 cat >> confdefs.h
<<EOF
1766 #define $ac_tr_hdr 1
1770 echo "$ac_t""no" 1>&6
1774 for ac_hdr
in sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
1776 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1777 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1778 echo "configure:1779: checking for $ac_hdr" >&5
1779 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1782 cat > conftest.
$ac_ext <<EOF
1783 #line 1784 "configure"
1784 #include "confdefs.h"
1787 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1788 { (eval echo configure
:1789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1789 ac_err
=`grep -v '^ *+' conftest.out`
1790 if test -z "$ac_err"; then
1792 eval "ac_cv_header_$ac_safe=yes"
1795 echo "configure: failed program was:" >&5
1796 cat conftest.
$ac_ext >&5
1798 eval "ac_cv_header_$ac_safe=no"
1802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1803 echo "$ac_t""yes" 1>&6
1804 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1805 cat >> confdefs.h
<<EOF
1806 #define $ac_tr_hdr 1
1810 echo "$ac_t""no" 1>&6
1814 for ac_hdr
in shadow.h netinet
/tcp.h sys
/security.h security
/pam_appl.h
1816 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1818 echo "configure:1819: checking for $ac_hdr" >&5
1819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1822 cat > conftest.
$ac_ext <<EOF
1823 #line 1824 "configure"
1824 #include "confdefs.h"
1827 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1828 { (eval echo configure
:1829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1829 ac_err
=`grep -v '^ *+' conftest.out`
1830 if test -z "$ac_err"; then
1832 eval "ac_cv_header_$ac_safe=yes"
1835 echo "configure: failed program was:" >&5
1836 cat conftest.
$ac_ext >&5
1838 eval "ac_cv_header_$ac_safe=no"
1842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1843 echo "$ac_t""yes" 1>&6
1844 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1845 cat >> confdefs.h
<<EOF
1846 #define $ac_tr_hdr 1
1850 echo "$ac_t""no" 1>&6
1854 for ac_hdr
in stropts.h poll.h readline.h
history.h readline
/readline.h
1856 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1857 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1858 echo "configure:1859: checking for $ac_hdr" >&5
1859 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
1862 cat > conftest.
$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1867 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1868 { (eval echo configure
:1869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1869 ac_err
=`grep -v '^ *+' conftest.out`
1870 if test -z "$ac_err"; then
1872 eval "ac_cv_header_$ac_safe=yes"
1875 echo "configure: failed program was:" >&5
1876 cat conftest.
$ac_ext >&5
1878 eval "ac_cv_header_$ac_safe=no"
1882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1883 echo "$ac_t""yes" 1>&6
1884 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1885 cat >> confdefs.h
<<EOF
1886 #define $ac_tr_hdr 1
1890 echo "$ac_t""no" 1>&6
1894 for ac_hdr
in readline
/history.h sys
/capability.h syscall.h sys
/syscall.h
1896 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1898 echo "configure:1899: checking for $ac_hdr" >&5
1899 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1902 cat > conftest.
$ac_ext <<EOF
1903 #line 1904 "configure"
1904 #include "confdefs.h"
1907 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1908 { (eval echo configure
:1909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1909 ac_err
=`grep -v '^ *+' conftest.out`
1910 if test -z "$ac_err"; then
1912 eval "ac_cv_header_$ac_safe=yes"
1915 echo "configure: failed program was:" >&5
1916 cat conftest.
$ac_ext >&5
1918 eval "ac_cv_header_$ac_safe=no"
1922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1923 echo "$ac_t""yes" 1>&6
1924 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1925 cat >> confdefs.h
<<EOF
1926 #define $ac_tr_hdr 1
1930 echo "$ac_t""no" 1>&6
1934 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
1936 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1937 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1938 echo "configure:1939: checking for $ac_hdr" >&5
1939 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1942 cat > conftest.
$ac_ext <<EOF
1943 #line 1944 "configure"
1944 #include "confdefs.h"
1947 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1948 { (eval echo configure
:1949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1949 ac_err
=`grep -v '^ *+' conftest.out`
1950 if test -z "$ac_err"; then
1952 eval "ac_cv_header_$ac_safe=yes"
1955 echo "configure: failed program was:" >&5
1956 cat conftest.
$ac_ext >&5
1958 eval "ac_cv_header_$ac_safe=no"
1962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1963 echo "$ac_t""yes" 1>&6
1964 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1965 cat >> confdefs.h
<<EOF
1966 #define $ac_tr_hdr 1
1970 echo "$ac_t""no" 1>&6
1975 echo $ac_n "checking size of int""... $ac_c" 1>&6
1976 echo "configure:1977: checking size of int" >&5
1977 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1980 if test "$cross_compiling" = yes; then
1981 ac_cv_sizeof_int
=cross
1983 cat > conftest.
$ac_ext <<EOF
1984 #line 1985 "configure"
1985 #include "confdefs.h"
1989 FILE *f=fopen("conftestval", "w");
1991 fprintf(f, "%d\n", sizeof(int));
1995 if { (eval echo configure
:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1997 ac_cv_sizeof_int
=`cat conftestval`
1999 echo "configure: failed program was:" >&5
2000 cat conftest.
$ac_ext >&5
2008 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2009 cat >> confdefs.h
<<EOF
2010 #define SIZEOF_INT $ac_cv_sizeof_int
2014 echo $ac_n "checking size of long""... $ac_c" 1>&6
2015 echo "configure:2016: checking size of long" >&5
2016 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2019 if test "$cross_compiling" = yes; then
2020 ac_cv_sizeof_long
=cross
2022 cat > conftest.
$ac_ext <<EOF
2023 #line 2024 "configure"
2024 #include "confdefs.h"
2028 FILE *f=fopen("conftestval", "w");
2030 fprintf(f, "%d\n", sizeof(long));
2034 if { (eval echo configure
:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2036 ac_cv_sizeof_long
=`cat conftestval`
2038 echo "configure: failed program was:" >&5
2039 cat conftest.
$ac_ext >&5
2047 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2048 cat >> confdefs.h
<<EOF
2049 #define SIZEOF_LONG $ac_cv_sizeof_long
2053 echo $ac_n "checking size of short""... $ac_c" 1>&6
2054 echo "configure:2055: checking size of short" >&5
2055 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2058 if test "$cross_compiling" = yes; then
2059 ac_cv_sizeof_short
=cross
2061 cat > conftest.
$ac_ext <<EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2067 FILE *f=fopen("conftestval", "w");
2069 fprintf(f, "%d\n", sizeof(short));
2073 if { (eval echo configure
:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2075 ac_cv_sizeof_short
=`cat conftestval`
2077 echo "configure: failed program was:" >&5
2078 cat conftest.
$ac_ext >&5
2080 ac_cv_sizeof_short
=0
2086 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2087 cat >> confdefs.h
<<EOF
2088 #define SIZEOF_SHORT $ac_cv_sizeof_short
2093 echo $ac_n "checking for working const""... $ac_c" 1>&6
2094 echo "configure:2095: checking for working const" >&5
2095 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2096 echo $ac_n "(cached) $ac_c" 1>&6
2098 cat > conftest.
$ac_ext <<EOF
2099 #line 2100 "configure"
2100 #include "confdefs.h"
2104 /* Ultrix mips cc rejects this. */
2105 typedef int charset[2]; const charset x;
2106 /* SunOS 4.1.1 cc rejects this. */
2107 char const *const *ccp;
2109 /* NEC SVR4.0.2 mips cc rejects this. */
2110 struct point {int x, y;};
2111 static struct point const zero = {0,0};
2112 /* AIX XL C 1.02.0.0 rejects this.
2113 It does not let you subtract one const X* pointer from another in an arm
2114 of an if-expression whose if-part is not a constant expression */
2115 const char *g = "string";
2116 ccp = &g + (g ? g-g : 0);
2117 /* HPUX 7.0 cc rejects these. */
2120 ccp = (char const *const *) p;
2121 { /* SCO 3.2v4 cc rejects this. */
2123 char const *s = 0 ? (char *) 0 : (char const *) 0;
2127 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2129 const int *foo = &x[0];
2132 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2133 typedef const int *iptr;
2137 { /* AIX XL C 1.02.0.0 rejects this saying
2138 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2139 struct s { int j; const int *ap[3]; };
2140 struct s *b; b->j = 5;
2142 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2148 if { (eval echo configure
:2149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2152 echo "configure: failed program was:" >&5
2153 cat conftest.
$ac_ext >&5
2160 echo "$ac_t""$ac_cv_c_const" 1>&6
2161 if test $ac_cv_c_const = no
; then
2162 cat >> confdefs.h
<<\EOF
2168 echo $ac_n "checking for inline""... $ac_c" 1>&6
2169 echo "configure:2170: checking for inline" >&5
2170 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2174 for ac_kw
in inline __inline__ __inline
; do
2175 cat > conftest.
$ac_ext <<EOF
2176 #line 2177 "configure"
2177 #include "confdefs.h"
2183 if { (eval echo configure
:2184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2185 ac_cv_c_inline
=$ac_kw; break
2187 echo "configure: failed program was:" >&5
2188 cat conftest.
$ac_ext >&5
2195 echo "$ac_t""$ac_cv_c_inline" 1>&6
2196 case "$ac_cv_c_inline" in
2198 no
) cat >> confdefs.h
<<\EOF
2202 *) cat >> confdefs.h
<<EOF
2203 #define inline $ac_cv_c_inline
2208 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2209 echo "configure:2210: checking whether byte ordering is bigendian" >&5
2210 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2213 ac_cv_c_bigendian
=unknown
2214 # See if sys/param.h defines the BYTE_ORDER macro.
2215 cat > conftest.
$ac_ext <<EOF
2216 #line 2217 "configure"
2217 #include "confdefs.h"
2218 #include <sys/types.h>
2219 #include <sys/param.h>
2222 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2227 if { (eval echo configure
:2228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2229 # It does; now see whether it defined to BIG_ENDIAN or not.
2230 cat > conftest.
$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2233 #include <sys/types.h>
2234 #include <sys/param.h>
2237 #if BYTE_ORDER != BIG_ENDIAN
2242 if { (eval echo configure
:2243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2244 ac_cv_c_bigendian
=yes
2246 echo "configure: failed program was:" >&5
2247 cat conftest.
$ac_ext >&5
2249 ac_cv_c_bigendian
=no
2253 echo "configure: failed program was:" >&5
2254 cat conftest.
$ac_ext >&5
2257 if test $ac_cv_c_bigendian = unknown
; then
2258 if test "$cross_compiling" = yes; then
2259 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2261 cat > conftest.
$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2265 /* Are we little or big endian? From Harbison&Steele. */
2269 char c[sizeof (long)];
2272 exit (u.c[sizeof (long) - 1] == 1);
2275 if { (eval echo configure
:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2277 ac_cv_c_bigendian
=no
2279 echo "configure: failed program was:" >&5
2280 cat conftest.
$ac_ext >&5
2282 ac_cv_c_bigendian
=yes
2290 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2291 if test $ac_cv_c_bigendian = yes; then
2292 cat >> confdefs.h
<<\EOF
2293 #define WORDS_BIGENDIAN 1
2298 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2299 echo "configure:2300: checking whether char is unsigned" >&5
2300 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 if test "$GCC" = yes; then
2304 # GCC predefines this symbol on systems where it applies.
2305 cat > conftest.
$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 #ifdef __CHAR_UNSIGNED__
2313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2314 egrep "yes" >/dev
/null
2>&1; then
2316 ac_cv_c_char_unsigned
=yes
2319 ac_cv_c_char_unsigned
=no
2324 if test "$cross_compiling" = yes; then
2325 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2327 cat > conftest.
$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2330 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2331 #if !defined(__STDC__) || __STDC__ != 1
2335 volatile char c = 255; exit(c < 0);
2338 if { (eval echo configure
:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2340 ac_cv_c_char_unsigned
=yes
2342 echo "configure: failed program was:" >&5
2343 cat conftest.
$ac_ext >&5
2345 ac_cv_c_char_unsigned
=no
2353 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2354 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2355 cat >> confdefs.h
<<\EOF
2356 #define __CHAR_UNSIGNED__ 1
2362 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2363 echo "configure:2364: checking return type of signal handlers" >&5
2364 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2367 cat > conftest.
$ac_ext <<EOF
2368 #line 2369 "configure"
2369 #include "confdefs.h"
2370 #include <sys/types.h>
2376 extern "C" void (*signal (int, void (*)(int)))(int);
2378 void (*signal ()) ();
2385 if { (eval echo configure
:2386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2387 ac_cv_type_signal
=void
2389 echo "configure: failed program was:" >&5
2390 cat conftest.
$ac_ext >&5
2392 ac_cv_type_signal
=int
2397 echo "$ac_t""$ac_cv_type_signal" 1>&6
2398 cat >> confdefs.h
<<EOF
2399 #define RETSIGTYPE $ac_cv_type_signal
2403 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2404 echo "configure:2405: checking for uid_t in sys/types.h" >&5
2405 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2408 cat > conftest.
$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2411 #include <sys/types.h>
2413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2414 egrep "uid_t" >/dev
/null
2>&1; then
2416 ac_cv_type_uid_t
=yes
2425 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2426 if test $ac_cv_type_uid_t = no
; then
2427 cat >> confdefs.h
<<\EOF
2431 cat >> confdefs.h
<<\EOF
2437 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2438 echo "configure:2439: checking for mode_t" >&5
2439 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2442 cat > conftest.
$ac_ext <<EOF
2443 #line 2444 "configure"
2444 #include "confdefs.h"
2445 #include <sys/types.h>
2451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2452 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2454 ac_cv_type_mode_t
=yes
2457 ac_cv_type_mode_t
=no
2462 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2463 if test $ac_cv_type_mode_t = no
; then
2464 cat >> confdefs.h
<<\EOF
2470 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2471 echo "configure:2472: checking for off_t" >&5
2472 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2475 cat > conftest.
$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2478 #include <sys/types.h>
2484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2485 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2487 ac_cv_type_off_t
=yes
2495 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2496 if test $ac_cv_type_off_t = no
; then
2497 cat >> confdefs.h
<<\EOF
2503 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2504 echo "configure:2505: checking for size_t" >&5
2505 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 cat > conftest.
$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2511 #include <sys/types.h>
2517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2518 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2520 ac_cv_type_size_t
=yes
2523 ac_cv_type_size_t
=no
2528 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2529 if test $ac_cv_type_size_t = no
; then
2530 cat >> confdefs.h
<<\EOF
2531 #define size_t unsigned
2536 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2537 echo "configure:2538: checking for pid_t" >&5
2538 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2539 echo $ac_n "(cached) $ac_c" 1>&6
2541 cat > conftest.
$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2544 #include <sys/types.h>
2550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2551 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2553 ac_cv_type_pid_t
=yes
2561 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2562 if test $ac_cv_type_pid_t = no
; then
2563 cat >> confdefs.h
<<\EOF
2569 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2570 echo "configure:2571: checking for st_rdev in struct stat" >&5
2571 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2572 echo $ac_n "(cached) $ac_c" 1>&6
2574 cat > conftest.
$ac_ext <<EOF
2575 #line 2576 "configure"
2576 #include "confdefs.h"
2577 #include <sys/types.h>
2578 #include <sys/stat.h>
2580 struct stat s; s.st_rdev;
2583 if { (eval echo configure
:2584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2585 ac_cv_struct_st_rdev
=yes
2587 echo "configure: failed program was:" >&5
2588 cat conftest.
$ac_ext >&5
2590 ac_cv_struct_st_rdev
=no
2595 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2596 if test $ac_cv_struct_st_rdev = yes; then
2597 cat >> confdefs.h
<<\EOF
2598 #define HAVE_ST_RDEV 1
2603 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
2604 echo "configure:2605: checking for d_off in dirent" >&5
2605 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2608 cat > conftest.
$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2613 #include <sys/types.h>
2616 struct dirent d; d.d_off;
2619 if { (eval echo configure
:2620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2621 ac_cv_dirent_d_off
=yes
2623 echo "configure: failed program was:" >&5
2624 cat conftest.
$ac_ext >&5
2626 ac_cv_dirent_d_off
=no
2631 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
2632 if test $ac_cv_dirent_d_off = yes; then
2633 cat >> confdefs.h
<<\EOF
2634 #define HAVE_DIRENT_D_OFF 1
2639 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2640 echo "configure:2641: checking for ino_t" >&5
2641 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2642 echo $ac_n "(cached) $ac_c" 1>&6
2644 cat > conftest.
$ac_ext <<EOF
2645 #line 2646 "configure"
2646 #include "confdefs.h"
2647 #include <sys/types.h>
2653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2654 egrep "ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2656 ac_cv_type_ino_t
=yes
2664 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2665 if test $ac_cv_type_ino_t = no
; then
2666 cat >> confdefs.h
<<\EOF
2667 #define ino_t unsigned
2672 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
2673 echo "configure:2674: checking for loff_t" >&5
2674 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 cat > conftest.
$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2680 #include <sys/types.h>
2686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2687 egrep "loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2689 ac_cv_type_loff_t
=yes
2692 ac_cv_type_loff_t
=no
2697 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
2698 if test $ac_cv_type_loff_t = no
; then
2699 cat >> confdefs.h
<<\EOF
2700 #define loff_t off_t
2705 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
2706 echo "configure:2707: checking for offset_t" >&5
2707 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2710 cat > conftest.
$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2713 #include <sys/types.h>
2719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2720 egrep "offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2722 ac_cv_type_offset_t
=yes
2725 ac_cv_type_offset_t
=no
2730 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
2731 if test $ac_cv_type_offset_t = no
; then
2732 cat >> confdefs.h
<<\EOF
2733 #define offset_t loff_t
2738 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2739 echo "configure:2740: checking for ssize_t" >&5
2740 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2743 cat > conftest.
$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2746 #include <sys/types.h>
2752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2753 egrep "ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2755 ac_cv_type_ssize_t
=yes
2758 ac_cv_type_ssize_t
=no
2763 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2764 if test $ac_cv_type_ssize_t = no
; then
2765 cat >> confdefs.h
<<\EOF
2772 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
2773 echo "configure:2774: checking for errno in errno.h" >&5
2774 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2778 cat > conftest.
$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2786 if { (eval echo configure
:2787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2790 echo "configure: failed program was:" >&5
2791 cat conftest.
$ac_ext >&5
2793 samba_cv_have_errno_decl
=no
2798 echo "$ac_t""$samba_cv_errno" 1>&6
2799 if test x
"$samba_cv_errno" = x
"yes"; then
2800 cat >> confdefs.h
<<\EOF
2801 #define HAVE_ERRNO_DECL 1
2806 # stupid glibc has the functions but no declaration. grrrr.
2807 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
2808 echo "configure:2809: checking for setresuid declaration" >&5
2809 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
2810 echo $ac_n "(cached) $ac_c" 1>&6
2813 cat > conftest.
$ac_ext <<EOF
2814 #line 2815 "configure"
2815 #include "confdefs.h"
2818 int i = (int)setresuid
2821 if { (eval echo configure
:2822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2823 samba_cv_have_setresuid_decl
=yes
2825 echo "configure: failed program was:" >&5
2826 cat conftest.
$ac_ext >&5
2828 samba_cv_have_setresuid_decl
=no
2833 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
2834 if test x
"$samba_cv_have_setresuid_decl" = x
"yes"; then
2835 cat >> confdefs.h
<<\EOF
2836 #define HAVE_SETRESUID_DECL 1
2841 # stupid glibc has the functions but no declaration. grrrr.
2842 echo $ac_n "checking for crypt declaration""... $ac_c" 1>&6
2843 echo "configure:2844: checking for crypt declaration" >&5
2844 if eval "test \"`echo '$''{'samba_cv_have_crypt_decl'+set}'`\" = set"; then
2845 echo $ac_n "(cached) $ac_c" 1>&6
2848 cat > conftest.
$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2856 if { (eval echo configure
:2857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2858 samba_cv_have_crypt_decl
=yes
2860 echo "configure: failed program was:" >&5
2861 cat conftest.
$ac_ext >&5
2863 samba_cv_have_crypt_decl
=no
2868 echo "$ac_t""$samba_cv_have_crypt_decl" 1>&6
2869 if test x
"$samba_cv_have_crypt_decl" = x
"yes"; then
2870 cat >> confdefs.h
<<\EOF
2871 #define HAVE_CRYPT_DECL 1
2876 # and glibc has setresuid under linux but the function does
2877 # nothing until kernel 2.1.44! very dumb.
2878 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
2879 echo "configure:2880: checking for real setresuid" >&5
2880 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
2881 echo $ac_n "(cached) $ac_c" 1>&6
2884 if test "$cross_compiling" = yes; then
2885 samba_cv_have_setresuid
=cross
2887 cat > conftest.
$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2891 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
2893 if { (eval echo configure
:2894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2895 samba_cv_have_setresuid
=yes
2897 echo "configure: failed program was:" >&5
2898 cat conftest.
$ac_ext >&5
2900 samba_cv_have_setresuid
=no
2907 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
2908 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
2909 cat >> confdefs.h
<<\EOF
2910 #define HAVE_SETRESUID 1
2915 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2916 echo "configure:2917: checking for 8-bit clean memcmp" >&5
2917 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2920 if test "$cross_compiling" = yes; then
2921 ac_cv_func_memcmp_clean
=no
2923 cat > conftest.
$ac_ext <<EOF
2924 #line 2925 "configure"
2925 #include "confdefs.h"
2929 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2930 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2934 if { (eval echo configure
:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2936 ac_cv_func_memcmp_clean
=yes
2938 echo "configure: failed program was:" >&5
2939 cat conftest.
$ac_ext >&5
2941 ac_cv_func_memcmp_clean
=no
2948 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2949 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.o"
2952 ###############################################
2953 # test for where we get crypt() from
2954 for ac_func
in crypt
2956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2957 echo "configure:2958: checking for $ac_func" >&5
2958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6
2961 cat > conftest.
$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2964 /* System header to define __stub macros and hopefully few prototypes,
2965 which can conflict with char $ac_func(); below. */
2967 /* Override any gcc2 internal prototype to avoid an error. */
2968 /* We use char because int might match the return type of a gcc2
2969 builtin and then its argument prototype would still apply. */
2974 /* The GNU C library defines this for functions which it implements
2975 to always fail with ENOSYS. Some functions are actually named
2976 something starting with __ and the normal name is an alias. */
2977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2985 if { (eval echo configure
:2986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2987 eval "ac_cv_func_$ac_func=yes"
2989 echo "configure: failed program was:" >&5
2990 cat conftest.
$ac_ext >&5
2992 eval "ac_cv_func_$ac_func=no"
2997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2998 echo "$ac_t""yes" 1>&6
2999 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3000 cat >> confdefs.h
<<EOF
3001 #define $ac_tr_func 1
3005 echo "$ac_t""no" 1>&6
3009 if test x
"$ac_cv_func_crypt" = x
"no"; then
3010 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3011 echo "configure:3012: checking for crypt in -lcrypt" >&5
3012 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3014 echo $ac_n "(cached) $ac_c" 1>&6
3016 ac_save_LIBS
="$LIBS"
3017 LIBS
="-lcrypt $LIBS"
3018 cat > conftest.
$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3021 /* Override any gcc2 internal prototype to avoid an error. */
3022 /* We use char because int might match the return type of a gcc2
3023 builtin and then its argument prototype would still apply. */
3030 if { (eval echo configure
:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3032 eval "ac_cv_lib_$ac_lib_var=yes"
3034 echo "configure: failed program was:" >&5
3035 cat conftest.
$ac_ext >&5
3037 eval "ac_cv_lib_$ac_lib_var=no"
3040 LIBS
="$ac_save_LIBS"
3043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3044 echo "$ac_t""yes" 1>&6
3045 LIBS
="$LIBS -lcrypt";
3046 cat >> confdefs.h
<<\EOF
3047 #define HAVE_CRYPT 1
3051 echo "$ac_t""no" 1>&6
3057 ###############################################
3058 # test for where we get pam_authenticate() from
3059 # might need libdl for this to work
3060 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
3061 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3062 echo "configure:3063: checking for main in -ldl" >&5
3063 ac_lib_var
=`echo dl'_'main | sed 'y%./+-%__p_%'`
3064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3067 ac_save_LIBS
="$LIBS"
3069 cat > conftest.
$ac_ext <<EOF
3070 #line 3071 "configure"
3071 #include "confdefs.h"
3077 if { (eval echo configure
:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3079 eval "ac_cv_lib_$ac_lib_var=yes"
3081 echo "configure: failed program was:" >&5
3082 cat conftest.
$ac_ext >&5
3084 eval "ac_cv_lib_$ac_lib_var=no"
3087 LIBS
="$ac_save_LIBS"
3090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3091 echo "$ac_t""yes" 1>&6
3092 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3093 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3094 cat >> confdefs.h
<<EOF
3095 #define $ac_tr_lib 1
3101 echo "$ac_t""no" 1>&6
3105 for ac_func
in pam_authenticate
3107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3108 echo "configure:3109: checking for $ac_func" >&5
3109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3110 echo $ac_n "(cached) $ac_c" 1>&6
3112 cat > conftest.
$ac_ext <<EOF
3113 #line 3114 "configure"
3114 #include "confdefs.h"
3115 /* System header to define __stub macros and hopefully few prototypes,
3116 which can conflict with char $ac_func(); below. */
3118 /* Override any gcc2 internal prototype to avoid an error. */
3119 /* We use char because int might match the return type of a gcc2
3120 builtin and then its argument prototype would still apply. */
3125 /* The GNU C library defines this for functions which it implements
3126 to always fail with ENOSYS. Some functions are actually named
3127 something starting with __ and the normal name is an alias. */
3128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3136 if { (eval echo configure
:3137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3138 eval "ac_cv_func_$ac_func=yes"
3140 echo "configure: failed program was:" >&5
3141 cat conftest.
$ac_ext >&5
3143 eval "ac_cv_func_$ac_func=no"
3148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3149 echo "$ac_t""yes" 1>&6
3150 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3151 cat >> confdefs.h
<<EOF
3152 #define $ac_tr_func 1
3156 echo "$ac_t""no" 1>&6
3160 if test x
"$ac_cv_func_pam_authenticate" = x
"no"; then
3161 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
3162 echo "configure:3163: checking for pam_authenticate in -lpam" >&5
3163 ac_lib_var
=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
3164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3165 echo $ac_n "(cached) $ac_c" 1>&6
3167 ac_save_LIBS
="$LIBS"
3169 cat > conftest.
$ac_ext <<EOF
3170 #line 3171 "configure"
3171 #include "confdefs.h"
3172 /* Override any gcc2 internal prototype to avoid an error. */
3173 /* We use char because int might match the return type of a gcc2
3174 builtin and then its argument prototype would still apply. */
3175 char pam_authenticate();
3181 if { (eval echo configure
:3182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3183 eval "ac_cv_lib_$ac_lib_var=yes"
3185 echo "configure: failed program was:" >&5
3186 cat conftest.
$ac_ext >&5
3188 eval "ac_cv_lib_$ac_lib_var=no"
3191 LIBS
="$ac_save_LIBS"
3194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3195 echo "$ac_t""yes" 1>&6
3197 cat >> confdefs.h
<<\EOF
3198 #define HAVE_PAM_AUTHENTICATE 1
3202 echo "$ac_t""no" 1>&6
3208 ###############################################
3209 # test for where we get readline() from
3210 if test "$ac_cv_header_readline_h" = "yes" ||
3211 test "$ac_cv_header_readline_readline_h" = "yes"; then
3212 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3213 echo "configure:3214: checking for readline in -lreadline" >&5
3214 ac_lib_var
=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3218 ac_save_LIBS
="$LIBS"
3219 LIBS
="-lreadline $LIBS"
3220 cat > conftest.
$ac_ext <<EOF
3221 #line 3222 "configure"
3222 #include "confdefs.h"
3223 /* Override any gcc2 internal prototype to avoid an error. */
3224 /* We use char because int might match the return type of a gcc2
3225 builtin and then its argument prototype would still apply. */
3232 if { (eval echo configure
:3233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3234 eval "ac_cv_lib_$ac_lib_var=yes"
3236 echo "configure: failed program was:" >&5
3237 cat conftest.
$ac_ext >&5
3239 eval "ac_cv_lib_$ac_lib_var=no"
3242 LIBS
="$ac_save_LIBS"
3245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3246 echo "$ac_t""yes" 1>&6
3247 ac_tr_lib
=HAVE_LIB
`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3248 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3249 cat >> confdefs.h
<<EOF
3250 #define $ac_tr_lib 1
3253 LIBS
="-lreadline $LIBS"
3256 echo "$ac_t""no" 1>&6
3262 # The following test taken from the cvs sources
3263 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3264 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3265 # libsocket.so which has a bad implementation of gethostbyname (it
3266 # only looks in /etc/hosts), so we only look for -lsocket if we need
3268 for ac_func
in connect
3270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3271 echo "configure:3272: checking for $ac_func" >&5
3272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3273 echo $ac_n "(cached) $ac_c" 1>&6
3275 cat > conftest.
$ac_ext <<EOF
3276 #line 3277 "configure"
3277 #include "confdefs.h"
3278 /* System header to define __stub macros and hopefully few prototypes,
3279 which can conflict with char $ac_func(); below. */
3281 /* Override any gcc2 internal prototype to avoid an error. */
3282 /* We use char because int might match the return type of a gcc2
3283 builtin and then its argument prototype would still apply. */
3288 /* The GNU C library defines this for functions which it implements
3289 to always fail with ENOSYS. Some functions are actually named
3290 something starting with __ and the normal name is an alias. */
3291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3299 if { (eval echo configure
:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3301 eval "ac_cv_func_$ac_func=yes"
3303 echo "configure: failed program was:" >&5
3304 cat conftest.
$ac_ext >&5
3306 eval "ac_cv_func_$ac_func=no"
3311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3312 echo "$ac_t""yes" 1>&6
3313 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3314 cat >> confdefs.h
<<EOF
3315 #define $ac_tr_func 1
3319 echo "$ac_t""no" 1>&6
3323 if test x
"$ac_cv_func_connect" = x
"no"; then
3326 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
3327 echo "configure:3328: checking for printf in -lnsl_s" >&5
3328 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
3329 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3330 echo $ac_n "(cached) $ac_c" 1>&6
3332 ac_save_LIBS
="$LIBS"
3333 LIBS
="-lnsl_s $LIBS"
3334 cat > conftest.
$ac_ext <<EOF
3335 #line 3336 "configure"
3336 #include "confdefs.h"
3337 /* Override any gcc2 internal prototype to avoid an error. */
3338 /* We use char because int might match the return type of a gcc2
3339 builtin and then its argument prototype would still apply. */
3346 if { (eval echo configure
:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3348 eval "ac_cv_lib_$ac_lib_var=yes"
3350 echo "configure: failed program was:" >&5
3351 cat conftest.
$ac_ext >&5
3353 eval "ac_cv_lib_$ac_lib_var=no"
3356 LIBS
="$ac_save_LIBS"
3359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3360 echo "$ac_t""yes" 1>&6
3361 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3362 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3363 cat >> confdefs.h
<<EOF
3364 #define $ac_tr_lib 1
3367 LIBS
="-lnsl_s $LIBS"
3370 echo "$ac_t""no" 1>&6
3376 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3377 echo "configure:3378: checking for printf in -lnsl" >&5
3378 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3382 ac_save_LIBS
="$LIBS"
3384 cat > conftest.
$ac_ext <<EOF
3385 #line 3386 "configure"
3386 #include "confdefs.h"
3387 /* Override any gcc2 internal prototype to avoid an error. */
3388 /* We use char because int might match the return type of a gcc2
3389 builtin and then its argument prototype would still apply. */
3396 if { (eval echo configure
:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3398 eval "ac_cv_lib_$ac_lib_var=yes"
3400 echo "configure: failed program was:" >&5
3401 cat conftest.
$ac_ext >&5
3403 eval "ac_cv_lib_$ac_lib_var=no"
3406 LIBS
="$ac_save_LIBS"
3409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3410 echo "$ac_t""yes" 1>&6
3411 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3412 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3413 cat >> confdefs.h
<<EOF
3414 #define $ac_tr_lib 1
3420 echo "$ac_t""no" 1>&6
3426 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3427 echo "configure:3428: checking for connect in -lsocket" >&5
3428 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3430 echo $ac_n "(cached) $ac_c" 1>&6
3432 ac_save_LIBS
="$LIBS"
3433 LIBS
="-lsocket $LIBS"
3434 cat > conftest.
$ac_ext <<EOF
3435 #line 3436 "configure"
3436 #include "confdefs.h"
3437 /* Override any gcc2 internal prototype to avoid an error. */
3438 /* We use char because int might match the return type of a gcc2
3439 builtin and then its argument prototype would still apply. */
3446 if { (eval echo configure
:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3448 eval "ac_cv_lib_$ac_lib_var=yes"
3450 echo "configure: failed program was:" >&5
3451 cat conftest.
$ac_ext >&5
3453 eval "ac_cv_lib_$ac_lib_var=no"
3456 LIBS
="$ac_save_LIBS"
3459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3460 echo "$ac_t""yes" 1>&6
3461 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3462 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3463 cat >> confdefs.h
<<EOF
3464 #define $ac_tr_lib 1
3467 LIBS
="-lsocket $LIBS"
3470 echo "$ac_t""no" 1>&6
3476 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3477 echo "configure:3478: checking for connect in -linet" >&5
3478 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3480 echo $ac_n "(cached) $ac_c" 1>&6
3482 ac_save_LIBS
="$LIBS"
3484 cat > conftest.
$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3487 /* Override any gcc2 internal prototype to avoid an error. */
3488 /* We use char because int might match the return type of a gcc2
3489 builtin and then its argument prototype would still apply. */
3496 if { (eval echo configure
:3497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3498 eval "ac_cv_lib_$ac_lib_var=yes"
3500 echo "configure: failed program was:" >&5
3501 cat conftest.
$ac_ext >&5
3503 eval "ac_cv_lib_$ac_lib_var=no"
3506 LIBS
="$ac_save_LIBS"
3509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3510 echo "$ac_t""yes" 1>&6
3511 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3512 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3513 cat >> confdefs.h
<<EOF
3514 #define $ac_tr_lib 1
3520 echo "$ac_t""no" 1>&6
3524 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
3525 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
3526 # ac_cv_func_connect=yes
3527 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
3528 cat >> confdefs.h
<<\EOF
3529 #define HAVE_CONNECT 1
3536 for ac_func
in waitpid getcwd strdup strerror chown
chmod chroot
3538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3539 echo "configure:3540: checking for $ac_func" >&5
3540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
3543 cat > conftest.
$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 /* System header to define __stub macros and hopefully few prototypes,
3547 which can conflict with char $ac_func(); below. */
3549 /* Override any gcc2 internal prototype to avoid an error. */
3550 /* We use char because int might match the return type of a gcc2
3551 builtin and then its argument prototype would still apply. */
3556 /* The GNU C library defines this for functions which it implements
3557 to always fail with ENOSYS. Some functions are actually named
3558 something starting with __ and the normal name is an alias. */
3559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3567 if { (eval echo configure
:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3569 eval "ac_cv_func_$ac_func=yes"
3571 echo "configure: failed program was:" >&5
3572 cat conftest.
$ac_ext >&5
3574 eval "ac_cv_func_$ac_func=no"
3579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3580 echo "$ac_t""yes" 1>&6
3581 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3582 cat >> confdefs.h
<<EOF
3583 #define $ac_tr_func 1
3587 echo "$ac_t""no" 1>&6
3591 for ac_func
in fstat strchr utime utimes getrlimit fsync execl bzero memset
3593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3594 echo "configure:3595: checking for $ac_func" >&5
3595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3598 cat > conftest.
$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3601 /* System header to define __stub macros and hopefully few prototypes,
3602 which can conflict with char $ac_func(); below. */
3604 /* Override any gcc2 internal prototype to avoid an error. */
3605 /* We use char because int might match the return type of a gcc2
3606 builtin and then its argument prototype would still apply. */
3611 /* The GNU C library defines this for functions which it implements
3612 to always fail with ENOSYS. Some functions are actually named
3613 something starting with __ and the normal name is an alias. */
3614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3622 if { (eval echo configure
:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3624 eval "ac_cv_func_$ac_func=yes"
3626 echo "configure: failed program was:" >&5
3627 cat conftest.
$ac_ext >&5
3629 eval "ac_cv_func_$ac_func=no"
3634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3635 echo "$ac_t""yes" 1>&6
3636 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3637 cat >> confdefs.h
<<EOF
3638 #define $ac_tr_func 1
3642 echo "$ac_t""no" 1>&6
3646 for ac_func
in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
3648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3649 echo "configure:3650: checking for $ac_func" >&5
3650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3653 cat > conftest.
$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3656 /* System header to define __stub macros and hopefully few prototypes,
3657 which can conflict with char $ac_func(); below. */
3659 /* Override any gcc2 internal prototype to avoid an error. */
3660 /* We use char because int might match the return type of a gcc2
3661 builtin and then its argument prototype would still apply. */
3666 /* The GNU C library defines this for functions which it implements
3667 to always fail with ENOSYS. Some functions are actually named
3668 something starting with __ and the normal name is an alias. */
3669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3677 if { (eval echo configure
:3678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3679 eval "ac_cv_func_$ac_func=yes"
3681 echo "configure: failed program was:" >&5
3682 cat conftest.
$ac_ext >&5
3684 eval "ac_cv_func_$ac_func=no"
3689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3690 echo "$ac_t""yes" 1>&6
3691 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3692 cat >> confdefs.h
<<EOF
3693 #define $ac_tr_func 1
3697 echo "$ac_t""no" 1>&6
3701 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
3703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3704 echo "configure:3705: checking for $ac_func" >&5
3705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3706 echo $ac_n "(cached) $ac_c" 1>&6
3708 cat > conftest.
$ac_ext <<EOF
3709 #line 3710 "configure"
3710 #include "confdefs.h"
3711 /* System header to define __stub macros and hopefully few prototypes,
3712 which can conflict with char $ac_func(); below. */
3714 /* Override any gcc2 internal prototype to avoid an error. */
3715 /* We use char because int might match the return type of a gcc2
3716 builtin and then its argument prototype would still apply. */
3721 /* The GNU C library defines this for functions which it implements
3722 to always fail with ENOSYS. Some functions are actually named
3723 something starting with __ and the normal name is an alias. */
3724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3732 if { (eval echo configure
:3733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3734 eval "ac_cv_func_$ac_func=yes"
3736 echo "configure: failed program was:" >&5
3737 cat conftest.
$ac_ext >&5
3739 eval "ac_cv_func_$ac_func=no"
3744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3745 echo "$ac_t""yes" 1>&6
3746 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3747 cat >> confdefs.h
<<EOF
3748 #define $ac_tr_func 1
3752 echo "$ac_t""no" 1>&6
3756 for ac_func
in initgroups
select rdchk getgrnam pathconf putprpwnam
3758 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3759 echo "configure:3760: checking for $ac_func" >&5
3760 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3763 cat > conftest.
$ac_ext <<EOF
3764 #line 3765 "configure"
3765 #include "confdefs.h"
3766 /* System header to define __stub macros and hopefully few prototypes,
3767 which can conflict with char $ac_func(); below. */
3769 /* Override any gcc2 internal prototype to avoid an error. */
3770 /* We use char because int might match the return type of a gcc2
3771 builtin and then its argument prototype would still apply. */
3776 /* The GNU C library defines this for functions which it implements
3777 to always fail with ENOSYS. Some functions are actually named
3778 something starting with __ and the normal name is an alias. */
3779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3787 if { (eval echo configure
:3788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3789 eval "ac_cv_func_$ac_func=yes"
3791 echo "configure: failed program was:" >&5
3792 cat conftest.
$ac_ext >&5
3794 eval "ac_cv_func_$ac_func=no"
3799 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3800 echo "$ac_t""yes" 1>&6
3801 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3802 cat >> confdefs.h
<<EOF
3803 #define $ac_tr_func 1
3807 echo "$ac_t""no" 1>&6
3811 for ac_func
in setuidx setgroups mktime rename ftruncate stat64 fstat64 lstat64 fopen64
3813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3814 echo "configure:3815: checking for $ac_func" >&5
3815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3818 cat > conftest.
$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3821 /* System header to define __stub macros and hopefully few prototypes,
3822 which can conflict with char $ac_func(); below. */
3824 /* Override any gcc2 internal prototype to avoid an error. */
3825 /* We use char because int might match the return type of a gcc2
3826 builtin and then its argument prototype would still apply. */
3831 /* The GNU C library defines this for functions which it implements
3832 to always fail with ENOSYS. Some functions are actually named
3833 something starting with __ and the normal name is an alias. */
3834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3842 if { (eval echo configure
:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3844 eval "ac_cv_func_$ac_func=yes"
3846 echo "configure: failed program was:" >&5
3847 cat conftest.
$ac_ext >&5
3849 eval "ac_cv_func_$ac_func=no"
3854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3855 echo "$ac_t""yes" 1>&6
3856 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3857 cat >> confdefs.h
<<EOF
3858 #define $ac_tr_func 1
3862 echo "$ac_t""no" 1>&6
3866 for ac_func
in set_auth_parameters atexit grantpt getspnam dup2 lseek64 ftruncate64
3868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3869 echo "configure:3870: checking for $ac_func" >&5
3870 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3873 cat > conftest.
$ac_ext <<EOF
3874 #line 3875 "configure"
3875 #include "confdefs.h"
3876 /* System header to define __stub macros and hopefully few prototypes,
3877 which can conflict with char $ac_func(); below. */
3879 /* Override any gcc2 internal prototype to avoid an error. */
3880 /* We use char because int might match the return type of a gcc2
3881 builtin and then its argument prototype would still apply. */
3886 /* The GNU C library defines this for functions which it implements
3887 to always fail with ENOSYS. Some functions are actually named
3888 something starting with __ and the normal name is an alias. */
3889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3897 if { (eval echo configure
:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3899 eval "ac_cv_func_$ac_func=yes"
3901 echo "configure: failed program was:" >&5
3902 cat conftest.
$ac_ext >&5
3904 eval "ac_cv_func_$ac_func=no"
3909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3910 echo "$ac_t""yes" 1>&6
3911 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3912 cat >> confdefs.h
<<EOF
3913 #define $ac_tr_func 1
3917 echo "$ac_t""no" 1>&6
3921 for ac_func
in fseek64 ftell64 bigcrypt getprpwnam setluid yp_get_default_domain getpwanam
3923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3924 echo "configure:3925: checking for $ac_func" >&5
3925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3928 cat > conftest.
$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3931 /* System header to define __stub macros and hopefully few prototypes,
3932 which can conflict with char $ac_func(); below. */
3934 /* Override any gcc2 internal prototype to avoid an error. */
3935 /* We use char because int might match the return type of a gcc2
3936 builtin and then its argument prototype would still apply. */
3941 /* The GNU C library defines this for functions which it implements
3942 to always fail with ENOSYS. Some functions are actually named
3943 something starting with __ and the normal name is an alias. */
3944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3952 if { (eval echo configure
:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3954 eval "ac_cv_func_$ac_func=yes"
3956 echo "configure: failed program was:" >&5
3957 cat conftest.
$ac_ext >&5
3959 eval "ac_cv_func_$ac_func=no"
3964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3965 echo "$ac_t""yes" 1>&6
3966 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3967 cat >> confdefs.h
<<EOF
3968 #define $ac_tr_func 1
3972 echo "$ac_t""no" 1>&6
3976 for ac_func
in srandom random srand rand setenv mmap64
3978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3979 echo "configure:3980: checking for $ac_func" >&5
3980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3981 echo $ac_n "(cached) $ac_c" 1>&6
3983 cat > conftest.
$ac_ext <<EOF
3984 #line 3985 "configure"
3985 #include "confdefs.h"
3986 /* System header to define __stub macros and hopefully few prototypes,
3987 which can conflict with char $ac_func(); below. */
3989 /* Override any gcc2 internal prototype to avoid an error. */
3990 /* We use char because int might match the return type of a gcc2
3991 builtin and then its argument prototype would still apply. */
3996 /* The GNU C library defines this for functions which it implements
3997 to always fail with ENOSYS. Some functions are actually named
3998 something starting with __ and the normal name is an alias. */
3999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4007 if { (eval echo configure
:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4009 eval "ac_cv_func_$ac_func=yes"
4011 echo "configure: failed program was:" >&5
4012 cat conftest.
$ac_ext >&5
4014 eval "ac_cv_func_$ac_func=no"
4019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4020 echo "$ac_t""yes" 1>&6
4021 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4022 cat >> confdefs.h
<<EOF
4023 #define $ac_tr_func 1
4027 echo "$ac_t""no" 1>&6
4031 # syscall() is needed for smbwrapper.
4032 for ac_func
in syscall
4034 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4035 echo "configure:4036: checking for $ac_func" >&5
4036 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4037 echo $ac_n "(cached) $ac_c" 1>&6
4039 cat > conftest.
$ac_ext <<EOF
4040 #line 4041 "configure"
4041 #include "confdefs.h"
4042 /* System header to define __stub macros and hopefully few prototypes,
4043 which can conflict with char $ac_func(); below. */
4045 /* Override any gcc2 internal prototype to avoid an error. */
4046 /* We use char because int might match the return type of a gcc2
4047 builtin and then its argument prototype would still apply. */
4052 /* The GNU C library defines this for functions which it implements
4053 to always fail with ENOSYS. Some functions are actually named
4054 something starting with __ and the normal name is an alias. */
4055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4063 if { (eval echo configure
:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4065 eval "ac_cv_func_$ac_func=yes"
4067 echo "configure: failed program was:" >&5
4068 cat conftest.
$ac_ext >&5
4070 eval "ac_cv_func_$ac_func=no"
4075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4076 echo "$ac_t""yes" 1>&6
4077 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4078 cat >> confdefs.h
<<EOF
4079 #define $ac_tr_func 1
4083 echo "$ac_t""no" 1>&6
4088 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
4090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4091 echo "configure:4092: checking for $ac_func" >&5
4092 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4093 echo $ac_n "(cached) $ac_c" 1>&6
4095 cat > conftest.
$ac_ext <<EOF
4096 #line 4097 "configure"
4097 #include "confdefs.h"
4098 /* System header to define __stub macros and hopefully few prototypes,
4099 which can conflict with char $ac_func(); below. */
4101 /* Override any gcc2 internal prototype to avoid an error. */
4102 /* We use char because int might match the return type of a gcc2
4103 builtin and then its argument prototype would still apply. */
4108 /* The GNU C library defines this for functions which it implements
4109 to always fail with ENOSYS. Some functions are actually named
4110 something starting with __ and the normal name is an alias. */
4111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4119 if { (eval echo configure
:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4121 eval "ac_cv_func_$ac_func=yes"
4123 echo "configure: failed program was:" >&5
4124 cat conftest.
$ac_ext >&5
4126 eval "ac_cv_func_$ac_func=no"
4131 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4132 echo "$ac_t""yes" 1>&6
4133 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4134 cat >> confdefs.h
<<EOF
4135 #define $ac_tr_func 1
4139 echo "$ac_t""no" 1>&6
4143 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
4145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4146 echo "configure:4147: checking for $ac_func" >&5
4147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4150 cat > conftest.
$ac_ext <<EOF
4151 #line 4152 "configure"
4152 #include "confdefs.h"
4153 /* System header to define __stub macros and hopefully few prototypes,
4154 which can conflict with char $ac_func(); below. */
4156 /* Override any gcc2 internal prototype to avoid an error. */
4157 /* We use char because int might match the return type of a gcc2
4158 builtin and then its argument prototype would still apply. */
4163 /* The GNU C library defines this for functions which it implements
4164 to always fail with ENOSYS. Some functions are actually named
4165 something starting with __ and the normal name is an alias. */
4166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4174 if { (eval echo configure
:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4176 eval "ac_cv_func_$ac_func=yes"
4178 echo "configure: failed program was:" >&5
4179 cat conftest.
$ac_ext >&5
4181 eval "ac_cv_func_$ac_func=no"
4186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4187 echo "$ac_t""yes" 1>&6
4188 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4189 cat >> confdefs.h
<<EOF
4190 #define $ac_tr_func 1
4194 echo "$ac_t""no" 1>&6
4198 for ac_func
in __getcwd _getcwd
4200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4201 echo "configure:4202: checking for $ac_func" >&5
4202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4203 echo $ac_n "(cached) $ac_c" 1>&6
4205 cat > conftest.
$ac_ext <<EOF
4206 #line 4207 "configure"
4207 #include "confdefs.h"
4208 /* System header to define __stub macros and hopefully few prototypes,
4209 which can conflict with char $ac_func(); below. */
4211 /* Override any gcc2 internal prototype to avoid an error. */
4212 /* We use char because int might match the return type of a gcc2
4213 builtin and then its argument prototype would still apply. */
4218 /* The GNU C library defines this for functions which it implements
4219 to always fail with ENOSYS. Some functions are actually named
4220 something starting with __ and the normal name is an alias. */
4221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4229 if { (eval echo configure
:4230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4231 eval "ac_cv_func_$ac_func=yes"
4233 echo "configure: failed program was:" >&5
4234 cat conftest.
$ac_ext >&5
4236 eval "ac_cv_func_$ac_func=no"
4241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4242 echo "$ac_t""yes" 1>&6
4243 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4244 cat >> confdefs.h
<<EOF
4245 #define $ac_tr_func 1
4249 echo "$ac_t""no" 1>&6
4253 for ac_func
in __xstat __fxstat __lxstat
4255 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4256 echo "configure:4257: checking for $ac_func" >&5
4257 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4258 echo $ac_n "(cached) $ac_c" 1>&6
4260 cat > conftest.
$ac_ext <<EOF
4261 #line 4262 "configure"
4262 #include "confdefs.h"
4263 /* System header to define __stub macros and hopefully few prototypes,
4264 which can conflict with char $ac_func(); below. */
4266 /* Override any gcc2 internal prototype to avoid an error. */
4267 /* We use char because int might match the return type of a gcc2
4268 builtin and then its argument prototype would still apply. */
4273 /* The GNU C library defines this for functions which it implements
4274 to always fail with ENOSYS. Some functions are actually named
4275 something starting with __ and the normal name is an alias. */
4276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4284 if { (eval echo configure
:4285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4286 eval "ac_cv_func_$ac_func=yes"
4288 echo "configure: failed program was:" >&5
4289 cat conftest.
$ac_ext >&5
4291 eval "ac_cv_func_$ac_func=no"
4296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4297 echo "$ac_t""yes" 1>&6
4298 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4299 cat >> confdefs.h
<<EOF
4300 #define $ac_tr_func 1
4304 echo "$ac_t""no" 1>&6
4308 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
4310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4311 echo "configure:4312: checking for $ac_func" >&5
4312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4313 echo $ac_n "(cached) $ac_c" 1>&6
4315 cat > conftest.
$ac_ext <<EOF
4316 #line 4317 "configure"
4317 #include "confdefs.h"
4318 /* System header to define __stub macros and hopefully few prototypes,
4319 which can conflict with char $ac_func(); below. */
4321 /* Override any gcc2 internal prototype to avoid an error. */
4322 /* We use char because int might match the return type of a gcc2
4323 builtin and then its argument prototype would still apply. */
4328 /* The GNU C library defines this for functions which it implements
4329 to always fail with ENOSYS. Some functions are actually named
4330 something starting with __ and the normal name is an alias. */
4331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4339 if { (eval echo configure
:4340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4341 eval "ac_cv_func_$ac_func=yes"
4343 echo "configure: failed program was:" >&5
4344 cat conftest.
$ac_ext >&5
4346 eval "ac_cv_func_$ac_func=no"
4351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4352 echo "$ac_t""yes" 1>&6
4353 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4354 cat >> confdefs.h
<<EOF
4355 #define $ac_tr_func 1
4359 echo "$ac_t""no" 1>&6
4363 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
4365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4366 echo "configure:4367: checking for $ac_func" >&5
4367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4370 cat > conftest.
$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4373 /* System header to define __stub macros and hopefully few prototypes,
4374 which can conflict with char $ac_func(); below. */
4376 /* Override any gcc2 internal prototype to avoid an error. */
4377 /* We use char because int might match the return type of a gcc2
4378 builtin and then its argument prototype would still apply. */
4383 /* The GNU C library defines this for functions which it implements
4384 to always fail with ENOSYS. Some functions are actually named
4385 something starting with __ and the normal name is an alias. */
4386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4394 if { (eval echo configure
:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4396 eval "ac_cv_func_$ac_func=yes"
4398 echo "configure: failed program was:" >&5
4399 cat conftest.
$ac_ext >&5
4401 eval "ac_cv_func_$ac_func=no"
4406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4407 echo "$ac_t""yes" 1>&6
4408 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4409 cat >> confdefs.h
<<EOF
4410 #define $ac_tr_func 1
4414 echo "$ac_t""no" 1>&6
4418 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
4420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4421 echo "configure:4422: checking for $ac_func" >&5
4422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4423 echo $ac_n "(cached) $ac_c" 1>&6
4425 cat > conftest.
$ac_ext <<EOF
4426 #line 4427 "configure"
4427 #include "confdefs.h"
4428 /* System header to define __stub macros and hopefully few prototypes,
4429 which can conflict with char $ac_func(); below. */
4431 /* Override any gcc2 internal prototype to avoid an error. */
4432 /* We use char because int might match the return type of a gcc2
4433 builtin and then its argument prototype would still apply. */
4438 /* The GNU C library defines this for functions which it implements
4439 to always fail with ENOSYS. Some functions are actually named
4440 something starting with __ and the normal name is an alias. */
4441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4449 if { (eval echo configure
:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4451 eval "ac_cv_func_$ac_func=yes"
4453 echo "configure: failed program was:" >&5
4454 cat conftest.
$ac_ext >&5
4456 eval "ac_cv_func_$ac_func=no"
4461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4462 echo "$ac_t""yes" 1>&6
4463 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4464 cat >> confdefs.h
<<EOF
4465 #define $ac_tr_func 1
4469 echo "$ac_t""no" 1>&6
4473 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
4475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4476 echo "configure:4477: checking for $ac_func" >&5
4477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4478 echo $ac_n "(cached) $ac_c" 1>&6
4480 cat > conftest.
$ac_ext <<EOF
4481 #line 4482 "configure"
4482 #include "confdefs.h"
4483 /* System header to define __stub macros and hopefully few prototypes,
4484 which can conflict with char $ac_func(); below. */
4486 /* Override any gcc2 internal prototype to avoid an error. */
4487 /* We use char because int might match the return type of a gcc2
4488 builtin and then its argument prototype would still apply. */
4493 /* The GNU C library defines this for functions which it implements
4494 to always fail with ENOSYS. Some functions are actually named
4495 something starting with __ and the normal name is an alias. */
4496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4504 if { (eval echo configure
:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4506 eval "ac_cv_func_$ac_func=yes"
4508 echo "configure: failed program was:" >&5
4509 cat conftest.
$ac_ext >&5
4511 eval "ac_cv_func_$ac_func=no"
4516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4517 echo "$ac_t""yes" 1>&6
4518 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4519 cat >> confdefs.h
<<EOF
4520 #define $ac_tr_func 1
4524 echo "$ac_t""no" 1>&6
4528 for ac_func
in _write __write _fork __fork
4530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4531 echo "configure:4532: checking for $ac_func" >&5
4532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4535 cat > conftest.
$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4538 /* System header to define __stub macros and hopefully few prototypes,
4539 which can conflict with char $ac_func(); below. */
4541 /* Override any gcc2 internal prototype to avoid an error. */
4542 /* We use char because int might match the return type of a gcc2
4543 builtin and then its argument prototype would still apply. */
4548 /* The GNU C library defines this for functions which it implements
4549 to always fail with ENOSYS. Some functions are actually named
4550 something starting with __ and the normal name is an alias. */
4551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4559 if { (eval echo configure
:4560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4561 eval "ac_cv_func_$ac_func=yes"
4563 echo "configure: failed program was:" >&5
4564 cat conftest.
$ac_ext >&5
4566 eval "ac_cv_func_$ac_func=no"
4571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4572 echo "$ac_t""yes" 1>&6
4573 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4574 cat >> confdefs.h
<<EOF
4575 #define $ac_tr_func 1
4579 echo "$ac_t""no" 1>&6
4583 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
4585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4586 echo "configure:4587: checking for $ac_func" >&5
4587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4588 echo $ac_n "(cached) $ac_c" 1>&6
4590 cat > conftest.
$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4593 /* System header to define __stub macros and hopefully few prototypes,
4594 which can conflict with char $ac_func(); below. */
4596 /* Override any gcc2 internal prototype to avoid an error. */
4597 /* We use char because int might match the return type of a gcc2
4598 builtin and then its argument prototype would still apply. */
4603 /* The GNU C library defines this for functions which it implements
4604 to always fail with ENOSYS. Some functions are actually named
4605 something starting with __ and the normal name is an alias. */
4606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4614 if { (eval echo configure
:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4616 eval "ac_cv_func_$ac_func=yes"
4618 echo "configure: failed program was:" >&5
4619 cat conftest.
$ac_ext >&5
4621 eval "ac_cv_func_$ac_func=no"
4626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4627 echo "$ac_t""yes" 1>&6
4628 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4629 cat >> confdefs.h
<<EOF
4630 #define $ac_tr_func 1
4634 echo "$ac_t""no" 1>&6
4638 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
4640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4641 echo "configure:4642: checking for $ac_func" >&5
4642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4643 echo $ac_n "(cached) $ac_c" 1>&6
4645 cat > conftest.
$ac_ext <<EOF
4646 #line 4647 "configure"
4647 #include "confdefs.h"
4648 /* System header to define __stub macros and hopefully few prototypes,
4649 which can conflict with char $ac_func(); below. */
4651 /* Override any gcc2 internal prototype to avoid an error. */
4652 /* We use char because int might match the return type of a gcc2
4653 builtin and then its argument prototype would still apply. */
4658 /* The GNU C library defines this for functions which it implements
4659 to always fail with ENOSYS. Some functions are actually named
4660 something starting with __ and the normal name is an alias. */
4661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4669 if { (eval echo configure
:4670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4671 eval "ac_cv_func_$ac_func=yes"
4673 echo "configure: failed program was:" >&5
4674 cat conftest.
$ac_ext >&5
4676 eval "ac_cv_func_$ac_func=no"
4681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4682 echo "$ac_t""yes" 1>&6
4683 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4684 cat >> confdefs.h
<<EOF
4685 #define $ac_tr_func 1
4689 echo "$ac_t""no" 1>&6
4693 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
4695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4696 echo "configure:4697: checking for $ac_func" >&5
4697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4700 cat > conftest.
$ac_ext <<EOF
4701 #line 4702 "configure"
4702 #include "confdefs.h"
4703 /* System header to define __stub macros and hopefully few prototypes,
4704 which can conflict with char $ac_func(); below. */
4706 /* Override any gcc2 internal prototype to avoid an error. */
4707 /* We use char because int might match the return type of a gcc2
4708 builtin and then its argument prototype would still apply. */
4713 /* The GNU C library defines this for functions which it implements
4714 to always fail with ENOSYS. Some functions are actually named
4715 something starting with __ and the normal name is an alias. */
4716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4724 if { (eval echo configure
:4725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4726 eval "ac_cv_func_$ac_func=yes"
4728 echo "configure: failed program was:" >&5
4729 cat conftest.
$ac_ext >&5
4731 eval "ac_cv_func_$ac_func=no"
4736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4737 echo "$ac_t""yes" 1>&6
4738 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4739 cat >> confdefs.h
<<EOF
4740 #define $ac_tr_func 1
4744 echo "$ac_t""no" 1>&6
4748 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
4750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4751 echo "configure:4752: checking for $ac_func" >&5
4752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4755 cat > conftest.
$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4758 /* System header to define __stub macros and hopefully few prototypes,
4759 which can conflict with char $ac_func(); below. */
4761 /* Override any gcc2 internal prototype to avoid an error. */
4762 /* We use char because int might match the return type of a gcc2
4763 builtin and then its argument prototype would still apply. */
4768 /* The GNU C library defines this for functions which it implements
4769 to always fail with ENOSYS. Some functions are actually named
4770 something starting with __ and the normal name is an alias. */
4771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4779 if { (eval echo configure
:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4781 eval "ac_cv_func_$ac_func=yes"
4783 echo "configure: failed program was:" >&5
4784 cat conftest.
$ac_ext >&5
4786 eval "ac_cv_func_$ac_func=no"
4791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4792 echo "$ac_t""yes" 1>&6
4793 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4794 cat >> confdefs.h
<<EOF
4795 #define $ac_tr_func 1
4799 echo "$ac_t""no" 1>&6
4803 for ac_func
in open64 _open64 __open64 creat64
4805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4806 echo "configure:4807: checking for $ac_func" >&5
4807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4808 echo $ac_n "(cached) $ac_c" 1>&6
4810 cat > conftest.
$ac_ext <<EOF
4811 #line 4812 "configure"
4812 #include "confdefs.h"
4813 /* System header to define __stub macros and hopefully few prototypes,
4814 which can conflict with char $ac_func(); below. */
4816 /* Override any gcc2 internal prototype to avoid an error. */
4817 /* We use char because int might match the return type of a gcc2
4818 builtin and then its argument prototype would still apply. */
4823 /* The GNU C library defines this for functions which it implements
4824 to always fail with ENOSYS. Some functions are actually named
4825 something starting with __ and the normal name is an alias. */
4826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4834 if { (eval echo configure
:4835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4836 eval "ac_cv_func_$ac_func=yes"
4838 echo "configure: failed program was:" >&5
4839 cat conftest.
$ac_ext >&5
4841 eval "ac_cv_func_$ac_func=no"
4846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4847 echo "$ac_t""yes" 1>&6
4848 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4849 cat >> confdefs.h
<<EOF
4850 #define $ac_tr_func 1
4854 echo "$ac_t""no" 1>&6
4860 # Check for the functions putprpwnam, set_auth_parameters,
4861 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
4862 # Needed for OSF1 and HPUX.
4865 if test x
"$ac_cv_func_putprpwnam" = x
"no"; then
4868 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
4869 echo "configure:4870: checking for putprpwnam in -lsecurity" >&5
4870 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
4871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4872 echo $ac_n "(cached) $ac_c" 1>&6
4874 ac_save_LIBS
="$LIBS"
4875 LIBS
="-lsecurity $LIBS"
4876 cat > conftest.
$ac_ext <<EOF
4877 #line 4878 "configure"
4878 #include "confdefs.h"
4879 /* Override any gcc2 internal prototype to avoid an error. */
4880 /* We use char because int might match the return type of a gcc2
4881 builtin and then its argument prototype would still apply. */
4888 if { (eval echo configure
:4889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4890 eval "ac_cv_lib_$ac_lib_var=yes"
4892 echo "configure: failed program was:" >&5
4893 cat conftest.
$ac_ext >&5
4895 eval "ac_cv_lib_$ac_lib_var=no"
4898 LIBS
="$ac_save_LIBS"
4901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4902 echo "$ac_t""yes" 1>&6
4903 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4904 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4905 cat >> confdefs.h
<<EOF
4906 #define $ac_tr_lib 1
4909 LIBS
="-lsecurity $LIBS"
4912 echo "$ac_t""no" 1>&6
4918 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
4919 echo "configure:4920: checking for putprpwnam in -lsec" >&5
4920 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
4921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4924 ac_save_LIBS
="$LIBS"
4926 cat > conftest.
$ac_ext <<EOF
4927 #line 4928 "configure"
4928 #include "confdefs.h"
4929 /* Override any gcc2 internal prototype to avoid an error. */
4930 /* We use char because int might match the return type of a gcc2
4931 builtin and then its argument prototype would still apply. */
4938 if { (eval echo configure
:4939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4940 eval "ac_cv_lib_$ac_lib_var=yes"
4942 echo "configure: failed program was:" >&5
4943 cat conftest.
$ac_ext >&5
4945 eval "ac_cv_lib_$ac_lib_var=no"
4948 LIBS
="$ac_save_LIBS"
4951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4952 echo "$ac_t""yes" 1>&6
4953 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4954 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4955 cat >> confdefs.h
<<EOF
4956 #define $ac_tr_lib 1
4962 echo "$ac_t""no" 1>&6
4966 if test x
"$ac_cv_lib_security_putprpwnam" = x
"yes" ||
4967 test x
"$ac_cv_lib_sec_putprpwnam" = x
"yes"; then
4968 cat >> confdefs.h
<<\EOF
4969 #define HAVE_PUTPRPWNAM 1
4975 if test x
"$ac_cv_func_set_auth_parameters" = x
"no"; then
4978 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
4979 echo "configure:4980: checking for set_auth_parameters in -lsecurity" >&5
4980 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
4981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4982 echo $ac_n "(cached) $ac_c" 1>&6
4984 ac_save_LIBS
="$LIBS"
4985 LIBS
="-lsecurity $LIBS"
4986 cat > conftest.
$ac_ext <<EOF
4987 #line 4988 "configure"
4988 #include "confdefs.h"
4989 /* Override any gcc2 internal prototype to avoid an error. */
4990 /* We use char because int might match the return type of a gcc2
4991 builtin and then its argument prototype would still apply. */
4992 char set_auth_parameters();
4995 set_auth_parameters()
4998 if { (eval echo configure
:4999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5000 eval "ac_cv_lib_$ac_lib_var=yes"
5002 echo "configure: failed program was:" >&5
5003 cat conftest.
$ac_ext >&5
5005 eval "ac_cv_lib_$ac_lib_var=no"
5008 LIBS
="$ac_save_LIBS"
5011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5012 echo "$ac_t""yes" 1>&6
5013 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5014 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5015 cat >> confdefs.h
<<EOF
5016 #define $ac_tr_lib 1
5019 LIBS
="-lsecurity $LIBS"
5022 echo "$ac_t""no" 1>&6
5028 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
5029 echo "configure:5030: checking for set_auth_parameters in -lsec" >&5
5030 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5031 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5032 echo $ac_n "(cached) $ac_c" 1>&6
5034 ac_save_LIBS
="$LIBS"
5036 cat > conftest.
$ac_ext <<EOF
5037 #line 5038 "configure"
5038 #include "confdefs.h"
5039 /* Override any gcc2 internal prototype to avoid an error. */
5040 /* We use char because int might match the return type of a gcc2
5041 builtin and then its argument prototype would still apply. */
5042 char set_auth_parameters();
5045 set_auth_parameters()
5048 if { (eval echo configure
:5049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5050 eval "ac_cv_lib_$ac_lib_var=yes"
5052 echo "configure: failed program was:" >&5
5053 cat conftest.
$ac_ext >&5
5055 eval "ac_cv_lib_$ac_lib_var=no"
5058 LIBS
="$ac_save_LIBS"
5061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5062 echo "$ac_t""yes" 1>&6
5063 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5064 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5065 cat >> confdefs.h
<<EOF
5066 #define $ac_tr_lib 1
5072 echo "$ac_t""no" 1>&6
5076 if test x
"$ac_cv_lib_security_set_auth_parameters" = x
"yes" ||
5077 test x
"$ac_cv_lib_sec_set_auth_parameters" = x
"yes"; then
5078 cat >> confdefs.h
<<\EOF
5079 #define HAVE_SET_AUTH_PARAMETERS 1
5085 if test x
"$ac_cv_func_getspnam" = x
"no"; then
5088 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
5089 echo "configure:5090: checking for getspnam in -lsecurity" >&5
5090 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
5091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5092 echo $ac_n "(cached) $ac_c" 1>&6
5094 ac_save_LIBS
="$LIBS"
5095 LIBS
="-lsecurity $LIBS"
5096 cat > conftest.
$ac_ext <<EOF
5097 #line 5098 "configure"
5098 #include "confdefs.h"
5099 /* Override any gcc2 internal prototype to avoid an error. */
5100 /* We use char because int might match the return type of a gcc2
5101 builtin and then its argument prototype would still apply. */
5108 if { (eval echo configure
:5109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5110 eval "ac_cv_lib_$ac_lib_var=yes"
5112 echo "configure: failed program was:" >&5
5113 cat conftest.
$ac_ext >&5
5115 eval "ac_cv_lib_$ac_lib_var=no"
5118 LIBS
="$ac_save_LIBS"
5121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5122 echo "$ac_t""yes" 1>&6
5123 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5124 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5125 cat >> confdefs.h
<<EOF
5126 #define $ac_tr_lib 1
5129 LIBS
="-lsecurity $LIBS"
5132 echo "$ac_t""no" 1>&6
5138 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
5139 echo "configure:5140: checking for getspnam in -lsec" >&5
5140 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
5141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5142 echo $ac_n "(cached) $ac_c" 1>&6
5144 ac_save_LIBS
="$LIBS"
5146 cat > conftest.
$ac_ext <<EOF
5147 #line 5148 "configure"
5148 #include "confdefs.h"
5149 /* Override any gcc2 internal prototype to avoid an error. */
5150 /* We use char because int might match the return type of a gcc2
5151 builtin and then its argument prototype would still apply. */
5158 if { (eval echo configure
:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5160 eval "ac_cv_lib_$ac_lib_var=yes"
5162 echo "configure: failed program was:" >&5
5163 cat conftest.
$ac_ext >&5
5165 eval "ac_cv_lib_$ac_lib_var=no"
5168 LIBS
="$ac_save_LIBS"
5171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5172 echo "$ac_t""yes" 1>&6
5173 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5174 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5175 cat >> confdefs.h
<<EOF
5176 #define $ac_tr_lib 1
5182 echo "$ac_t""no" 1>&6
5186 if test x
"$ac_cv_lib_security_getspnam" = x
"yes" ||
5187 test x
"$ac_cv_lib_sec_getspnam" = x
"yes"; then
5188 cat >> confdefs.h
<<\EOF
5189 #define HAVE_GETSPNAM 1
5195 if test x
"$ac_cv_func_bigcrypt" = x
"no"; then
5198 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
5199 echo "configure:5200: checking for bigcrypt in -lsecurity" >&5
5200 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
5201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5202 echo $ac_n "(cached) $ac_c" 1>&6
5204 ac_save_LIBS
="$LIBS"
5205 LIBS
="-lsecurity $LIBS"
5206 cat > conftest.
$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209 /* Override any gcc2 internal prototype to avoid an error. */
5210 /* We use char because int might match the return type of a gcc2
5211 builtin and then its argument prototype would still apply. */
5218 if { (eval echo configure
:5219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5220 eval "ac_cv_lib_$ac_lib_var=yes"
5222 echo "configure: failed program was:" >&5
5223 cat conftest.
$ac_ext >&5
5225 eval "ac_cv_lib_$ac_lib_var=no"
5228 LIBS
="$ac_save_LIBS"
5231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5232 echo "$ac_t""yes" 1>&6
5233 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5234 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5235 cat >> confdefs.h
<<EOF
5236 #define $ac_tr_lib 1
5239 LIBS
="-lsecurity $LIBS"
5242 echo "$ac_t""no" 1>&6
5248 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
5249 echo "configure:5250: checking for bigcrypt in -lsec" >&5
5250 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
5251 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5252 echo $ac_n "(cached) $ac_c" 1>&6
5254 ac_save_LIBS
="$LIBS"
5256 cat > conftest.
$ac_ext <<EOF
5257 #line 5258 "configure"
5258 #include "confdefs.h"
5259 /* Override any gcc2 internal prototype to avoid an error. */
5260 /* We use char because int might match the return type of a gcc2
5261 builtin and then its argument prototype would still apply. */
5268 if { (eval echo configure
:5269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5270 eval "ac_cv_lib_$ac_lib_var=yes"
5272 echo "configure: failed program was:" >&5
5273 cat conftest.
$ac_ext >&5
5275 eval "ac_cv_lib_$ac_lib_var=no"
5278 LIBS
="$ac_save_LIBS"
5281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5282 echo "$ac_t""yes" 1>&6
5283 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5284 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5285 cat >> confdefs.h
<<EOF
5286 #define $ac_tr_lib 1
5292 echo "$ac_t""no" 1>&6
5296 if test x
"$ac_cv_lib_security_bigcrypt" = x
"yes" ||
5297 test x
"$ac_cv_lib_sec_bigcrypt" = x
"yes"; then
5298 cat >> confdefs.h
<<\EOF
5299 #define HAVE_BIGCRYPT 1
5305 if test x
"$ac_cv_func_getprpwnam" = x
"no"; then
5308 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
5309 echo "configure:5310: checking for getprpwnam in -lsecurity" >&5
5310 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
5311 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5312 echo $ac_n "(cached) $ac_c" 1>&6
5314 ac_save_LIBS
="$LIBS"
5315 LIBS
="-lsecurity $LIBS"
5316 cat > conftest.
$ac_ext <<EOF
5317 #line 5318 "configure"
5318 #include "confdefs.h"
5319 /* Override any gcc2 internal prototype to avoid an error. */
5320 /* We use char because int might match the return type of a gcc2
5321 builtin and then its argument prototype would still apply. */
5328 if { (eval echo configure
:5329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5330 eval "ac_cv_lib_$ac_lib_var=yes"
5332 echo "configure: failed program was:" >&5
5333 cat conftest.
$ac_ext >&5
5335 eval "ac_cv_lib_$ac_lib_var=no"
5338 LIBS
="$ac_save_LIBS"
5341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5342 echo "$ac_t""yes" 1>&6
5343 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5344 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5345 cat >> confdefs.h
<<EOF
5346 #define $ac_tr_lib 1
5349 LIBS
="-lsecurity $LIBS"
5352 echo "$ac_t""no" 1>&6
5358 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
5359 echo "configure:5360: checking for getprpwnam in -lsec" >&5
5360 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
5361 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5362 echo $ac_n "(cached) $ac_c" 1>&6
5364 ac_save_LIBS
="$LIBS"
5366 cat > conftest.
$ac_ext <<EOF
5367 #line 5368 "configure"
5368 #include "confdefs.h"
5369 /* Override any gcc2 internal prototype to avoid an error. */
5370 /* We use char because int might match the return type of a gcc2
5371 builtin and then its argument prototype would still apply. */
5378 if { (eval echo configure
:5379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5380 eval "ac_cv_lib_$ac_lib_var=yes"
5382 echo "configure: failed program was:" >&5
5383 cat conftest.
$ac_ext >&5
5385 eval "ac_cv_lib_$ac_lib_var=no"
5388 LIBS
="$ac_save_LIBS"
5391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5392 echo "$ac_t""yes" 1>&6
5393 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5394 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5395 cat >> confdefs.h
<<EOF
5396 #define $ac_tr_lib 1
5402 echo "$ac_t""no" 1>&6
5406 if test x
"$ac_cv_lib_security_getprpwnam" = x
"yes" ||
5407 test x
"$ac_cv_lib_sec_getprpwnam" = x
"yes"; then
5408 cat >> confdefs.h
<<\EOF
5409 #define HAVE_GETPRPWNAM 1
5415 # this bit needs to be modified for each OS that is suported by
5416 # smbwrapper. You need to specify how to created a shared library and
5417 # how to compile C code to produce PIC object files
5419 # these are the defaults, good for lots of systems
5423 # and these are for particular systems
5425 *linux
*) cat >> confdefs.h
<<\EOF
5429 *solaris
*) cat >> confdefs.h
<<\EOF
5435 *sunos
*) cat >> confdefs.h
<<\EOF
5441 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
5443 *irix
*) cat >> confdefs.h
<<\EOF
5447 ATTEMPT_WRAP32_BUILD
=yes
5449 *aix
*) cat >> confdefs.h
<<\EOF
5453 *hpux
*) cat >> confdefs.h
<<\EOF
5457 *qnx
*) cat >> confdefs.h
<<\EOF
5461 *osf
*) cat >> confdefs.h
<<\EOF
5465 *sco
*) cat >> confdefs.h
<<\EOF
5469 *next2
*) cat >> confdefs.h
<<\EOF
5473 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
5474 set dummy
groff; ac_word
=$2
5475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5476 echo "configure:5477: checking for $ac_word" >&5
5477 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
5478 echo $ac_n "(cached) $ac_c" 1>&6
5480 if test -n "$ROFF"; then
5481 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
5483 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5484 for ac_dir
in $PATH; do
5485 test -z "$ac_dir" && ac_dir
=.
5486 if test -f $ac_dir/$ac_word; then
5487 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
5494 ROFF
="$ac_cv_prog_ROFF"
5495 if test -n "$ROFF"; then
5496 echo "$ac_t""$ROFF" 1>&6
5498 echo "$ac_t""no" 1>&6
5501 *sysv4.2
*) echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
5502 echo "configure:5503: checking for strcasecmp in -lresolv" >&5
5503 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
5504 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6
5507 ac_save_LIBS
="$LIBS"
5508 LIBS
="-lresolv $LIBS"
5509 cat > conftest.
$ac_ext <<EOF
5510 #line 5511 "configure"
5511 #include "confdefs.h"
5512 /* Override any gcc2 internal prototype to avoid an error. */
5513 /* We use char because int might match the return type of a gcc2
5514 builtin and then its argument prototype would still apply. */
5521 if { (eval echo configure
:5522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5523 eval "ac_cv_lib_$ac_lib_var=yes"
5525 echo "configure: failed program was:" >&5
5526 cat conftest.
$ac_ext >&5
5528 eval "ac_cv_lib_$ac_lib_var=no"
5531 LIBS
="$ac_save_LIBS"
5534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5535 echo "$ac_t""yes" 1>&6
5536 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5537 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5538 cat >> confdefs.h
<<EOF
5539 #define $ac_tr_lib 1
5542 LIBS
="-lresolv $LIBS"
5545 echo "$ac_t""no" 1>&6
5550 # try to work out how to produce pic code with this compiler
5552 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
5553 echo "configure:5554: checking whether ${CC-cc} accepts -fpic" >&5
5554 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
5555 echo $ac_n "(cached) $ac_c" 1>&6
5557 echo 'void f(){}' > conftest.c
5558 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
5559 ac_cv_prog_cc_fpic
=yes
5561 ac_cv_prog_cc_fpic
=no
5567 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
5568 if test $ac_cv_prog_cc_fpic = yes; then
5571 if test x
$PICFLAG = x
; then
5572 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
5573 echo "configure:5574: checking whether ${CC-cc} accepts -Kpic" >&5
5574 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
5575 echo $ac_n "(cached) $ac_c" 1>&6
5577 echo 'void f(){}' > conftest.c
5578 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
5579 ac_cv_prog_cc_Kpic
=yes
5581 ac_cv_prog_cc_Kpic
=no
5587 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
5588 if test $ac_cv_prog_cc_Kpic = yes; then
5592 if test x
$PICFLAG = x
; then
5593 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
5594 echo "configure:5595: checking whether ${CC-cc} accepts -KPIC" >&5
5595 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
5596 echo $ac_n "(cached) $ac_c" 1>&6
5598 echo 'void f(){}' > conftest.c
5599 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
5600 ac_cv_prog_cc_KPIC
=yes
5602 ac_cv_prog_cc_KPIC
=no
5608 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
5609 if test $ac_cv_prog_cc_KPIC = yes; then
5616 echo $ac_n "checking for long long""... $ac_c" 1>&6
5617 echo "configure:5618: checking for long long" >&5
5618 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
5619 echo $ac_n "(cached) $ac_c" 1>&6
5622 if test "$cross_compiling" = yes; then
5623 samba_cv_have_longlong
=cross
5625 cat > conftest.
$ac_ext <<EOF
5626 #line 5627 "configure"
5627 #include "confdefs.h"
5629 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
5631 if { (eval echo configure
:5632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5633 samba_cv_have_longlong
=yes
5635 echo "configure: failed program was:" >&5
5636 cat conftest.
$ac_ext >&5
5638 samba_cv_have_longlong
=no
5645 echo "$ac_t""$samba_cv_have_longlong" 1>&6
5646 if test x
"$samba_cv_have_longlong" = x
"yes"; then
5647 cat >> confdefs.h
<<\EOF
5648 #define HAVE_LONGLONG 1
5653 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
5654 echo "configure:5655: checking for 64 bit off_t" >&5
5655 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
5656 echo $ac_n "(cached) $ac_c" 1>&6
5659 if test "$cross_compiling" = yes; then
5660 samba_cv_SIZEOF_OFF_T
=cross
5662 cat > conftest.
$ac_ext <<EOF
5663 #line 5664 "configure"
5664 #include "confdefs.h"
5666 #include <sys/stat.h>
5667 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
5669 if { (eval echo configure
:5670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5671 samba_cv_SIZEOF_OFF_T
=yes
5673 echo "configure: failed program was:" >&5
5674 cat conftest.
$ac_ext >&5
5676 samba_cv_SIZEOF_OFF_T
=no
5683 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
5684 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
5685 cat >> confdefs.h
<<\EOF
5686 #define SIZEOF_OFF_T 8
5691 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
5692 echo "configure:5693: checking for off64_t" >&5
5693 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
5694 echo $ac_n "(cached) $ac_c" 1>&6
5697 if test "$cross_compiling" = yes; then
5698 samba_cv_HAVE_OFF64_T
=cross
5700 cat > conftest.
$ac_ext <<EOF
5701 #line 5702 "configure"
5702 #include "confdefs.h"
5704 #include <sys/stat.h>
5705 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
5707 if { (eval echo configure
:5708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5709 samba_cv_HAVE_OFF64_T
=yes
5711 echo "configure: failed program was:" >&5
5712 cat conftest.
$ac_ext >&5
5714 samba_cv_HAVE_OFF64_T
=no
5721 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
5722 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
5723 cat >> confdefs.h
<<\EOF
5724 #define HAVE_OFF64_T 1
5729 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
5730 echo "configure:5731: checking for 64 bit ino_t" >&5
5731 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
5732 echo $ac_n "(cached) $ac_c" 1>&6
5735 if test "$cross_compiling" = yes; then
5736 samba_cv_SIZEOF_INO_T
=cross
5738 cat > conftest.
$ac_ext <<EOF
5739 #line 5740 "configure"
5740 #include "confdefs.h"
5742 #include <sys/stat.h>
5743 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
5745 if { (eval echo configure
:5746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5747 samba_cv_SIZEOF_INO_T
=yes
5749 echo "configure: failed program was:" >&5
5750 cat conftest.
$ac_ext >&5
5752 samba_cv_SIZEOF_INO_T
=no
5759 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
5760 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
5761 cat >> confdefs.h
<<\EOF
5762 #define SIZEOF_INO_T 8
5767 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
5768 echo "configure:5769: checking for ino64_t" >&5
5769 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
5770 echo $ac_n "(cached) $ac_c" 1>&6
5773 if test "$cross_compiling" = yes; then
5774 samba_cv_HAVE_INO64_T
=cross
5776 cat > conftest.
$ac_ext <<EOF
5777 #line 5778 "configure"
5778 #include "confdefs.h"
5780 #include <sys/stat.h>
5781 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
5783 if { (eval echo configure
:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5785 samba_cv_HAVE_INO64_T
=yes
5787 echo "configure: failed program was:" >&5
5788 cat conftest.
$ac_ext >&5
5790 samba_cv_HAVE_INO64_T
=no
5797 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
5798 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
5799 cat >> confdefs.h
<<\EOF
5800 #define HAVE_INO64_T 1
5805 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5806 echo "configure:5807: checking for union semun" >&5
5807 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
5808 echo $ac_n "(cached) $ac_c" 1>&6
5811 if test "$cross_compiling" = yes; then
5812 samba_cv_HAVE_UNION_SEMUN
=cross
5814 cat > conftest.
$ac_ext <<EOF
5815 #line 5816 "configure"
5816 #include "confdefs.h"
5818 #include <sys/types.h>
5819 #include <sys/ipc.h>
5820 #include <sys/sem.h>
5821 main() { union semun ss; exit(0); }
5823 if { (eval echo configure
:5824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5825 samba_cv_HAVE_UNION_SEMUN
=yes
5827 echo "configure: failed program was:" >&5
5828 cat conftest.
$ac_ext >&5
5830 samba_cv_HAVE_UNION_SEMUN
=no
5837 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
5838 if test x
"$samba_cv_HAVE_UNION_SEMUN" = x
"yes"; then
5839 cat >> confdefs.h
<<\EOF
5840 #define HAVE_UNION_SEMUN 1
5845 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
5846 echo "configure:5847: checking for unsigned char" >&5
5847 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
5848 echo $ac_n "(cached) $ac_c" 1>&6
5851 if test "$cross_compiling" = yes; then
5852 samba_cv_HAVE_UNSIGNED_CHAR
=cross
5854 cat > conftest.
$ac_ext <<EOF
5855 #line 5856 "configure"
5856 #include "confdefs.h"
5858 main() { char c; c=250; exit((c > 0)?0:1); }
5860 if { (eval echo configure
:5861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5862 samba_cv_HAVE_UNSIGNED_CHAR
=yes
5864 echo "configure: failed program was:" >&5
5865 cat conftest.
$ac_ext >&5
5867 samba_cv_HAVE_UNSIGNED_CHAR
=no
5874 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
5875 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
5876 cat >> confdefs.h
<<\EOF
5877 #define HAVE_UNSIGNED_CHAR 1
5882 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
5883 echo "configure:5884: checking for sin_len in sock" >&5
5884 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
5885 echo $ac_n "(cached) $ac_c" 1>&6
5888 cat > conftest.
$ac_ext <<EOF
5889 #line 5890 "configure"
5890 #include "confdefs.h"
5891 #include <sys/types.h>
5892 #include <sys/socket.h>
5893 #include <netinet/in.h>
5895 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
5898 if { (eval echo configure
:5899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5900 samba_cv_HAVE_SOCK_SIN_LEN
=yes
5902 echo "configure: failed program was:" >&5
5903 cat conftest.
$ac_ext >&5
5905 samba_cv_HAVE_SOCK_SIN_LEN
=no
5910 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
5911 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
5912 cat >> confdefs.h
<<\EOF
5913 #define HAVE_SOCK_SIN_LEN 1
5918 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
5919 echo "configure:5920: checking whether seekdir returns void" >&5
5920 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
5921 echo $ac_n "(cached) $ac_c" 1>&6
5924 cat > conftest.
$ac_ext <<EOF
5925 #line 5926 "configure"
5926 #include "confdefs.h"
5927 #include <sys/types.h>
5929 void seekdir(DIR *d, long loc) { return; }
5934 if { (eval echo configure
:5935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5936 samba_cv_SEEKDIR_RETURNS_VOID
=yes
5938 echo "configure: failed program was:" >&5
5939 cat conftest.
$ac_ext >&5
5941 samba_cv_SEEKDIR_RETURNS_VOID
=no
5946 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
5947 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
5948 cat >> confdefs.h
<<\EOF
5949 #define SEEKDIR_RETURNS_VOID 1
5954 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
5955 echo "configure:5956: checking for __FILE__ macro" >&5
5956 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
5957 echo $ac_n "(cached) $ac_c" 1>&6
5960 cat > conftest.
$ac_ext <<EOF
5961 #line 5962 "configure"
5962 #include "confdefs.h"
5965 printf("%s\n", __FILE__);
5968 if { (eval echo configure
:5969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5970 samba_cv_HAVE_FILE_MACRO
=yes
5972 echo "configure: failed program was:" >&5
5973 cat conftest.
$ac_ext >&5
5975 samba_cv_HAVE_FILE_MACRO
=no
5980 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
5981 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
5982 cat >> confdefs.h
<<\EOF
5983 #define HAVE_FILE_MACRO 1
5988 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
5989 echo "configure:5990: checking for __FUNCTION__ macro" >&5
5990 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
5991 echo $ac_n "(cached) $ac_c" 1>&6
5994 cat > conftest.
$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
5999 printf("%s\n", __FUNCTION__);
6002 if { (eval echo configure
:6003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6004 samba_cv_HAVE_FUNCTION_MACRO
=yes
6006 echo "configure: failed program was:" >&5
6007 cat conftest.
$ac_ext >&5
6009 samba_cv_HAVE_FUNCTION_MACRO
=no
6014 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
6015 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
6016 cat >> confdefs.h
<<\EOF
6017 #define HAVE_FUNCTION_MACRO 1
6022 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
6023 echo "configure:6024: checking if gettimeofday takes tz argument" >&5
6024 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
6025 echo $ac_n "(cached) $ac_c" 1>&6
6028 if test "$cross_compiling" = yes; then
6029 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
6031 cat > conftest.
$ac_ext <<EOF
6032 #line 6033 "configure"
6033 #include "confdefs.h"
6035 #include <sys/time.h>
6037 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
6039 if { (eval echo configure
:6040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6041 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
6043 echo "configure: failed program was:" >&5
6044 cat conftest.
$ac_ext >&5
6046 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
6053 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
6054 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
6055 cat >> confdefs.h
<<\EOF
6056 #define HAVE_GETTIMEOFDAY_TZ 1
6062 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
6063 echo "configure:6064: checking for broken readdir" >&5
6064 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
6065 echo $ac_n "(cached) $ac_c" 1>&6
6068 if test "$cross_compiling" = yes; then
6069 samba_cv_HAVE_BROKEN_READDIR
=cross
6071 cat > conftest.
$ac_ext <<EOF
6072 #line 6073 "configure"
6073 #include "confdefs.h"
6074 #include <sys/types.h>
6076 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
6077 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
6078 di->d_name[0] == 0) exit(0); exit(1);}
6080 if { (eval echo configure
:6081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6082 samba_cv_HAVE_BROKEN_READDIR
=yes
6084 echo "configure: failed program was:" >&5
6085 cat conftest.
$ac_ext >&5
6087 samba_cv_HAVE_BROKEN_READDIR
=no
6094 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
6095 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
6096 cat >> confdefs.h
<<\EOF
6097 #define HAVE_BROKEN_READDIR 1
6102 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
6103 echo "configure:6104: checking for utimbuf" >&5
6104 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
6105 echo $ac_n "(cached) $ac_c" 1>&6
6108 cat > conftest.
$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6111 #include <sys/types.h>
6114 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
6117 if { (eval echo configure
:6118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6119 samba_cv_HAVE_UTIMBUF
=yes
6121 echo "configure: failed program was:" >&5
6122 cat conftest.
$ac_ext >&5
6124 samba_cv_HAVE_UTIMBUF
=no
6129 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
6130 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
6131 cat >> confdefs.h
<<\EOF
6132 #define HAVE_UTIMBUF 1
6137 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
6138 echo "configure:6139: checking for kernel oplock type definitions" >&5
6139 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
6140 echo $ac_n "(cached) $ac_c" 1>&6
6143 cat > conftest.
$ac_ext <<EOF
6144 #line 6145 "configure"
6145 #include "confdefs.h"
6146 #include <sys/types.h>
6149 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
6152 if { (eval echo configure
:6153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6154 samba_cv_HAVE_KERNEL_OPLOCKS
=yes
6156 echo "configure: failed program was:" >&5
6157 cat conftest.
$ac_ext >&5
6159 samba_cv_HAVE_KERNEL_OPLOCKS
=no
6164 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
6165 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS" = x
"yes"; then
6166 cat >> confdefs.h
<<\EOF
6167 #define HAVE_KERNEL_OPLOCKS 1
6172 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
6173 echo "configure:6174: checking for irix specific capabilities" >&5
6174 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
6175 echo $ac_n "(cached) $ac_c" 1>&6
6178 if test "$cross_compiling" = yes; then
6179 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
6181 cat > conftest.
$ac_ext <<EOF
6182 #line 6183 "configure"
6183 #include "confdefs.h"
6184 #include <sys/types.h>
6185 #include <sys/capability.h>
6188 if ((cap = cap_get_proc()) == NULL)
6190 cap->cap_effective |= CAP_NETWORK_MGT;
6191 cap->cap_inheritable |= CAP_NETWORK_MGT;
6197 if { (eval echo configure
:6198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6199 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
6201 echo "configure: failed program was:" >&5
6202 cat conftest.
$ac_ext >&5
6204 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
6211 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
6212 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
6213 cat >> confdefs.h
<<\EOF
6214 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
6220 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
6221 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
6224 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
6225 echo "configure:6226: checking for int16 typedef included by rpc/rpc.h" >&5
6226 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
6227 echo $ac_n "(cached) $ac_c" 1>&6
6230 cat > conftest.
$ac_ext <<EOF
6231 #line 6232 "configure"
6232 #include "confdefs.h"
6233 #include <sys/types.h>
6234 #if defined(HAVE_RPC_RPC_H)
6235 #include <rpc/rpc.h>
6241 if { (eval echo configure
:6242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6243 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
6245 echo "configure: failed program was:" >&5
6246 cat conftest.
$ac_ext >&5
6248 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
6253 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
6254 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
6255 cat >> confdefs.h
<<\EOF
6256 #define HAVE_INT16_FROM_RPC_RPC_H 1
6261 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
6262 echo "configure:6263: checking for uint16 typedef included by rpc/rpc.h" >&5
6263 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
6264 echo $ac_n "(cached) $ac_c" 1>&6
6267 cat > conftest.
$ac_ext <<EOF
6268 #line 6269 "configure"
6269 #include "confdefs.h"
6270 #include <sys/types.h>
6271 #if defined(HAVE_RPC_RPC_H)
6272 #include <rpc/rpc.h>
6278 if { (eval echo configure
:6279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6280 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
6282 echo "configure: failed program was:" >&5
6283 cat conftest.
$ac_ext >&5
6285 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
6290 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
6291 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
6292 cat >> confdefs.h
<<\EOF
6293 #define HAVE_UINT16_FROM_RPC_RPC_H 1
6298 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
6299 echo "configure:6300: checking for int32 typedef included by rpc/rpc.h" >&5
6300 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
6301 echo $ac_n "(cached) $ac_c" 1>&6
6304 cat > conftest.
$ac_ext <<EOF
6305 #line 6306 "configure"
6306 #include "confdefs.h"
6307 #include <sys/types.h>
6308 #if defined(HAVE_RPC_RPC_H)
6309 #include <rpc/rpc.h>
6315 if { (eval echo configure
:6316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6317 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
6319 echo "configure: failed program was:" >&5
6320 cat conftest.
$ac_ext >&5
6322 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
6327 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
6328 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
6329 cat >> confdefs.h
<<\EOF
6330 #define HAVE_INT32_FROM_RPC_RPC_H 1
6335 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
6336 echo "configure:6337: checking for uint32 typedef included by rpc/rpc.h" >&5
6337 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
6338 echo $ac_n "(cached) $ac_c" 1>&6
6341 cat > conftest.
$ac_ext <<EOF
6342 #line 6343 "configure"
6343 #include "confdefs.h"
6344 #include <sys/types.h>
6345 #if defined(HAVE_RPC_RPC_H)
6346 #include <rpc/rpc.h>
6352 if { (eval echo configure
:6353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6354 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
6356 echo "configure: failed program was:" >&5
6357 cat conftest.
$ac_ext >&5
6359 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
6364 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
6365 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
6366 cat >> confdefs.h
<<\EOF
6367 #define HAVE_UINT32_FROM_RPC_RPC_H 1
6372 echo $ac_n "checking for test routines""... $ac_c" 1>&6
6373 echo "configure:6374: checking for test routines" >&5
6374 if test "$cross_compiling" = yes; then
6375 echo "configure: warning: cannot run when cross-compiling" 1>&2
6377 cat > conftest.
$ac_ext <<EOF
6378 #line 6379 "configure"
6379 #include "confdefs.h"
6380 #include "${srcdir-.}/tests/trivial.c"
6382 if { (eval echo configure
:6383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6384 echo "$ac_t""yes" 1>&6
6386 echo "configure: failed program was:" >&5
6387 cat conftest.
$ac_ext >&5
6389 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
6395 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
6396 echo "configure:6397: checking for ftruncate extend" >&5
6397 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
6398 echo $ac_n "(cached) $ac_c" 1>&6
6401 if test "$cross_compiling" = yes; then
6402 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
6404 cat > conftest.
$ac_ext <<EOF
6405 #line 6406 "configure"
6406 #include "confdefs.h"
6407 #include "${srcdir-.}/tests/ftruncate.c"
6409 if { (eval echo configure
:6410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6411 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
6413 echo "configure: failed program was:" >&5
6414 cat conftest.
$ac_ext >&5
6416 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
6423 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
6424 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
6425 cat >> confdefs.h
<<\EOF
6426 #define HAVE_FTRUNCATE_EXTEND 1
6431 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
6432 echo "configure:6433: checking for broken getgroups" >&5
6433 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
6434 echo $ac_n "(cached) $ac_c" 1>&6
6437 if test "$cross_compiling" = yes; then
6438 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
6440 cat > conftest.
$ac_ext <<EOF
6441 #line 6442 "configure"
6442 #include "confdefs.h"
6443 #include "${srcdir-.}/tests/getgroups.c"
6445 if { (eval echo configure
:6446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6447 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
6449 echo "configure: failed program was:" >&5
6450 cat conftest.
$ac_ext >&5
6452 samba_cv_HAVE_BROKEN_GETGROUPS
=no
6459 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
6460 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
6461 cat >> confdefs.h
<<\EOF
6462 #define HAVE_BROKEN_GETGROUPS 1
6467 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
6468 echo "configure:6469: checking whether getpass should be replaced" >&5
6469 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
6470 echo $ac_n "(cached) $ac_c" 1>&6
6473 SAVE_CPPFLAGS
="$CPPFLAGS"
6474 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx"
6475 cat > conftest.
$ac_ext <<EOF
6476 #line 6477 "configure"
6477 #include "confdefs.h"
6479 #define REPLACE_GETPASS 1
6480 #define NO_CONFIG_H 1
6481 #define main dont_declare_main
6482 #include "${srcdir-.}/lib/getsmbpass.c"
6489 if { (eval echo configure
:6490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6491 samba_cv_REPLACE_GETPASS
=yes
6493 echo "configure: failed program was:" >&5
6494 cat conftest.
$ac_ext >&5
6496 samba_cv_REPLACE_GETPASS
=no
6499 CPPFLAGS
="$SAVE_CPPFLAGS"
6503 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
6504 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
6505 cat >> confdefs.h
<<\EOF
6506 #define REPLACE_GETPASS 1
6511 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
6512 echo "configure:6513: checking for broken inet_ntoa" >&5
6513 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
6514 echo $ac_n "(cached) $ac_c" 1>&6
6517 if test "$cross_compiling" = yes; then
6518 samba_cv_REPLACE_INET_NTOA
=cross
6520 cat > conftest.
$ac_ext <<EOF
6521 #line 6522 "configure"
6522 #include "confdefs.h"
6525 #include <sys/types.h>
6526 #include <netinet/in.h>
6527 #include <arpa/inet.h>
6528 main() { struct in_addr ip; ip.s_addr = 0x12345678;
6529 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
6530 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
6533 if { (eval echo configure
:6534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6535 samba_cv_REPLACE_INET_NTOA
=yes
6537 echo "configure: failed program was:" >&5
6538 cat conftest.
$ac_ext >&5
6540 samba_cv_REPLACE_INET_NTOA
=no
6547 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
6548 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
6549 cat >> confdefs.h
<<\EOF
6550 #define REPLACE_INET_NTOA 1
6555 echo $ac_n "checking for root""... $ac_c" 1>&6
6556 echo "configure:6557: checking for root" >&5
6557 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
6558 echo $ac_n "(cached) $ac_c" 1>&6
6561 if test "$cross_compiling" = yes; then
6562 samba_cv_HAVE_ROOT
=cross
6564 cat > conftest.
$ac_ext <<EOF
6565 #line 6566 "configure"
6566 #include "confdefs.h"
6567 main() { exit(getuid() != 0); }
6569 if { (eval echo configure
:6570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6571 samba_cv_HAVE_ROOT
=yes
6573 echo "configure: failed program was:" >&5
6574 cat conftest.
$ac_ext >&5
6576 samba_cv_HAVE_ROOT
=no
6583 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
6584 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
6585 cat >> confdefs.h
<<\EOF
6590 echo "configure: warning: running as non-root will disable some tests" 1>&2
6594 echo $ac_n "checking for netmask ifconf""... $ac_c" 1>&6
6595 echo "configure:6596: checking for netmask ifconf" >&5
6596 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFCONF'+set}'`\" = set"; then
6597 echo $ac_n "(cached) $ac_c" 1>&6
6600 if test "$cross_compiling" = yes; then
6601 samba_cv_HAVE_NETMASK_IFCONF
=cross
6603 cat > conftest.
$ac_ext <<EOF
6604 #line 6605 "configure"
6605 #include "confdefs.h"
6607 #define HAVE_NETMASK_IFCONF 1
6609 #include "${srcdir-.}/lib/netmask.c"
6611 if { (eval echo configure
:6612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6613 samba_cv_HAVE_NETMASK_IFCONF
=yes
6615 echo "configure: failed program was:" >&5
6616 cat conftest.
$ac_ext >&5
6618 samba_cv_HAVE_NETMASK_IFCONF
=no
6625 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFCONF" 1>&6
6626 if test x
"$samba_cv_HAVE_NETMASK_IFCONF" = x
"yes"; then
6627 netmask
=yes;cat >> confdefs.h
<<\EOF
6628 #define HAVE_NETMASK_IFCONF 1
6633 if test $netmask = no
; then
6634 echo $ac_n "checking for netmask ifreq""... $ac_c" 1>&6
6635 echo "configure:6636: checking for netmask ifreq" >&5
6636 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFREQ'+set}'`\" = set"; then
6637 echo $ac_n "(cached) $ac_c" 1>&6
6640 if test "$cross_compiling" = yes; then
6641 samba_cv_HAVE_NETMASK_IFREQ
=cross
6643 cat > conftest.
$ac_ext <<EOF
6644 #line 6645 "configure"
6645 #include "confdefs.h"
6647 #define HAVE_NETMASK_IFREQ 1
6649 #include "${srcdir-.}/lib/netmask.c"
6651 if { (eval echo configure
:6652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6653 samba_cv_HAVE_NETMASK_IFREQ
=yes
6655 echo "configure: failed program was:" >&5
6656 cat conftest.
$ac_ext >&5
6658 samba_cv_HAVE_NETMASK_IFREQ
=no
6665 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFREQ" 1>&6
6666 if test x
"$samba_cv_HAVE_NETMASK_IFREQ" = x
"yes"; then
6667 netmask
=yes;cat >> confdefs.h
<<\EOF
6668 #define HAVE_NETMASK_IFREQ 1
6674 if test $netmask = no
; then
6675 echo $ac_n "checking for netmask AIX""... $ac_c" 1>&6
6676 echo "configure:6677: checking for netmask AIX" >&5
6677 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_AIX'+set}'`\" = set"; then
6678 echo $ac_n "(cached) $ac_c" 1>&6
6681 if test "$cross_compiling" = yes; then
6682 samba_cv_HAVE_NETMASK_AIX
=cross
6684 cat > conftest.
$ac_ext <<EOF
6685 #line 6686 "configure"
6686 #include "confdefs.h"
6688 #define HAVE_NETMASK_AIX 1
6690 #include "${srcdir-.}/lib/netmask.c"
6692 if { (eval echo configure
:6693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6694 samba_cv_HAVE_NETMASK_AIX
=yes
6696 echo "configure: failed program was:" >&5
6697 cat conftest.
$ac_ext >&5
6699 samba_cv_HAVE_NETMASK_AIX
=no
6706 echo "$ac_t""$samba_cv_HAVE_NETMASK_AIX" 1>&6
6707 if test x
"$samba_cv_HAVE_NETMASK_AIX" = x
"yes"; then
6708 netmask
=yes;cat >> confdefs.h
<<\EOF
6709 #define HAVE_NETMASK_AIX 1
6715 echo $ac_n "checking for trapdoor seteuid""... $ac_c" 1>&6
6716 echo "configure:6717: checking for trapdoor seteuid" >&5
6717 if eval "test \"`echo '$''{'samba_cv_HAVE_TRAPDOOR_UID'+set}'`\" = set"; then
6718 echo $ac_n "(cached) $ac_c" 1>&6
6721 if test "$cross_compiling" = yes; then
6724 cat > conftest.
$ac_ext <<EOF
6725 #line 6726 "configure"
6726 #include "confdefs.h"
6727 #include "${srcdir-.}/tests/trapdoor.c"
6729 if { (eval echo configure
:6730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6731 samba_cv_HAVE_TRAPDOOR_UID
=no
6733 echo "configure: failed program was:" >&5
6734 cat conftest.
$ac_ext >&5
6736 samba_cv_HAVE_TRAPDOOR_UID
=yes
6743 echo "$ac_t""$samba_cv_HAVE_TRAPDOOR_UID" 1>&6
6744 if test x
"$samba_cv_HAVE_TRAPDOOR_UID" = x
"yes"; then
6745 cat >> confdefs.h
<<\EOF
6746 #define HAVE_TRAPDOOR_UID 1
6751 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
6752 echo "configure:6753: checking for shared mmap" >&5
6753 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
6754 echo $ac_n "(cached) $ac_c" 1>&6
6757 if test "$cross_compiling" = yes; then
6758 samba_cv_HAVE_SHARED_MMAP
=cross
6760 cat > conftest.
$ac_ext <<EOF
6761 #line 6762 "configure"
6762 #include "confdefs.h"
6763 #include "${srcdir-.}/tests/shared_mmap.c"
6765 if { (eval echo configure
:6766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6767 samba_cv_HAVE_SHARED_MMAP
=yes
6769 echo "configure: failed program was:" >&5
6770 cat conftest.
$ac_ext >&5
6772 samba_cv_HAVE_SHARED_MMAP
=no
6779 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
6780 if test x
"$samba_cv_HAVE_SHARED_MMAP" = x
"yes"; then
6781 cat >> confdefs.h
<<\EOF
6782 #define HAVE_SHARED_MMAP 1
6787 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
6788 echo "configure:6789: checking for fcntl locking" >&5
6789 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
6790 echo $ac_n "(cached) $ac_c" 1>&6
6793 if test "$cross_compiling" = yes; then
6794 samba_cv_HAVE_FCNTL_LOCK
=cross
6796 cat > conftest.
$ac_ext <<EOF
6797 #line 6798 "configure"
6798 #include "confdefs.h"
6799 #include "${srcdir-.}/tests/fcntl_lock.c"
6801 if { (eval echo configure
:6802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6803 samba_cv_HAVE_FCNTL_LOCK
=yes
6805 echo "configure: failed program was:" >&5
6806 cat conftest.
$ac_ext >&5
6808 samba_cv_HAVE_FCNTL_LOCK
=no
6815 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
6816 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
6817 cat >> confdefs.h
<<\EOF
6818 #define HAVE_FCNTL_LOCK 1
6823 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
6824 echo "configure:6825: checking for 64 bit fcntl locking" >&5
6825 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
6826 echo $ac_n "(cached) $ac_c" 1>&6
6829 if test "$cross_compiling" = yes; then
6830 samba_cv_HAVE_STRUCT_FLOCK64
=cross
6832 cat > conftest.
$ac_ext <<EOF
6833 #line 6834 "configure"
6834 #include "confdefs.h"
6843 #ifdef HAVE_SYS_FCNTL_H
6844 #include <sys/fcntl.h>
6846 main() { struct flock64 fl64;
6847 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
6854 if { (eval echo configure
:6855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6856 samba_cv_HAVE_STRUCT_FLOCK64
=yes
6858 echo "configure: failed program was:" >&5
6859 cat conftest.
$ac_ext >&5
6861 samba_cv_HAVE_STRUCT_FLOCK64
=no
6868 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
6869 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
6870 cat >> confdefs.h
<<\EOF
6871 #define HAVE_STRUCT_FLOCK64 1
6876 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
6877 echo "configure:6878: checking for sysv ipc" >&5
6878 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
6879 echo $ac_n "(cached) $ac_c" 1>&6
6882 if test "$cross_compiling" = yes; then
6883 samba_cv_HAVE_SYSV_IPC
=cross
6885 cat > conftest.
$ac_ext <<EOF
6886 #line 6887 "configure"
6887 #include "confdefs.h"
6888 #include "${srcdir-.}/tests/sysv_ipc.c"
6890 if { (eval echo configure
:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6892 samba_cv_HAVE_SYSV_IPC
=yes
6894 echo "configure: failed program was:" >&5
6895 cat conftest.
$ac_ext >&5
6897 samba_cv_HAVE_SYSV_IPC
=no
6904 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
6905 if test x
"$samba_cv_HAVE_SYSV_IPC" = x
"yes"; then
6906 cat >> confdefs.h
<<\EOF
6907 #define HAVE_SYSV_IPC 1
6912 #################################################
6913 # check for smbwrapper support
6914 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
6915 echo "configure:6916: checking whether to use smbwrapper" >&5
6916 # Check whether --with-smbwrapper or --without-smbwrapper was given.
6917 if test "${with_smbwrapper+set}" = set; then
6918 withval
="$with_smbwrapper"
6921 echo "$ac_t""yes" 1>&6
6922 cat >> confdefs.h
<<\EOF
6923 #define WITH_SMBWRAPPER 1
6926 WRAP
="bin/smbsh bin/smbwrapper.so"
6928 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
6931 WRAP32
=bin
/smbwrapper
.32.so
6934 # Conditions under which smbwrapper should not be built.
6936 if test x
$PICFLAG = x
; then
6937 echo No support
for PIC code
- disabling smbwrapper and smbsh
6940 elif test x
$ac_cv_func_syscall = xno
; then
6941 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
6947 echo "$ac_t""no" 1>&6
6951 echo "$ac_t""no" 1>&6
6956 #################################################
6957 # check for the AFS filesystem
6958 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
6959 echo "configure:6960: checking whether to use AFS" >&5
6960 # Check whether --with-afs or --without-afs was given.
6961 if test "${with_afs+set}" = set; then
6965 echo "$ac_t""yes" 1>&6
6966 cat >> confdefs.h
<<\EOF
6972 echo "$ac_t""no" 1>&6
6976 echo "$ac_t""no" 1>&6
6982 #################################################
6983 # check for the DFS auth system
6984 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
6985 echo "configure:6986: checking whether to use DFS auth" >&5
6986 # Check whether --with-dfs or --without-dfs was given.
6987 if test "${with_dfs+set}" = set; then
6991 echo "$ac_t""yes" 1>&6
6992 cat >> confdefs.h
<<\EOF
6998 echo "$ac_t""no" 1>&6
7002 echo "$ac_t""no" 1>&6
7007 #################################################
7008 # check for Kerberos IV auth system
7009 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
7010 echo "configure:7011: checking whether to use Kerberos IV" >&5
7011 # Check whether --with-krb4 or --without-krb4 was given.
7012 if test "${with_krb4+set}" = set; then
7013 withval
="$with_krb4"
7014 echo "$ac_t""yes" 1>&6
7015 cat >> confdefs.h
<<\EOF
7019 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
7020 echo "configure:7021: checking for dn_expand in -lresolv" >&5
7021 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
7022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7023 echo $ac_n "(cached) $ac_c" 1>&6
7025 ac_save_LIBS
="$LIBS"
7026 LIBS
="-lresolv $LIBS"
7027 cat > conftest.
$ac_ext <<EOF
7028 #line 7029 "configure"
7029 #include "confdefs.h"
7030 /* Override any gcc2 internal prototype to avoid an error. */
7031 /* We use char because int might match the return type of a gcc2
7032 builtin and then its argument prototype would still apply. */
7039 if { (eval echo configure
:7040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7041 eval "ac_cv_lib_$ac_lib_var=yes"
7043 echo "configure: failed program was:" >&5
7044 cat conftest.
$ac_ext >&5
7046 eval "ac_cv_lib_$ac_lib_var=no"
7049 LIBS
="$ac_save_LIBS"
7052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7053 echo "$ac_t""yes" 1>&6
7054 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7055 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7056 cat >> confdefs.h
<<EOF
7057 #define $ac_tr_lib 1
7060 LIBS
="-lresolv $LIBS"
7063 echo "$ac_t""no" 1>&6
7066 LIBS
="$LIBS -lkrb -ldes"
7067 CFLAGS
="$CFLAGS -I$withval/include"
7068 LDFLAGS
="$LDFLAGS -L$withval/lib"
7070 echo "$ac_t""no" 1>&6
7075 #################################################
7076 # check for automount support
7077 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
7078 echo "configure:7079: checking whether to use AUTOMOUNT" >&5
7079 # Check whether --with-automount or --without-automount was given.
7080 if test "${with_automount+set}" = set; then
7081 withval
="$with_automount"
7084 echo "$ac_t""yes" 1>&6
7085 cat >> confdefs.h
<<\EOF
7086 #define WITH_AUTOMOUNT 1
7091 echo "$ac_t""no" 1>&6
7095 echo "$ac_t""no" 1>&6
7100 #################################################
7101 # check for smbmount support
7102 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
7103 echo "configure:7104: checking whether to use SMBMOUNT" >&5
7104 # Check whether --with-smbmount or --without-smbmount was given.
7105 if test "${with_smbmount+set}" = set; then
7106 withval
="$with_smbmount"
7109 echo "$ac_t""yes" 1>&6
7110 cat >> confdefs.h
<<\EOF
7111 #define WITH_SMBMOUNT 1
7114 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
7117 echo "$ac_t""no" 1>&6
7122 echo "$ac_t""no" 1>&6
7128 #################################################
7129 # check for a LDAP password database
7130 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
7131 echo "configure:7132: checking whether to use LDAP password database" >&5
7132 # Check whether --with-ldap or --without-ldap was given.
7133 if test "${with_ldap+set}" = set; then
7134 withval
="$with_ldap"
7137 echo "$ac_t""yes" 1>&6
7138 cat >> confdefs.h
<<\EOF
7144 echo "$ac_t""no" 1>&6
7148 echo "$ac_t""no" 1>&6
7153 #################################################
7154 # check for a NISPLUS password database
7155 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
7156 echo "configure:7157: checking whether to use NISPLUS password database" >&5
7157 # Check whether --with-nisplus or --without-nisplus was given.
7158 if test "${with_nisplus+set}" = set; then
7159 withval
="$with_nisplus"
7162 echo "$ac_t""yes" 1>&6
7163 cat >> confdefs.h
<<\EOF
7164 #define WITH_NISPLUS 1
7169 echo "$ac_t""no" 1>&6
7173 echo "$ac_t""no" 1>&6
7178 #################################################
7179 # check for a NISPLUS_HOME support
7180 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
7181 echo "configure:7182: checking whether to use NISPLUS_HOME" >&5
7182 # Check whether --with-nisplus-home or --without-nisplus-home was given.
7183 if test "${with_nisplus_home+set}" = set; then
7184 withval
="$with_nisplus_home"
7187 echo "$ac_t""yes" 1>&6
7188 cat >> confdefs.h
<<\EOF
7189 #define WITH_NISPLUS_HOME 1
7194 echo "$ac_t""no" 1>&6
7198 echo "$ac_t""no" 1>&6
7203 #################################################
7204 # check for the secure socket layer
7205 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
7206 echo "configure:7207: checking whether to use SSL" >&5
7207 # Check whether --with-ssl or --without-ssl was given.
7208 if test "${with_ssl+set}" = set; then
7212 echo "$ac_t""yes" 1>&6
7213 cat >> confdefs.h
<<\EOF
7219 echo "$ac_t""no" 1>&6
7223 echo "$ac_t""no" 1>&6
7228 #################################################
7229 # check for experimental mmap support
7230 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
7231 echo "configure:7232: checking whether to use MMAP" >&5
7232 # Check whether --with-mmap or --without-mmap was given.
7233 if test "${with_mmap+set}" = set; then
7234 withval
="$with_mmap"
7237 echo "$ac_t""yes" 1>&6
7238 cat >> confdefs.h
<<\EOF
7244 echo "$ac_t""no" 1>&6
7248 echo "$ac_t""no" 1>&6
7253 #################################################
7254 # check for syslog logging
7255 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
7256 echo "configure:7257: checking whether to use syslog logging" >&5
7257 # Check whether --with-syslog or --without-syslog was given.
7258 if test "${with_syslog+set}" = set; then
7259 withval
="$with_syslog"
7262 echo "$ac_t""yes" 1>&6
7263 cat >> confdefs.h
<<\EOF
7264 #define WITH_SYSLOG 1
7269 echo "$ac_t""no" 1>&6
7273 echo "$ac_t""no" 1>&6
7278 #################################################
7279 # check for experimental netatalk resource fork support
7280 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
7281 echo "configure:7282: checking whether to support netatalk" >&5
7282 # Check whether --with-netatalk or --without-netatalk was given.
7283 if test "${with_netatalk+set}" = set; then
7284 withval
="$with_netatalk"
7287 echo "$ac_t""yes" 1>&6
7288 cat >> confdefs.h
<<\EOF
7289 #define WITH_NETATALK 1
7294 echo "$ac_t""no" 1>&6
7298 echo "$ac_t""no" 1>&6
7303 #################################################
7304 # check for experimental disk-quotas support
7305 QUOTAOBJS
=noquotas.o
7307 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
7308 echo "configure:7309: checking whether to support disk-quotas" >&5
7309 # Check whether --with-quotas or --without-quotas was given.
7310 if test "${with_quotas+set}" = set; then
7311 withval
="$with_quotas"
7314 echo "$ac_t""yes" 1>&6
7318 echo "$ac_t""no" 1>&6
7322 echo "$ac_t""no" 1>&6
7328 #################################################
7329 # these tests are taken from the GNU fileutils package
7330 echo "checking how to get filesystem space usage" 1>&6
7331 echo "configure:7332: checking how to get filesystem space usage" >&5
7334 # Test for statvfs64.
7335 if test $space = no
; then
7337 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
7338 echo "configure:7339: checking statvfs64 function (SVR4)" >&5
7339 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
7340 echo $ac_n "(cached) $ac_c" 1>&6
7342 if test "$cross_compiling" = yes; then
7343 fu_cv_sys_stat_statvfs64
=cross
7345 cat > conftest.
$ac_ext <<EOF
7346 #line 7347 "configure"
7347 #include "confdefs.h"
7349 #include <sys/types.h>
7350 #include <sys/statvfs.h>
7353 struct statvfs64 fsd;
7354 exit (statfs64 (".", &fsd));
7357 if { (eval echo configure
:7358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7359 fu_cv_sys_stat_statvfs64
=yes
7361 echo "configure: failed program was:" >&5
7362 cat conftest.
$ac_ext >&5
7364 fu_cv_sys_stat_statvfs64
=no
7371 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
7372 if test $fu_cv_sys_stat_statvfs64 = yes; then
7374 cat >> confdefs.h
<<\EOF
7375 #define STAT_STATVFS64 1
7381 # Perform only the link test since it seems there are no variants of the
7382 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
7383 # because that got a false positive on SCO OSR5. Adding the declaration
7384 # of a `struct statvfs' causes this test to fail (as it should) on such
7385 # systems. That system is reported to work fine with STAT_STATFS4 which
7386 # is what it gets when this test fails.
7387 if test $space = no
; then
7389 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
7390 echo "configure:7391: checking statvfs function (SVR4)" >&5
7391 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
7392 echo $ac_n "(cached) $ac_c" 1>&6
7394 cat > conftest.
$ac_ext <<EOF
7395 #line 7396 "configure"
7396 #include "confdefs.h"
7397 #include <sys/types.h>
7398 #include <sys/statvfs.h>
7400 struct statvfs fsd; statvfs (0, &fsd);
7403 if { (eval echo configure
:7404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7405 fu_cv_sys_stat_statvfs
=yes
7407 echo "configure: failed program was:" >&5
7408 cat conftest.
$ac_ext >&5
7410 fu_cv_sys_stat_statvfs
=no
7415 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
7416 if test $fu_cv_sys_stat_statvfs = yes; then
7418 cat >> confdefs.h
<<\EOF
7419 #define STAT_STATVFS 1
7425 if test $space = no
; then
7426 # DEC Alpha running OSF/1
7427 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
7428 echo "configure:7429: checking for 3-argument statfs function (DEC OSF/1)" >&5
7429 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
7430 echo $ac_n "(cached) $ac_c" 1>&6
7432 if test "$cross_compiling" = yes; then
7433 fu_cv_sys_stat_statfs3_osf1
=no
7435 cat > conftest.
$ac_ext <<EOF
7436 #line 7437 "configure"
7437 #include "confdefs.h"
7439 #include <sys/param.h>
7440 #include <sys/types.h>
7441 #include <sys/mount.h>
7446 exit (statfs (".", &fsd, sizeof (struct statfs)));
7449 if { (eval echo configure
:7450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7451 fu_cv_sys_stat_statfs3_osf1
=yes
7453 echo "configure: failed program was:" >&5
7454 cat conftest.
$ac_ext >&5
7456 fu_cv_sys_stat_statfs3_osf1
=no
7463 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
7464 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
7466 cat >> confdefs.h
<<\EOF
7467 #define STAT_STATFS3_OSF1 1
7473 if test $space = no
; then
7475 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
7476 echo "configure:7477: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
7477 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
7478 echo $ac_n "(cached) $ac_c" 1>&6
7480 if test "$cross_compiling" = yes; then
7481 fu_cv_sys_stat_statfs2_bsize
=no
7483 cat > conftest.
$ac_ext <<EOF
7484 #line 7485 "configure"
7485 #include "confdefs.h"
7487 #ifdef HAVE_SYS_PARAM_H
7488 #include <sys/param.h>
7490 #ifdef HAVE_SYS_MOUNT_H
7491 #include <sys/mount.h>
7493 #ifdef HAVE_SYS_VFS_H
7494 #include <sys/vfs.h>
7500 exit (statfs (".", &fsd));
7503 if { (eval echo configure
:7504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7505 fu_cv_sys_stat_statfs2_bsize
=yes
7507 echo "configure: failed program was:" >&5
7508 cat conftest.
$ac_ext >&5
7510 fu_cv_sys_stat_statfs2_bsize
=no
7517 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
7518 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
7520 cat >> confdefs.h
<<\EOF
7521 #define STAT_STATFS2_BSIZE 1
7527 if test $space = no
; then
7529 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
7530 echo "configure:7531: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
7531 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
7532 echo $ac_n "(cached) $ac_c" 1>&6
7534 if test "$cross_compiling" = yes; then
7535 fu_cv_sys_stat_statfs4
=no
7537 cat > conftest.
$ac_ext <<EOF
7538 #line 7539 "configure"
7539 #include "confdefs.h"
7540 #include <sys/types.h>
7541 #include <sys/statfs.h>
7545 exit (statfs (".", &fsd, sizeof fsd, 0));
7548 if { (eval echo configure
:7549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7550 fu_cv_sys_stat_statfs4
=yes
7552 echo "configure: failed program was:" >&5
7553 cat conftest.
$ac_ext >&5
7555 fu_cv_sys_stat_statfs4
=no
7562 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
7563 if test $fu_cv_sys_stat_statfs4 = yes; then
7565 cat >> confdefs.h
<<\EOF
7566 #define STAT_STATFS4 1
7572 if test $space = no
; then
7574 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
7575 echo "configure:7576: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
7576 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
7577 echo $ac_n "(cached) $ac_c" 1>&6
7579 if test "$cross_compiling" = yes; then
7580 fu_cv_sys_stat_statfs2_fsize
=no
7582 cat > conftest.
$ac_ext <<EOF
7583 #line 7584 "configure"
7584 #include "confdefs.h"
7585 #include <sys/types.h>
7586 #ifdef HAVE_SYS_PARAM_H
7587 #include <sys/param.h>
7589 #ifdef HAVE_SYS_MOUNT_H
7590 #include <sys/mount.h>
7596 exit (statfs (".", &fsd));
7599 if { (eval echo configure
:7600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7601 fu_cv_sys_stat_statfs2_fsize
=yes
7603 echo "configure: failed program was:" >&5
7604 cat conftest.
$ac_ext >&5
7606 fu_cv_sys_stat_statfs2_fsize
=no
7613 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
7614 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
7616 cat >> confdefs.h
<<\EOF
7617 #define STAT_STATFS2_FSIZE 1
7623 if test $space = no
; then
7625 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
7626 echo "configure:7627: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
7627 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
7628 echo $ac_n "(cached) $ac_c" 1>&6
7630 if test "$cross_compiling" = yes; then
7631 fu_cv_sys_stat_fs_data
=no
7633 cat > conftest.
$ac_ext <<EOF
7634 #line 7635 "configure"
7635 #include "confdefs.h"
7636 #include <sys/types.h>
7637 #ifdef HAVE_SYS_PARAM_H
7638 #include <sys/param.h>
7640 #ifdef HAVE_SYS_MOUNT_H
7641 #include <sys/mount.h>
7643 #ifdef HAVE_SYS_FS_TYPES_H
7644 #include <sys/fs_types.h>
7649 /* Ultrix's statfs returns 1 for success,
7650 0 for not mounted, -1 for failure. */
7651 exit (statfs (".", &fsd) != 1);
7654 if { (eval echo configure
:7655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7656 fu_cv_sys_stat_fs_data
=yes
7658 echo "configure: failed program was:" >&5
7659 cat conftest.
$ac_ext >&5
7661 fu_cv_sys_stat_fs_data
=no
7668 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
7669 if test $fu_cv_sys_stat_fs_data = yes; then
7671 cat >> confdefs.h
<<\EOF
7672 #define STAT_STATFS2_FS_DATA 1
7678 echo "checking configure summary"
7679 if test "$cross_compiling" = yes; then
7682 cat > conftest.
$ac_ext <<EOF
7683 #line 7684 "configure"
7684 #include "confdefs.h"
7685 #include "${srcdir-.}/tests/summary.c"
7687 if { (eval echo configure
:7688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7689 echo "configure OK";
7691 echo "configure: failed program was:" >&5
7692 cat conftest.
$ac_ext >&5
7694 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
7704 cat > confcache
<<\EOF
7705 # This file is a shell script that caches the results of configure
7706 # tests run on this system so they can be shared between configure
7707 # scripts and configure runs. It is not useful on other systems.
7708 # If it contains results you don't want to keep, you may remove or edit it.
7710 # By default, configure uses ./config.cache as the cache file,
7711 # creating it if it does not exist already. You can give configure
7712 # the --cache-file=FILE option to use a different cache file; that is
7713 # what configure does when it calls configure scripts in
7714 # subdirectories, so they share the cache.
7715 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7716 # config.status only pays attention to the cache file if you give it the
7717 # --recheck option to rerun configure.
7720 # The following way of writing the cache mishandles newlines in values,
7721 # but we know of no workaround that is simple, portable, and efficient.
7722 # So, don't put newlines in cache variables' values.
7723 # Ultrix sh set writes to stderr and can't be redirected directly,
7724 # and sets the high bit in the cache file unless we assign to the vars.
7726 case `(ac_space=' '; set) 2>&1` in
7728 # `set' does not quote correctly, so add quotes (double-quote substitution
7729 # turns \\\\ into \\, and sed turns \\ into \).
7731 -e "s/'/'\\\\''/g" \
7732 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7735 # `set' quotes correctly as required by POSIX, so do not add quotes.
7736 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7739 if cmp -s $cache_file confcache
; then
7742 if test -w $cache_file; then
7743 echo "updating cache $cache_file"
7744 cat confcache
> $cache_file
7746 echo "not updating unwritable cache $cache_file"
7751 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7753 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7754 # Let make expand exec_prefix.
7755 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7757 # Any assignment to VPATH causes Sun make to only execute
7758 # the first set of double-colon rules, so remove it if not needed.
7759 # If there is a colon in the path, we need to keep it.
7760 if test "x$srcdir" = x.
; then
7761 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7764 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7766 DEFS
=-DHAVE_CONFIG_H
7768 # Without the "./", some shells look in PATH for config.status.
7769 : ${CONFIG_STATUS=./config.status}
7771 echo creating
$CONFIG_STATUS
7772 rm -f $CONFIG_STATUS
7773 cat > $CONFIG_STATUS <<EOF
7775 # Generated automatically by configure.
7776 # Run this file to recreate the current configuration.
7777 # This directory was configured as follows,
7778 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7780 # $0 $ac_configure_args
7782 # Compiler output produced by configure, useful for debugging
7783 # configure, is in ./config.log if it exists.
7785 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7788 case "\$ac_option" in
7789 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7790 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7791 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7792 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7793 echo "$CONFIG_STATUS generated by autoconf version 2.12"
7795 -help | --help | --hel | --he | --h)
7796 echo "\$ac_cs_usage"; exit 0 ;;
7797 *) echo "\$ac_cs_usage"; exit 1 ;;
7801 ac_given_srcdir=$srcdir
7802 ac_given_INSTALL="$INSTALL"
7804 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7806 cat >> $CONFIG_STATUS <<EOF
7808 # Protect against being on the right side of a sed subst in config.status.
7809 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7810 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7813 s%@CFLAGS@%$CFLAGS%g
7814 s%@CPPFLAGS@%$CPPFLAGS%g
7815 s%@CXXFLAGS@%$CXXFLAGS%g
7817 s%@LDFLAGS@%$LDFLAGS%g
7819 s%@exec_prefix@%$exec_prefix%g
7820 s%@prefix@%$prefix%g
7821 s%@program_transform_name@%$program_transform_name%g
7822 s%@bindir@%$bindir%g
7823 s%@sbindir@%$sbindir%g
7824 s%@libexecdir@%$libexecdir%g
7825 s%@datadir@%$datadir%g
7826 s%@sysconfdir@%$sysconfdir%g
7827 s%@sharedstatedir@%$sharedstatedir%g
7828 s%@localstatedir@%$localstatedir%g
7829 s%@libdir@%$libdir%g
7830 s%@includedir@%$includedir%g
7831 s%@oldincludedir@%$oldincludedir%g
7832 s%@infodir@%$infodir%g
7833 s%@mandir@%$mandir%g
7835 s%@MPROGS@%$MPROGS%g
7836 s%@LDSHFLAGS@%$LDSHFLAGS%g
7837 s%@HOST_OS@%$HOST_OS%g
7839 s%@WRAP32@%$WRAP32%g
7840 s%@PICFLAG@%$PICFLAG%g
7842 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7843 s%@INSTALL_DATA@%$INSTALL_DATA%g
7846 s%@host_alias@%$host_alias%g
7847 s%@host_cpu@%$host_cpu%g
7848 s%@host_vendor@%$host_vendor%g
7849 s%@host_os@%$host_os%g
7850 s%@target@%$target%g
7851 s%@target_alias@%$target_alias%g
7852 s%@target_cpu@%$target_cpu%g
7853 s%@target_vendor@%$target_vendor%g
7854 s%@target_os@%$target_os%g
7856 s%@build_alias@%$build_alias%g
7857 s%@build_cpu@%$build_cpu%g
7858 s%@build_vendor@%$build_vendor%g
7859 s%@build_os@%$build_os%g
7861 s%@AUTOCONF@%$AUTOCONF%g
7862 s%@AUTOHEADER@%$AUTOHEADER%g
7864 s%@LIBOBJS@%$LIBOBJS%g
7866 s%@QUOTAOBJS@%$QUOTAOBJS%g
7867 s%@builddir@%$builddir%g
7872 cat >> $CONFIG_STATUS <<\EOF
7874 # Split the substitutions into bite-sized pieces for seds with
7875 # small command number limits, like on Digital OSF/1 and HP-UX.
7876 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7877 ac_file
=1 # Number of current file.
7878 ac_beg
=1 # First line for current file.
7879 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7882 while $ac_more_lines; do
7883 if test $ac_beg -gt 1; then
7884 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7886 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7888 if test ! -s conftest.s
$ac_file; then
7890 rm -f conftest.s
$ac_file
7892 if test -z "$ac_sed_cmds"; then
7893 ac_sed_cmds
="sed -f conftest.s$ac_file"
7895 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7897 ac_file
=`expr $ac_file + 1`
7899 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7902 if test -z "$ac_sed_cmds"; then
7907 cat >> $CONFIG_STATUS <<EOF
7909 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
7911 cat >> $CONFIG_STATUS <<\EOF
7912 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7913 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7915 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7916 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7917 *) ac_file_in
="${ac_file}.in" ;;
7920 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7922 # Remove last slash and all that follows it. Not all systems have dirname.
7923 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7924 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7925 # The file is in a subdirectory.
7926 test ! -d "$ac_dir" && mkdir
"$ac_dir"
7927 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7928 # A "../" for each directory in $ac_dir_suffix.
7929 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7931 ac_dir_suffix
= ac_dots
=
7934 case "$ac_given_srcdir" in
7936 if test -z "$ac_dots"; then top_srcdir
=.
7937 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7938 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7940 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7941 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7944 case "$ac_given_INSTALL" in
7945 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7946 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7949 echo creating
"$ac_file"
7951 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7953 *Makefile
*) ac_comsub
="1i\\
7954 # $configure_input" ;;
7958 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7960 s%@configure_input@%$configure_input%g
7961 s%@srcdir@%$srcdir%g
7962 s%@top_srcdir@%$top_srcdir%g
7963 s%@INSTALL@%$INSTALL%g
7964 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7968 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7969 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7971 # ac_d sets the value in "#define NAME VALUE" lines.
7972 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7973 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7976 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7977 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7978 ac_uB
='\([ ]\)%\1#\2define\3'
7981 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7982 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7983 ac_eB
='$%\1#\2define\3'
7987 if test "${CONFIG_HEADERS+set}" != set; then
7989 cat >> $CONFIG_STATUS <<EOF
7990 CONFIG_HEADERS="include/config.h"
7992 cat >> $CONFIG_STATUS <<\EOF
7994 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7995 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7997 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7998 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7999 *) ac_file_in
="${ac_file}.in" ;;
8002 echo creating
$ac_file
8004 rm -f conftest.frag conftest.
in conftest.out
8005 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8006 cat $ac_file_inputs > conftest.
in
8010 # Transform confdefs.h into a sed script conftest.vals that substitutes
8011 # the proper values into config.h.in to produce config.h. And first:
8012 # Protect against being on the right side of a sed subst in config.status.
8013 # Protect against being in an unquoted here document in config.status.
8015 cat > conftest.hdr
<<\EOF
8018 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8022 sed -n -f conftest.hdr confdefs.h > conftest.vals
8025 # This sed command replaces #undef with comments. This is necessary, for
8026 # example, in the case of _POSIX_SOURCE, which is predefined and required
8027 # on some systems where configure will not decide to define it.
8028 cat >> conftest.vals <<\EOF
8029 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8032 # Break up conftest.vals because some shells have a limit on
8033 # the size of here documents, and old seds have small limits too.
8038 ac_lines=`grep -c . conftest.vals
`
8039 # grep -c gives empty output for an empty file on some AIX systems.
8040 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8041 # Write a limited-size here document to conftest.frag.
8042 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8043 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8045 sed -f conftest.frag conftest.in > conftest.out
8047 mv conftest.out conftest.in
8049 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8051 mv conftest.tail conftest.vals
8055 cat >> $CONFIG_STATUS <<\EOF
8056 rm -f conftest.frag conftest.h
8057 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8058 cat conftest.in >> conftest.h
8060 if cmp -s $ac_file conftest.h 2>/dev/null; then
8061 echo "$ac_file is unchanged"
8064 # Remove last slash and all that follows it. Not all systems have dirname.
8065 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
8066 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8067 # The file is in a subdirectory.
8068 test ! -d "$ac_dir" && mkdir "$ac_dir"
8071 mv conftest.h $ac_file
8076 cat >> $CONFIG_STATUS <<EOF
8079 cat >> $CONFIG_STATUS <<\EOF
8083 chmod +x $CONFIG_STATUS
8084 rm -fr confdefs* $ac_clean_files
8085 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1