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-sslinc=DIR Tells us where the SSL stuff is (default /usr/local/ssl)"
50 --with-mmap Include experimental MMAP support
51 --without-mmap Don't include MMAP support (default)"
53 --with-syslog Include experimental SYSLOG support
54 --without-syslog Don't include SYSLOG support (default)"
56 --with-netatalk Include experimental Netatalk support
57 --without-netatalk Don't include experimental Netatalk support (default)"
59 --with-quotas Include experimental disk-quota support
60 --without-quotas Don't include experimental disk-quota support (default)"
62 # Initialize some variables set by options.
63 # The variables have the same names as the options, with
64 # dashes changed to underlines.
66 cache_file
=.
/config.cache
75 program_transform_name
=s
,x
,x
,
83 bindir
='${exec_prefix}/bin'
84 sbindir
='${exec_prefix}/sbin'
85 libexecdir
='${exec_prefix}/libexec'
86 datadir
='${prefix}/share'
87 sysconfdir
='${prefix}/etc'
88 sharedstatedir
='${prefix}/com'
89 localstatedir
='${prefix}/var'
90 libdir
='${exec_prefix}/lib'
91 includedir
='${prefix}/include'
92 oldincludedir
='/usr/include'
93 infodir
='${prefix}/info'
94 mandir
='${prefix}/man'
96 # Initialize some other variables.
99 # Maximum number of lines to put in a shell here document.
106 # If the previous option needs an argument, assign it.
107 if test -n "$ac_prev"; then
108 eval "$ac_prev=\$ac_option"
114 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
118 # Accept the important Cygnus configure options, so we can diagnose typos.
122 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
124 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
125 bindir
="$ac_optarg" ;;
127 -build |
--build |
--buil |
--bui |
--bu)
129 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
130 build
="$ac_optarg" ;;
132 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
133 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
134 ac_prev
=cache_file
;;
135 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
136 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
137 cache_file
="$ac_optarg" ;;
139 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
141 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
143 datadir
="$ac_optarg" ;;
145 -disable-* |
--disable-*)
146 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
147 # Reject names that are not valid shell variable names.
148 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
149 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
152 eval "enable_${ac_feature}=no" ;;
154 -enable-* |
--enable-*)
155 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
165 eval "enable_${ac_feature}='$ac_optarg'" ;;
167 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
168 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
169 |
--exec |
--exe |
--ex)
170 ac_prev
=exec_prefix
;;
171 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
172 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
173 |
--exec=* |
--exe=* |
--ex=*)
174 exec_prefix
="$ac_optarg" ;;
176 -gas |
--gas |
--ga |
--g)
177 # Obsolete; use --with-gas.
180 -help |
--help |
--hel |
--he)
181 # Omit some internal or obsolete options to make the list less imposing.
182 # This message is too long to be a string in the A/UX 3.1 sh.
184 Usage: configure [options] [host]
185 Options: [defaults in brackets after descriptions]
187 --cache-file=FILE cache test results in FILE
188 --help print this message
189 --no-create do not create output files
190 --quiet, --silent do not print \`checking...' messages
191 --version print the version of autoconf that created configure
192 Directory and file names:
193 --prefix=PREFIX install architecture-independent files in PREFIX
195 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
197 --bindir=DIR user executables in DIR [EPREFIX/bin]
198 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
199 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
200 --datadir=DIR read-only architecture-independent data in DIR
202 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
203 --sharedstatedir=DIR modifiable architecture-independent data in DIR
205 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
206 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
207 --includedir=DIR C header files in DIR [PREFIX/include]
208 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
209 --infodir=DIR info documentation in DIR [PREFIX/info]
210 --mandir=DIR man documentation in DIR [PREFIX/man]
211 --srcdir=DIR find the sources in DIR [configure dir or ..]
212 --program-prefix=PREFIX prepend PREFIX to installed program names
213 --program-suffix=SUFFIX append SUFFIX to installed program names
214 --program-transform-name=PROGRAM
215 run sed PROGRAM on installed program names
219 --build=BUILD configure for building on BUILD [BUILD=HOST]
220 --host=HOST configure for HOST [guessed]
221 --target=TARGET configure for TARGET [TARGET=HOST]
222 Features and packages:
223 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
224 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
225 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
226 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
227 --x-includes=DIR X include files are in DIR
228 --x-libraries=DIR X library files are in DIR
230 if test -n "$ac_help"; then
231 echo "--enable and --with options recognized:$ac_help"
235 -host |
--host |
--hos |
--ho)
237 -host=* |
--host=* |
--hos=* |
--ho=*)
240 -includedir |
--includedir |
--includedi |
--included |
--include \
241 |
--includ |
--inclu |
--incl |
--inc)
242 ac_prev
=includedir
;;
243 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
244 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
245 includedir
="$ac_optarg" ;;
247 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
249 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
250 infodir
="$ac_optarg" ;;
252 -libdir |
--libdir |
--libdi |
--libd)
254 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
255 libdir
="$ac_optarg" ;;
257 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
258 |
--libexe |
--libex |
--libe)
259 ac_prev
=libexecdir
;;
260 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
261 |
--libexe=* |
--libex=* |
--libe=*)
262 libexecdir
="$ac_optarg" ;;
264 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
265 |
--localstate |
--localstat |
--localsta |
--localst \
266 |
--locals |
--local |
--loca |
--loc |
--lo)
267 ac_prev
=localstatedir
;;
268 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
269 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
270 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
271 localstatedir
="$ac_optarg" ;;
273 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
275 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
276 mandir
="$ac_optarg" ;;
279 # Obsolete; use --without-fp.
282 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
286 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
287 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
290 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
291 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
292 |
--oldin |
--oldi |
--old |
--ol |
--o)
293 ac_prev
=oldincludedir
;;
294 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
295 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
296 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
297 oldincludedir
="$ac_optarg" ;;
299 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
301 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
302 prefix
="$ac_optarg" ;;
304 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
305 |
--program-pre |
--program-pr |
--program-p)
306 ac_prev
=program_prefix
;;
307 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
308 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
309 program_prefix
="$ac_optarg" ;;
311 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
312 |
--program-suf |
--program-su |
--program-s)
313 ac_prev
=program_suffix
;;
314 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
315 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
316 program_suffix
="$ac_optarg" ;;
318 -program-transform-name |
--program-transform-name \
319 |
--program-transform-nam |
--program-transform-na \
320 |
--program-transform-n |
--program-transform- \
321 |
--program-transform |
--program-transfor \
322 |
--program-transfo |
--program-transf \
323 |
--program-trans |
--program-tran \
324 |
--progr-tra |
--program-tr |
--program-t)
325 ac_prev
=program_transform_name
;;
326 -program-transform-name=* |
--program-transform-name=* \
327 |
--program-transform-nam=* |
--program-transform-na=* \
328 |
--program-transform-n=* |
--program-transform-=* \
329 |
--program-transform=* |
--program-transfor=* \
330 |
--program-transfo=* |
--program-transf=* \
331 |
--program-trans=* |
--program-tran=* \
332 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
333 program_transform_name
="$ac_optarg" ;;
335 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
336 |
-silent |
--silent |
--silen |
--sile |
--sil)
339 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
341 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
343 sbindir
="$ac_optarg" ;;
345 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
346 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
347 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
349 ac_prev
=sharedstatedir
;;
350 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
351 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
352 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
354 sharedstatedir
="$ac_optarg" ;;
356 -site |
--site |
--sit)
358 -site=* |
--site=* |
--sit=*)
361 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
363 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
364 srcdir
="$ac_optarg" ;;
366 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
367 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
368 ac_prev
=sysconfdir
;;
369 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
370 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
371 sysconfdir
="$ac_optarg" ;;
373 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
375 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
376 target
="$ac_optarg" ;;
378 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
381 -version |
--version |
--versio |
--versi |
--vers)
382 echo "configure generated by autoconf version 2.12"
386 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
387 # Reject names that are not valid shell variable names.
388 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
389 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
391 ac_package
=`echo $ac_package| sed 's/-/_/g'`
396 eval "with_${ac_package}='$ac_optarg'" ;;
398 -without-* |
--without-*)
399 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
400 # Reject names that are not valid shell variable names.
401 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
402 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404 ac_package
=`echo $ac_package| sed 's/-/_/g'`
405 eval "with_${ac_package}=no" ;;
408 # Obsolete; use --with-x.
411 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
412 |
--x-incl |
--x-inc |
--x-in |
--x-i)
413 ac_prev
=x_includes
;;
414 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
415 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
416 x_includes
="$ac_optarg" ;;
418 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
419 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
420 ac_prev
=x_libraries
;;
421 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
422 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
423 x_libraries
="$ac_optarg" ;;
425 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
429 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
430 echo "configure: warning: $ac_option: invalid host type" 1>&2
432 if test "x$nonopt" != xNONE
; then
433 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
441 if test -n "$ac_prev"; then
442 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
445 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
447 # File descriptor usage:
450 # 2 errors and warnings
451 # 3 some systems may open it to /dev/tty
452 # 4 used on the Kubota Titan
453 # 6 checking for... messages and results
454 # 5 compiler messages saved in config.log
455 if test "$silent" = yes; then
463 This file contains any messages produced by compilers while
464 running configure, to aid debugging if configure makes a mistake.
467 # Strip out --no-create and --no-recursion so they do not pile up.
468 # Also quote any args containing shell metacharacters.
473 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
474 |
--no-cr |
--no-c) ;;
475 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
476 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
477 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
478 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
479 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
484 # Only set these to C if already set. These must not be set unconditionally
485 # because not all systems understand e.g. LANG=C (notably SCO).
486 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
487 # Non-C LC_CTYPE values break the ctype check.
488 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
489 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
490 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
491 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
493 # confdefs.h avoids OS command line length limits that DEFS can exceed.
494 rm -rf conftest
* confdefs.h
495 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
498 # A filename unique to this package, relative to the directory that
499 # configure is in, which we can look for to find out if srcdir is correct.
500 ac_unique_file
=include
/includes.h
502 # Find the source files, if location was not specified.
503 if test -z "$srcdir"; then
504 ac_srcdir_defaulted
=yes
505 # Try the directory containing this script, then its parent.
507 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
508 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
510 if test ! -r $srcdir/$ac_unique_file; then
514 ac_srcdir_defaulted
=no
516 if test ! -r $srcdir/$ac_unique_file; then
517 if test "$ac_srcdir_defaulted" = yes; then
518 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
520 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
523 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
525 # Prefer explicitly selected file to automatically selected ones.
526 if test -z "$CONFIG_SITE"; then
527 if test "x$prefix" != xNONE
; then
528 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
530 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
533 for ac_site_file
in $CONFIG_SITE; do
534 if test -r "$ac_site_file"; then
535 echo "loading site script $ac_site_file"
540 if test -r "$cache_file"; then
541 echo "loading cache $cache_file"
544 echo "creating cache $cache_file"
549 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
550 ac_cpp
='$CPP $CPPFLAGS'
551 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
552 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
553 cross_compiling
=$ac_cv_prog_cc_cross
555 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
556 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
557 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
564 ac_n
= ac_c
='\c' ac_t
=
569 # we want to be compatibe with older versions of Samba
580 # compile with optimisation and without debugging by default
581 CFLAGS
=${CFLAGS-"-O"}
583 # Extract the first word of "gcc", so it can be a program name with args.
584 set dummy gcc
; ac_word
=$2
585 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
586 echo "configure:585: checking for $ac_word" >&5
587 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
588 echo $ac_n "(cached) $ac_c" 1>&6
590 if test -n "$CC"; then
591 ac_cv_prog_CC
="$CC" # Let the user override the test.
593 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
594 for ac_dir
in $PATH; do
595 test -z "$ac_dir" && ac_dir
=.
596 if test -f $ac_dir/$ac_word; then
605 if test -n "$CC"; then
606 echo "$ac_t""$CC" 1>&6
608 echo "$ac_t""no" 1>&6
611 if test -z "$CC"; then
612 # Extract the first word of "cc", so it can be a program name with args.
613 set dummy cc
; ac_word
=$2
614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
615 echo "configure:614: checking for $ac_word" >&5
616 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
617 echo $ac_n "(cached) $ac_c" 1>&6
619 if test -n "$CC"; then
620 ac_cv_prog_CC
="$CC" # Let the user override the test.
622 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
624 for ac_dir
in $PATH; do
625 test -z "$ac_dir" && ac_dir
=.
626 if test -f $ac_dir/$ac_word; then
627 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
636 if test $ac_prog_rejected = yes; then
637 # We found a bogon in the path, so make sure we never use it.
638 set dummy
$ac_cv_prog_CC
640 if test $# -gt 0; then
641 # We chose a different compiler from the bogus one.
642 # However, it has the same basename, so the bogon will be chosen
643 # first if we set CC to just the basename; use the full file name.
645 set dummy
"$ac_dir/$ac_word" "$@"
653 if test -n "$CC"; then
654 echo "$ac_t""$CC" 1>&6
656 echo "$ac_t""no" 1>&6
659 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
662 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
663 echo "configure:662: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
666 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
667 ac_cpp
='$CPP $CPPFLAGS'
668 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
669 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
670 cross_compiling
=$ac_cv_prog_cc_cross
672 cat > conftest.
$ac_ext <<EOF
673 #line 672 "configure"
674 #include "confdefs.h"
677 if { (eval echo configure
:676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
678 ac_cv_prog_cc_works
=yes
679 # If we can't run a trivial program, we are probably using a cross compiler.
680 if (.
/conftest
; exit) 2>/dev
/null
; then
681 ac_cv_prog_cc_cross
=no
683 ac_cv_prog_cc_cross
=yes
686 echo "configure: failed program was:" >&5
687 cat conftest.
$ac_ext >&5
688 ac_cv_prog_cc_works
=no
692 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
693 if test $ac_cv_prog_cc_works = no
; then
694 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
696 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
697 echo "configure:696: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
699 cross_compiling
=$ac_cv_prog_cc_cross
701 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
702 echo "configure:701: checking whether we are using GNU C" >&5
703 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
704 echo $ac_n "(cached) $ac_c" 1>&6
706 cat > conftest.c
<<EOF
711 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
718 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
720 if test $ac_cv_prog_gcc = yes; then
722 ac_test_CFLAGS
="${CFLAGS+set}"
723 ac_save_CFLAGS
="$CFLAGS"
725 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
726 echo "configure:725: checking whether ${CC-cc} accepts -g" >&5
727 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
728 echo $ac_n "(cached) $ac_c" 1>&6
730 echo 'void f(){}' > conftest.c
731 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
740 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
741 if test "$ac_test_CFLAGS" = set; then
742 CFLAGS
="$ac_save_CFLAGS"
743 elif test $ac_cv_prog_cc_g = yes; then
750 test "${CFLAGS+set}" = set || CFLAGS
="-g"
754 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
755 if test -f $ac_dir/install-sh
; then
757 ac_install_sh
="$ac_aux_dir/install-sh -c"
759 elif test -f $ac_dir/install.sh
; then
761 ac_install_sh
="$ac_aux_dir/install.sh -c"
765 if test -z "$ac_aux_dir"; then
766 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
768 ac_config_guess
=$ac_aux_dir/config.guess
769 ac_config_sub
=$ac_aux_dir/config.sub
770 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
772 # Find a good install program. We prefer a C program (faster),
773 # so one script is as good as another. But avoid the broken or
774 # incompatible versions:
775 # SysV /etc/install, /usr/sbin/install
776 # SunOS /usr/etc/install
779 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
780 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
781 # ./install, which can be erroneously created by make from ./install.sh.
782 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
783 echo "configure:782: checking for a BSD compatible install" >&5
784 if test -z "$INSTALL"; then
785 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
788 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
789 for ac_dir
in $PATH; do
790 # Account for people who put trailing slashes in PATH elements.
792 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
794 # OSF1 and SCO ODT 3.0 have their own names for install.
795 for ac_prog
in ginstall installbsd scoinst
install; do
796 if test -f $ac_dir/$ac_prog; then
797 if test $ac_prog = install &&
798 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
799 # AIX install. It has an incompatible calling convention.
800 # OSF/1 installbsd also uses dspmsg, but is usable.
803 ac_cv_path_install
="$ac_dir/$ac_prog -c"
814 if test "${ac_cv_path_install+set}" = set; then
815 INSTALL
="$ac_cv_path_install"
817 # As a last resort, use the slow shell script. We don't cache a
818 # path for INSTALL within a source directory, because that will
819 # break other packages using the cache if that directory is
820 # removed, or if the path is relative.
821 INSTALL
="$ac_install_sh"
824 echo "$ac_t""$INSTALL" 1>&6
826 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
827 # It thinks the first close brace ends the variable substitution.
828 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
830 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
832 for ac_prog
in mawk gawk nawk
awk
834 # Extract the first word of "$ac_prog", so it can be a program name with args.
835 set dummy
$ac_prog; ac_word
=$2
836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
837 echo "configure:836: checking for $ac_word" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
841 if test -n "$AWK"; then
842 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
844 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
845 for ac_dir
in $PATH; do
846 test -z "$ac_dir" && ac_dir
=.
847 if test -f $ac_dir/$ac_word; then
848 ac_cv_prog_AWK
="$ac_prog"
855 AWK
="$ac_cv_prog_AWK"
856 if test -n "$AWK"; then
857 echo "$ac_t""$AWK" 1>&6
859 echo "$ac_t""no" 1>&6
862 test -n "$AWK" && break
867 # Do some error checking and defaulting for the host and target type.
869 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
872 # 1. You are not allowed to specify --host, --target, and nonopt at the
874 # 2. Host defaults to nonopt.
875 # 3. If nonopt is not specified, then host defaults to the current host,
876 # as determined by config.guess.
877 # 4. Target and build default to nonopt.
878 # 5. If nonopt is not specified, then target and build default to host.
880 # The aliases save the names the user supplied, while $host etc.
881 # will get canonicalized.
882 case $host---$target---$nonopt in
883 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
884 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
888 # Make sure we can run config.sub.
889 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
890 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
893 echo $ac_n "checking host system type""... $ac_c" 1>&6
894 echo "configure:893: checking host system type" >&5
897 case "$host_alias" in
901 if host_alias
=`$ac_config_guess`; then :
902 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
904 *) host_alias
=$nonopt ;;
908 host=`$ac_config_sub $host_alias`
909 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
910 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
911 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
912 echo "$ac_t""$host" 1>&6
914 echo $ac_n "checking target system type""... $ac_c" 1>&6
915 echo "configure:914: checking target system type" >&5
918 case "$target_alias" in
921 NONE
) target_alias
=$host_alias ;;
922 *) target_alias
=$nonopt ;;
926 target
=`$ac_config_sub $target_alias`
927 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
928 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
929 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
930 echo "$ac_t""$target" 1>&6
932 echo $ac_n "checking build system type""... $ac_c" 1>&6
933 echo "configure:932: checking build system type" >&5
936 case "$build_alias" in
939 NONE
) build_alias
=$host_alias ;;
940 *) build_alias
=$nonopt ;;
944 build
=`$ac_config_sub $build_alias`
945 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
946 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
947 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
948 echo "$ac_t""$build" 1>&6
950 test "$host_alias" != "$target_alias" &&
951 test "$program_prefix$program_suffix$program_transform_name" = \
953 program_prefix
=${target_alias}-
957 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
958 echo "configure:957: checking config.cache system type" >&5
959 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
960 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
961 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
962 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
963 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
964 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
965 echo "$ac_t""different" 1>&6
966 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
968 echo "$ac_t""same" 1>&6
970 ac_cv_host_system_type
="$host"
971 ac_cv_build_system_type
="$build"
972 ac_cv_target_system_type
="$target"
975 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
976 if test "${enable_maintainer_mode+set}" = set; then
977 enableval
="$enable_maintainer_mode"
978 maint_mode
=$enableval
983 if test x
"$maint_mode" = x
"yes"; then MAINT
=; else MAINT
='#'; fi
985 # Extract the first word of "autoconf", so it can be a program name with args.
986 set dummy autoconf
; ac_word
=$2
987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
988 echo "configure:987: checking for $ac_word" >&5
989 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
990 echo $ac_n "(cached) $ac_c" 1>&6
994 ac_cv_path_AUTOCONF
="$AUTOCONF" # Let the user override the test with a path.
997 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
998 for ac_dir
in $PATH; do
999 test -z "$ac_dir" && ac_dir
=.
1000 if test -f $ac_dir/$ac_word; then
1001 ac_cv_path_AUTOCONF
="$ac_dir/$ac_word"
1006 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF
="autoconf"
1010 AUTOCONF
="$ac_cv_path_AUTOCONF"
1011 if test -n "$AUTOCONF"; then
1012 echo "$ac_t""$AUTOCONF" 1>&6
1014 echo "$ac_t""no" 1>&6
1018 # Extract the first word of "autoheader", so it can be a program name with args.
1019 set dummy autoheader
; ac_word
=$2
1020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1021 echo "configure:1020: checking for $ac_word" >&5
1022 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1023 echo $ac_n "(cached) $ac_c" 1>&6
1025 case "$AUTOHEADER" in
1027 ac_cv_path_AUTOHEADER
="$AUTOHEADER" # Let the user override the test with a path.
1030 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1031 for ac_dir
in $PATH; do
1032 test -z "$ac_dir" && ac_dir
=.
1033 if test -f $ac_dir/$ac_word; then
1034 ac_cv_path_AUTOHEADER
="$ac_dir/$ac_word"
1039 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER
="autoheader"
1043 AUTOHEADER
="$ac_cv_path_AUTOHEADER"
1044 if test -n "$AUTOHEADER"; then
1045 echo "$ac_t""$AUTOHEADER" 1>&6
1047 echo "$ac_t""no" 1>&6
1054 # Config CPPFLAG settings for strange OS's that must be set
1055 # before other tests.
1058 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1060 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1061 echo "configure:1060: checking whether ${CC-cc} accepts -Ae" >&5
1062 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1065 echo 'void f(){}' > conftest.c
1066 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1067 ac_cv_prog_cc_Ae
=yes
1075 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1076 if test $ac_cv_prog_cc_Ae = yes; then
1077 CPPFLAGS
="$CPPFLAGS -Ae"
1081 # AIX4.x is *so* broken. It doesn't even admit to having large
1082 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1085 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1089 echo $ac_n "checking for inline""... $ac_c" 1>&6
1090 echo "configure:1089: checking for inline" >&5
1091 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1095 for ac_kw
in inline __inline__ __inline
; do
1096 cat > conftest.
$ac_ext <<EOF
1097 #line 1096 "configure"
1098 #include "confdefs.h"
1104 if { (eval echo configure
:1103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1106 ac_cv_c_inline
=$ac_kw; break
1108 echo "configure: failed program was:" >&5
1109 cat conftest.
$ac_ext >&5
1116 echo "$ac_t""$ac_cv_c_inline" 1>&6
1117 case "$ac_cv_c_inline" in
1119 no
) cat >> confdefs.h
<<\EOF
1123 *) cat >> confdefs.h
<<EOF
1124 #define inline $ac_cv_c_inline
1129 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1130 echo "configure:1129: checking how to run the C preprocessor" >&5
1131 # On Suns, sometimes $CPP names a directory.
1132 if test -n "$CPP" && test -d "$CPP"; then
1135 if test -z "$CPP"; then
1136 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1137 echo $ac_n "(cached) $ac_c" 1>&6
1139 # This must be in double quotes, not single quotes, because CPP may get
1140 # substituted into the Makefile and "${CC-cc}" will confuse make.
1142 # On the NeXT, cc -E runs the code through the compiler's parser,
1143 # not just through cpp.
1144 cat > conftest.
$ac_ext <<EOF
1145 #line 1144 "configure"
1146 #include "confdefs.h"
1150 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1151 { (eval echo configure
:1150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1152 ac_err
=`grep -v '^ *+' conftest.out`
1153 if test -z "$ac_err"; then
1157 echo "configure: failed program was:" >&5
1158 cat conftest.
$ac_ext >&5
1160 CPP
="${CC-cc} -E -traditional-cpp"
1161 cat > conftest.
$ac_ext <<EOF
1162 #line 1161 "configure"
1163 #include "confdefs.h"
1167 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1168 { (eval echo configure
:1167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1169 ac_err
=`grep -v '^ *+' conftest.out`
1170 if test -z "$ac_err"; then
1174 echo "configure: failed program was:" >&5
1175 cat conftest.
$ac_ext >&5
1182 ac_cv_prog_CPP
="$CPP"
1184 CPP
="$ac_cv_prog_CPP"
1186 ac_cv_prog_CPP
="$CPP"
1188 echo "$ac_t""$CPP" 1>&6
1190 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1191 echo "configure:1190: checking for ANSI C header files" >&5
1192 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1195 cat > conftest.
$ac_ext <<EOF
1196 #line 1195 "configure"
1197 #include "confdefs.h"
1203 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1204 { (eval echo configure
:1203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1205 ac_err
=`grep -v '^ *+' conftest.out`
1206 if test -z "$ac_err"; then
1208 ac_cv_header_stdc
=yes
1211 echo "configure: failed program was:" >&5
1212 cat conftest.
$ac_ext >&5
1214 ac_cv_header_stdc
=no
1218 if test $ac_cv_header_stdc = yes; then
1219 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1220 cat > conftest.
$ac_ext <<EOF
1221 #line 1220 "configure"
1222 #include "confdefs.h"
1225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1226 egrep "memchr" >/dev
/null
2>&1; then
1230 ac_cv_header_stdc
=no
1236 if test $ac_cv_header_stdc = yes; then
1237 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1238 cat > conftest.
$ac_ext <<EOF
1239 #line 1238 "configure"
1240 #include "confdefs.h"
1243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1244 egrep "free" >/dev
/null
2>&1; then
1248 ac_cv_header_stdc
=no
1254 if test $ac_cv_header_stdc = yes; then
1255 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1256 if test "$cross_compiling" = yes; then
1259 cat > conftest.
$ac_ext <<EOF
1260 #line 1259 "configure"
1261 #include "confdefs.h"
1263 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1264 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1265 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1266 int main () { int i; for (i = 0; i < 256; i++)
1267 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1271 if { (eval echo configure
:1270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1275 echo "configure: failed program was:" >&5
1276 cat conftest.
$ac_ext >&5
1278 ac_cv_header_stdc
=no
1286 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1287 if test $ac_cv_header_stdc = yes; then
1288 cat >> confdefs.h
<<\EOF
1289 #define STDC_HEADERS 1
1295 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1297 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1298 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1299 echo "configure:1298: checking for $ac_hdr that defines DIR" >&5
1300 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1301 echo $ac_n "(cached) $ac_c" 1>&6
1303 cat > conftest.
$ac_ext <<EOF
1304 #line 1303 "configure"
1305 #include "confdefs.h"
1306 #include <sys/types.h>
1312 if { (eval echo configure
:1311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1314 eval "ac_cv_header_dirent_$ac_safe=yes"
1316 echo "configure: failed program was:" >&5
1317 cat conftest.
$ac_ext >&5
1319 eval "ac_cv_header_dirent_$ac_safe=no"
1323 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1324 echo "$ac_t""yes" 1>&6
1325 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1326 cat >> confdefs.h
<<EOF
1327 #define $ac_tr_hdr 1
1329 ac_header_dirent
=$ac_hdr; break
1331 echo "$ac_t""no" 1>&6
1334 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1335 if test $ac_header_dirent = dirent.h
; then
1336 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1337 echo "configure:1336: checking for opendir in -ldir" >&5
1338 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1342 ac_save_LIBS
="$LIBS"
1344 cat > conftest.
$ac_ext <<EOF
1345 #line 1344 "configure"
1346 #include "confdefs.h"
1347 /* Override any gcc2 internal prototype to avoid an error. */
1348 /* We use char because int might match the return type of a gcc2
1349 builtin and then its argument prototype would still apply. */
1356 if { (eval echo configure
:1355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1358 eval "ac_cv_lib_$ac_lib_var=yes"
1360 echo "configure: failed program was:" >&5
1361 cat conftest.
$ac_ext >&5
1363 eval "ac_cv_lib_$ac_lib_var=no"
1366 LIBS
="$ac_save_LIBS"
1369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1370 echo "$ac_t""yes" 1>&6
1373 echo "$ac_t""no" 1>&6
1377 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1378 echo "configure:1377: checking for opendir in -lx" >&5
1379 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 ac_save_LIBS
="$LIBS"
1385 cat > conftest.
$ac_ext <<EOF
1386 #line 1385 "configure"
1387 #include "confdefs.h"
1388 /* Override any gcc2 internal prototype to avoid an error. */
1389 /* We use char because int might match the return type of a gcc2
1390 builtin and then its argument prototype would still apply. */
1397 if { (eval echo configure
:1396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1399 eval "ac_cv_lib_$ac_lib_var=yes"
1401 echo "configure: failed program was:" >&5
1402 cat conftest.
$ac_ext >&5
1404 eval "ac_cv_lib_$ac_lib_var=no"
1407 LIBS
="$ac_save_LIBS"
1410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1411 echo "$ac_t""yes" 1>&6
1414 echo "$ac_t""no" 1>&6
1419 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1420 echo "configure:1419: checking whether time.h and sys/time.h may both be included" >&5
1421 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1424 cat > conftest.
$ac_ext <<EOF
1425 #line 1424 "configure"
1426 #include "confdefs.h"
1427 #include <sys/types.h>
1428 #include <sys/time.h>
1434 if { (eval echo configure
:1433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1436 ac_cv_header_time
=yes
1438 echo "configure: failed program was:" >&5
1439 cat conftest.
$ac_ext >&5
1441 ac_cv_header_time
=no
1446 echo "$ac_t""$ac_cv_header_time" 1>&6
1447 if test $ac_cv_header_time = yes; then
1448 cat >> confdefs.h
<<\EOF
1449 #define TIME_WITH_SYS_TIME 1
1454 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1455 echo "configure:1454: checking for sys/wait.h that is POSIX.1 compatible" >&5
1456 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 cat > conftest.
$ac_ext <<EOF
1460 #line 1459 "configure"
1461 #include "confdefs.h"
1462 #include <sys/types.h>
1463 #include <sys/wait.h>
1465 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1468 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1473 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1476 if { (eval echo configure
:1475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1478 ac_cv_header_sys_wait_h
=yes
1480 echo "configure: failed program was:" >&5
1481 cat conftest.
$ac_ext >&5
1483 ac_cv_header_sys_wait_h
=no
1488 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1489 if test $ac_cv_header_sys_wait_h = yes; then
1490 cat >> confdefs.h
<<\EOF
1491 #define HAVE_SYS_WAIT_H 1
1496 for ac_hdr
in sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
1498 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1500 echo "configure:1499: checking for $ac_hdr" >&5
1501 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1502 echo $ac_n "(cached) $ac_c" 1>&6
1504 cat > conftest.
$ac_ext <<EOF
1505 #line 1504 "configure"
1506 #include "confdefs.h"
1509 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1510 { (eval echo configure
:1509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1511 ac_err
=`grep -v '^ *+' conftest.out`
1512 if test -z "$ac_err"; then
1514 eval "ac_cv_header_$ac_safe=yes"
1517 echo "configure: failed program was:" >&5
1518 cat conftest.
$ac_ext >&5
1520 eval "ac_cv_header_$ac_safe=no"
1524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1525 echo "$ac_t""yes" 1>&6
1526 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1527 cat >> confdefs.h
<<EOF
1528 #define $ac_tr_hdr 1
1532 echo "$ac_t""no" 1>&6
1536 for ac_hdr
in sys
/param.h ctype.h
1538 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1540 echo "configure:1539: checking for $ac_hdr" >&5
1541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1544 cat > conftest.
$ac_ext <<EOF
1545 #line 1544 "configure"
1546 #include "confdefs.h"
1549 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1550 { (eval echo configure
:1549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1551 ac_err
=`grep -v '^ *+' conftest.out`
1552 if test -z "$ac_err"; then
1554 eval "ac_cv_header_$ac_safe=yes"
1557 echo "configure: failed program was:" >&5
1558 cat conftest.
$ac_ext >&5
1560 eval "ac_cv_header_$ac_safe=no"
1564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1565 echo "$ac_t""yes" 1>&6
1566 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1567 cat >> confdefs.h
<<EOF
1568 #define $ac_tr_hdr 1
1572 echo "$ac_t""no" 1>&6
1576 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/route.h net
/if.h
1578 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1580 echo "configure:1579: checking for $ac_hdr" >&5
1581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 cat > conftest.
$ac_ext <<EOF
1585 #line 1584 "configure"
1586 #include "confdefs.h"
1589 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1590 { (eval echo configure
:1589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1591 ac_err
=`grep -v '^ *+' conftest.out`
1592 if test -z "$ac_err"; then
1594 eval "ac_cv_header_$ac_safe=yes"
1597 echo "configure: failed program was:" >&5
1598 cat conftest.
$ac_ext >&5
1600 eval "ac_cv_header_$ac_safe=no"
1604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1605 echo "$ac_t""yes" 1>&6
1606 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1607 cat >> confdefs.h
<<EOF
1608 #define $ac_tr_hdr 1
1612 echo "$ac_t""no" 1>&6
1616 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h sys
/param.h ctype.h
1618 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1620 echo "configure:1619: checking for $ac_hdr" >&5
1621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1622 echo $ac_n "(cached) $ac_c" 1>&6
1624 cat > conftest.
$ac_ext <<EOF
1625 #line 1624 "configure"
1626 #include "confdefs.h"
1629 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1630 { (eval echo configure
:1629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1631 ac_err
=`grep -v '^ *+' conftest.out`
1632 if test -z "$ac_err"; then
1634 eval "ac_cv_header_$ac_safe=yes"
1637 echo "configure: failed program was:" >&5
1638 cat conftest.
$ac_ext >&5
1640 eval "ac_cv_header_$ac_safe=no"
1644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1645 echo "$ac_t""yes" 1>&6
1646 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1647 cat >> confdefs.h
<<EOF
1648 #define $ac_tr_hdr 1
1652 echo "$ac_t""no" 1>&6
1656 for ac_hdr
in sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/mode.h sys
/mman.h
1658 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1660 echo "configure:1659: checking for $ac_hdr" >&5
1661 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1662 echo $ac_n "(cached) $ac_c" 1>&6
1664 cat > conftest.
$ac_ext <<EOF
1665 #line 1664 "configure"
1666 #include "confdefs.h"
1669 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1670 { (eval echo configure
:1669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1671 ac_err
=`grep -v '^ *+' conftest.out`
1672 if test -z "$ac_err"; then
1674 eval "ac_cv_header_$ac_safe=yes"
1677 echo "configure: failed program was:" >&5
1678 cat conftest.
$ac_ext >&5
1680 eval "ac_cv_header_$ac_safe=no"
1684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1685 echo "$ac_t""yes" 1>&6
1686 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1687 cat >> confdefs.h
<<EOF
1688 #define $ac_tr_hdr 1
1692 echo "$ac_t""no" 1>&6
1696 for ac_hdr
in sys
/filio.h string.h
strings.h stdlib.h sys
/socket.h
1698 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1700 echo "configure:1699: checking for $ac_hdr" >&5
1701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1704 cat > conftest.
$ac_ext <<EOF
1705 #line 1704 "configure"
1706 #include "confdefs.h"
1709 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1710 { (eval echo configure
:1709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1711 ac_err
=`grep -v '^ *+' conftest.out`
1712 if test -z "$ac_err"; then
1714 eval "ac_cv_header_$ac_safe=yes"
1717 echo "configure: failed program was:" >&5
1718 cat conftest.
$ac_ext >&5
1720 eval "ac_cv_header_$ac_safe=no"
1724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1725 echo "$ac_t""yes" 1>&6
1726 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1727 cat >> confdefs.h
<<EOF
1728 #define $ac_tr_hdr 1
1732 echo "$ac_t""no" 1>&6
1736 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h
1738 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1740 echo "configure:1739: checking for $ac_hdr" >&5
1741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1744 cat > conftest.
$ac_ext <<EOF
1745 #line 1744 "configure"
1746 #include "confdefs.h"
1749 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1750 { (eval echo configure
:1749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1751 ac_err
=`grep -v '^ *+' conftest.out`
1752 if test -z "$ac_err"; then
1754 eval "ac_cv_header_$ac_safe=yes"
1757 echo "configure: failed program was:" >&5
1758 cat conftest.
$ac_ext >&5
1760 eval "ac_cv_header_$ac_safe=no"
1764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1765 echo "$ac_t""yes" 1>&6
1766 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1767 cat >> confdefs.h
<<EOF
1768 #define $ac_tr_hdr 1
1772 echo "$ac_t""no" 1>&6
1776 for ac_hdr
in sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
1778 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1780 echo "configure:1779: checking for $ac_hdr" >&5
1781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1784 cat > conftest.
$ac_ext <<EOF
1785 #line 1784 "configure"
1786 #include "confdefs.h"
1789 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1790 { (eval echo configure
:1789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1791 ac_err
=`grep -v '^ *+' conftest.out`
1792 if test -z "$ac_err"; then
1794 eval "ac_cv_header_$ac_safe=yes"
1797 echo "configure: failed program was:" >&5
1798 cat conftest.
$ac_ext >&5
1800 eval "ac_cv_header_$ac_safe=no"
1804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1805 echo "$ac_t""yes" 1>&6
1806 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1807 cat >> confdefs.h
<<EOF
1808 #define $ac_tr_hdr 1
1812 echo "$ac_t""no" 1>&6
1816 for ac_hdr
in shadow.h netinet
/tcp.h sys
/security.h security
/pam_appl.h
1818 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1819 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1820 echo "configure:1819: checking for $ac_hdr" >&5
1821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1824 cat > conftest.
$ac_ext <<EOF
1825 #line 1824 "configure"
1826 #include "confdefs.h"
1829 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1830 { (eval echo configure
:1829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1831 ac_err
=`grep -v '^ *+' conftest.out`
1832 if test -z "$ac_err"; then
1834 eval "ac_cv_header_$ac_safe=yes"
1837 echo "configure: failed program was:" >&5
1838 cat conftest.
$ac_ext >&5
1840 eval "ac_cv_header_$ac_safe=no"
1844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1845 echo "$ac_t""yes" 1>&6
1846 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1847 cat >> confdefs.h
<<EOF
1848 #define $ac_tr_hdr 1
1852 echo "$ac_t""no" 1>&6
1856 for ac_hdr
in stropts.h poll.h readline.h
history.h readline
/readline.h
1858 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1859 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1860 echo "configure:1859: checking for $ac_hdr" >&5
1861 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1862 echo $ac_n "(cached) $ac_c" 1>&6
1864 cat > conftest.
$ac_ext <<EOF
1865 #line 1864 "configure"
1866 #include "confdefs.h"
1869 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1870 { (eval echo configure
:1869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1871 ac_err
=`grep -v '^ *+' conftest.out`
1872 if test -z "$ac_err"; then
1874 eval "ac_cv_header_$ac_safe=yes"
1877 echo "configure: failed program was:" >&5
1878 cat conftest.
$ac_ext >&5
1880 eval "ac_cv_header_$ac_safe=no"
1884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1885 echo "$ac_t""yes" 1>&6
1886 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1887 cat >> confdefs.h
<<EOF
1888 #define $ac_tr_hdr 1
1892 echo "$ac_t""no" 1>&6
1896 for ac_hdr
in readline
/history.h sys
/capability.h syscall.h sys
/syscall.h
1898 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1899 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1900 echo "configure:1899: checking for $ac_hdr" >&5
1901 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1904 cat > conftest.
$ac_ext <<EOF
1905 #line 1904 "configure"
1906 #include "confdefs.h"
1909 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1910 { (eval echo configure
:1909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1911 ac_err
=`grep -v '^ *+' conftest.out`
1912 if test -z "$ac_err"; then
1914 eval "ac_cv_header_$ac_safe=yes"
1917 echo "configure: failed program was:" >&5
1918 cat conftest.
$ac_ext >&5
1920 eval "ac_cv_header_$ac_safe=no"
1924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1925 echo "$ac_t""yes" 1>&6
1926 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1927 cat >> confdefs.h
<<EOF
1928 #define $ac_tr_hdr 1
1932 echo "$ac_t""no" 1>&6
1936 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
1938 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1939 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1940 echo "configure:1939: checking for $ac_hdr" >&5
1941 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1942 echo $ac_n "(cached) $ac_c" 1>&6
1944 cat > conftest.
$ac_ext <<EOF
1945 #line 1944 "configure"
1946 #include "confdefs.h"
1949 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1950 { (eval echo configure
:1949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1951 ac_err
=`grep -v '^ *+' conftest.out`
1952 if test -z "$ac_err"; then
1954 eval "ac_cv_header_$ac_safe=yes"
1957 echo "configure: failed program was:" >&5
1958 cat conftest.
$ac_ext >&5
1960 eval "ac_cv_header_$ac_safe=no"
1964 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1965 echo "$ac_t""yes" 1>&6
1966 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1967 cat >> confdefs.h
<<EOF
1968 #define $ac_tr_hdr 1
1972 echo "$ac_t""no" 1>&6
1977 echo $ac_n "checking size of int""... $ac_c" 1>&6
1978 echo "configure:1977: checking size of int" >&5
1979 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1980 echo $ac_n "(cached) $ac_c" 1>&6
1982 if test "$cross_compiling" = yes; then
1983 ac_cv_sizeof_int
=cross
1985 cat > conftest.
$ac_ext <<EOF
1986 #line 1985 "configure"
1987 #include "confdefs.h"
1991 FILE *f=fopen("conftestval", "w");
1993 fprintf(f, "%d\n", sizeof(int));
1997 if { (eval echo configure
:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1999 ac_cv_sizeof_int
=`cat conftestval`
2001 echo "configure: failed program was:" >&5
2002 cat conftest.
$ac_ext >&5
2010 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2011 cat >> confdefs.h
<<EOF
2012 #define SIZEOF_INT $ac_cv_sizeof_int
2016 echo $ac_n "checking size of long""... $ac_c" 1>&6
2017 echo "configure:2016: checking size of long" >&5
2018 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2021 if test "$cross_compiling" = yes; then
2022 ac_cv_sizeof_long
=cross
2024 cat > conftest.
$ac_ext <<EOF
2025 #line 2024 "configure"
2026 #include "confdefs.h"
2030 FILE *f=fopen("conftestval", "w");
2032 fprintf(f, "%d\n", sizeof(long));
2036 if { (eval echo configure
:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2038 ac_cv_sizeof_long
=`cat conftestval`
2040 echo "configure: failed program was:" >&5
2041 cat conftest.
$ac_ext >&5
2049 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2050 cat >> confdefs.h
<<EOF
2051 #define SIZEOF_LONG $ac_cv_sizeof_long
2055 echo $ac_n "checking size of short""... $ac_c" 1>&6
2056 echo "configure:2055: checking size of short" >&5
2057 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2060 if test "$cross_compiling" = yes; then
2061 ac_cv_sizeof_short
=cross
2063 cat > conftest.
$ac_ext <<EOF
2064 #line 2063 "configure"
2065 #include "confdefs.h"
2069 FILE *f=fopen("conftestval", "w");
2071 fprintf(f, "%d\n", sizeof(short));
2075 if { (eval echo configure
:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2077 ac_cv_sizeof_short
=`cat conftestval`
2079 echo "configure: failed program was:" >&5
2080 cat conftest.
$ac_ext >&5
2082 ac_cv_sizeof_short
=0
2088 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2089 cat >> confdefs.h
<<EOF
2090 #define SIZEOF_SHORT $ac_cv_sizeof_short
2095 echo $ac_n "checking for working const""... $ac_c" 1>&6
2096 echo "configure:2095: checking for working const" >&5
2097 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2098 echo $ac_n "(cached) $ac_c" 1>&6
2100 cat > conftest.
$ac_ext <<EOF
2101 #line 2100 "configure"
2102 #include "confdefs.h"
2106 /* Ultrix mips cc rejects this. */
2107 typedef int charset[2]; const charset x;
2108 /* SunOS 4.1.1 cc rejects this. */
2109 char const *const *ccp;
2111 /* NEC SVR4.0.2 mips cc rejects this. */
2112 struct point {int x, y;};
2113 static struct point const zero = {0,0};
2114 /* AIX XL C 1.02.0.0 rejects this.
2115 It does not let you subtract one const X* pointer from another in an arm
2116 of an if-expression whose if-part is not a constant expression */
2117 const char *g = "string";
2118 ccp = &g + (g ? g-g : 0);
2119 /* HPUX 7.0 cc rejects these. */
2122 ccp = (char const *const *) p;
2123 { /* SCO 3.2v4 cc rejects this. */
2125 char const *s = 0 ? (char *) 0 : (char const *) 0;
2129 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2131 const int *foo = &x[0];
2134 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2135 typedef const int *iptr;
2139 { /* AIX XL C 1.02.0.0 rejects this saying
2140 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2141 struct s { int j; const int *ap[3]; };
2142 struct s *b; b->j = 5;
2144 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2150 if { (eval echo configure
:2149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2154 echo "configure: failed program was:" >&5
2155 cat conftest.
$ac_ext >&5
2162 echo "$ac_t""$ac_cv_c_const" 1>&6
2163 if test $ac_cv_c_const = no
; then
2164 cat >> confdefs.h
<<\EOF
2170 echo $ac_n "checking for inline""... $ac_c" 1>&6
2171 echo "configure:2170: checking for inline" >&5
2172 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2176 for ac_kw
in inline __inline__ __inline
; do
2177 cat > conftest.
$ac_ext <<EOF
2178 #line 2177 "configure"
2179 #include "confdefs.h"
2185 if { (eval echo configure
:2184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2187 ac_cv_c_inline
=$ac_kw; break
2189 echo "configure: failed program was:" >&5
2190 cat conftest.
$ac_ext >&5
2197 echo "$ac_t""$ac_cv_c_inline" 1>&6
2198 case "$ac_cv_c_inline" in
2200 no
) cat >> confdefs.h
<<\EOF
2204 *) cat >> confdefs.h
<<EOF
2205 #define inline $ac_cv_c_inline
2210 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2211 echo "configure:2210: checking whether byte ordering is bigendian" >&5
2212 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2213 echo $ac_n "(cached) $ac_c" 1>&6
2215 ac_cv_c_bigendian
=unknown
2216 # See if sys/param.h defines the BYTE_ORDER macro.
2217 cat > conftest.
$ac_ext <<EOF
2218 #line 2217 "configure"
2219 #include "confdefs.h"
2220 #include <sys/types.h>
2221 #include <sys/param.h>
2224 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2229 if { (eval echo configure
:2228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2231 # It does; now see whether it defined to BIG_ENDIAN or not.
2232 cat > conftest.
$ac_ext <<EOF
2233 #line 2232 "configure"
2234 #include "confdefs.h"
2235 #include <sys/types.h>
2236 #include <sys/param.h>
2239 #if BYTE_ORDER != BIG_ENDIAN
2244 if { (eval echo configure
:2243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2246 ac_cv_c_bigendian
=yes
2248 echo "configure: failed program was:" >&5
2249 cat conftest.
$ac_ext >&5
2251 ac_cv_c_bigendian
=no
2255 echo "configure: failed program was:" >&5
2256 cat conftest.
$ac_ext >&5
2259 if test $ac_cv_c_bigendian = unknown
; then
2260 if test "$cross_compiling" = yes; then
2261 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2263 cat > conftest.
$ac_ext <<EOF
2264 #line 2263 "configure"
2265 #include "confdefs.h"
2267 /* Are we little or big endian? From Harbison&Steele. */
2271 char c[sizeof (long)];
2274 exit (u.c[sizeof (long) - 1] == 1);
2277 if { (eval echo configure
:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2279 ac_cv_c_bigendian
=no
2281 echo "configure: failed program was:" >&5
2282 cat conftest.
$ac_ext >&5
2284 ac_cv_c_bigendian
=yes
2292 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2293 if test $ac_cv_c_bigendian = yes; then
2294 cat >> confdefs.h
<<\EOF
2295 #define WORDS_BIGENDIAN 1
2300 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2301 echo "configure:2300: checking whether char is unsigned" >&5
2302 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 if test "$GCC" = yes; then
2306 # GCC predefines this symbol on systems where it applies.
2307 cat > conftest.
$ac_ext <<EOF
2308 #line 2307 "configure"
2309 #include "confdefs.h"
2310 #ifdef __CHAR_UNSIGNED__
2315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2316 egrep "yes" >/dev
/null
2>&1; then
2318 ac_cv_c_char_unsigned
=yes
2321 ac_cv_c_char_unsigned
=no
2326 if test "$cross_compiling" = yes; then
2327 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2329 cat > conftest.
$ac_ext <<EOF
2330 #line 2329 "configure"
2331 #include "confdefs.h"
2332 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2333 #if !defined(__STDC__) || __STDC__ != 1
2337 volatile char c = 255; exit(c < 0);
2340 if { (eval echo configure
:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2342 ac_cv_c_char_unsigned
=yes
2344 echo "configure: failed program was:" >&5
2345 cat conftest.
$ac_ext >&5
2347 ac_cv_c_char_unsigned
=no
2355 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2356 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2357 cat >> confdefs.h
<<\EOF
2358 #define __CHAR_UNSIGNED__ 1
2364 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2365 echo "configure:2364: checking return type of signal handlers" >&5
2366 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2367 echo $ac_n "(cached) $ac_c" 1>&6
2369 cat > conftest.
$ac_ext <<EOF
2370 #line 2369 "configure"
2371 #include "confdefs.h"
2372 #include <sys/types.h>
2378 extern "C" void (*signal (int, void (*)(int)))(int);
2380 void (*signal ()) ();
2387 if { (eval echo configure
:2386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389 ac_cv_type_signal
=void
2391 echo "configure: failed program was:" >&5
2392 cat conftest.
$ac_ext >&5
2394 ac_cv_type_signal
=int
2399 echo "$ac_t""$ac_cv_type_signal" 1>&6
2400 cat >> confdefs.h
<<EOF
2401 #define RETSIGTYPE $ac_cv_type_signal
2405 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2406 echo "configure:2405: checking for uid_t in sys/types.h" >&5
2407 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2410 cat > conftest.
$ac_ext <<EOF
2411 #line 2410 "configure"
2412 #include "confdefs.h"
2413 #include <sys/types.h>
2415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2416 egrep "uid_t" >/dev
/null
2>&1; then
2418 ac_cv_type_uid_t
=yes
2427 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2428 if test $ac_cv_type_uid_t = no
; then
2429 cat >> confdefs.h
<<\EOF
2433 cat >> confdefs.h
<<\EOF
2439 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2440 echo "configure:2439: checking for mode_t" >&5
2441 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2444 cat > conftest.
$ac_ext <<EOF
2445 #line 2444 "configure"
2446 #include "confdefs.h"
2447 #include <sys/types.h>
2453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2454 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2456 ac_cv_type_mode_t
=yes
2459 ac_cv_type_mode_t
=no
2464 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2465 if test $ac_cv_type_mode_t = no
; then
2466 cat >> confdefs.h
<<\EOF
2472 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2473 echo "configure:2472: checking for off_t" >&5
2474 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2477 cat > conftest.
$ac_ext <<EOF
2478 #line 2477 "configure"
2479 #include "confdefs.h"
2480 #include <sys/types.h>
2486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2487 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2489 ac_cv_type_off_t
=yes
2497 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2498 if test $ac_cv_type_off_t = no
; then
2499 cat >> confdefs.h
<<\EOF
2505 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2506 echo "configure:2505: checking for size_t" >&5
2507 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2510 cat > conftest.
$ac_ext <<EOF
2511 #line 2510 "configure"
2512 #include "confdefs.h"
2513 #include <sys/types.h>
2519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2520 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2522 ac_cv_type_size_t
=yes
2525 ac_cv_type_size_t
=no
2530 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2531 if test $ac_cv_type_size_t = no
; then
2532 cat >> confdefs.h
<<\EOF
2533 #define size_t unsigned
2538 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2539 echo "configure:2538: checking for pid_t" >&5
2540 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2543 cat > conftest.
$ac_ext <<EOF
2544 #line 2543 "configure"
2545 #include "confdefs.h"
2546 #include <sys/types.h>
2552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2553 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2555 ac_cv_type_pid_t
=yes
2563 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2564 if test $ac_cv_type_pid_t = no
; then
2565 cat >> confdefs.h
<<\EOF
2571 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2572 echo "configure:2571: checking for st_rdev in struct stat" >&5
2573 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6
2576 cat > conftest.
$ac_ext <<EOF
2577 #line 2576 "configure"
2578 #include "confdefs.h"
2579 #include <sys/types.h>
2580 #include <sys/stat.h>
2582 struct stat s; s.st_rdev;
2585 if { (eval echo configure
:2584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2587 ac_cv_struct_st_rdev
=yes
2589 echo "configure: failed program was:" >&5
2590 cat conftest.
$ac_ext >&5
2592 ac_cv_struct_st_rdev
=no
2597 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2598 if test $ac_cv_struct_st_rdev = yes; then
2599 cat >> confdefs.h
<<\EOF
2600 #define HAVE_ST_RDEV 1
2605 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
2606 echo "configure:2605: checking for d_off in dirent" >&5
2607 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
2608 echo $ac_n "(cached) $ac_c" 1>&6
2610 cat > conftest.
$ac_ext <<EOF
2611 #line 2610 "configure"
2612 #include "confdefs.h"
2615 #include <sys/types.h>
2618 struct dirent d; d.d_off;
2621 if { (eval echo configure
:2620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2623 ac_cv_dirent_d_off
=yes
2625 echo "configure: failed program was:" >&5
2626 cat conftest.
$ac_ext >&5
2628 ac_cv_dirent_d_off
=no
2633 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
2634 if test $ac_cv_dirent_d_off = yes; then
2635 cat >> confdefs.h
<<\EOF
2636 #define HAVE_DIRENT_D_OFF 1
2641 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2642 echo "configure:2641: checking for ino_t" >&5
2643 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2644 echo $ac_n "(cached) $ac_c" 1>&6
2646 cat > conftest.
$ac_ext <<EOF
2647 #line 2646 "configure"
2648 #include "confdefs.h"
2649 #include <sys/types.h>
2655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2656 egrep "ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2658 ac_cv_type_ino_t
=yes
2666 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2667 if test $ac_cv_type_ino_t = no
; then
2668 cat >> confdefs.h
<<\EOF
2669 #define ino_t unsigned
2674 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
2675 echo "configure:2674: checking for loff_t" >&5
2676 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2679 cat > conftest.
$ac_ext <<EOF
2680 #line 2679 "configure"
2681 #include "confdefs.h"
2682 #include <sys/types.h>
2688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2689 egrep "loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2691 ac_cv_type_loff_t
=yes
2694 ac_cv_type_loff_t
=no
2699 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
2700 if test $ac_cv_type_loff_t = no
; then
2701 cat >> confdefs.h
<<\EOF
2702 #define loff_t off_t
2707 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
2708 echo "configure:2707: checking for offset_t" >&5
2709 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
2710 echo $ac_n "(cached) $ac_c" 1>&6
2712 cat > conftest.
$ac_ext <<EOF
2713 #line 2712 "configure"
2714 #include "confdefs.h"
2715 #include <sys/types.h>
2721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2722 egrep "offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2724 ac_cv_type_offset_t
=yes
2727 ac_cv_type_offset_t
=no
2732 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
2733 if test $ac_cv_type_offset_t = no
; then
2734 cat >> confdefs.h
<<\EOF
2735 #define offset_t loff_t
2740 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2741 echo "configure:2740: checking for ssize_t" >&5
2742 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2745 cat > conftest.
$ac_ext <<EOF
2746 #line 2745 "configure"
2747 #include "confdefs.h"
2748 #include <sys/types.h>
2754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2755 egrep "ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2757 ac_cv_type_ssize_t
=yes
2760 ac_cv_type_ssize_t
=no
2765 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2766 if test $ac_cv_type_ssize_t = no
; then
2767 cat >> confdefs.h
<<\EOF
2774 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
2775 echo "configure:2774: checking for errno in errno.h" >&5
2776 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2780 cat > conftest.
$ac_ext <<EOF
2781 #line 2780 "configure"
2782 #include "confdefs.h"
2788 if { (eval echo configure
:2787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2792 echo "configure: failed program was:" >&5
2793 cat conftest.
$ac_ext >&5
2795 samba_cv_have_errno_decl
=no
2800 echo "$ac_t""$samba_cv_errno" 1>&6
2801 if test x
"$samba_cv_errno" = x
"yes"; then
2802 cat >> confdefs.h
<<\EOF
2803 #define HAVE_ERRNO_DECL 1
2808 # stupid glibc has the functions but no declaration. grrrr.
2809 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
2810 echo "configure:2809: checking for setresuid declaration" >&5
2811 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2815 cat > conftest.
$ac_ext <<EOF
2816 #line 2815 "configure"
2817 #include "confdefs.h"
2820 int i = (int)setresuid
2823 if { (eval echo configure
:2822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2825 samba_cv_have_setresuid_decl
=yes
2827 echo "configure: failed program was:" >&5
2828 cat conftest.
$ac_ext >&5
2830 samba_cv_have_setresuid_decl
=no
2835 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
2836 if test x
"$samba_cv_have_setresuid_decl" = x
"yes"; then
2837 cat >> confdefs.h
<<\EOF
2838 #define HAVE_SETRESUID_DECL 1
2843 # stupid glibc has the functions but no declaration. grrrr.
2844 echo $ac_n "checking for crypt declaration""... $ac_c" 1>&6
2845 echo "configure:2844: checking for crypt declaration" >&5
2846 if eval "test \"`echo '$''{'samba_cv_have_crypt_decl'+set}'`\" = set"; then
2847 echo $ac_n "(cached) $ac_c" 1>&6
2850 cat > conftest.
$ac_ext <<EOF
2851 #line 2850 "configure"
2852 #include "confdefs.h"
2858 if { (eval echo configure
:2857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2860 samba_cv_have_crypt_decl
=yes
2862 echo "configure: failed program was:" >&5
2863 cat conftest.
$ac_ext >&5
2865 samba_cv_have_crypt_decl
=no
2870 echo "$ac_t""$samba_cv_have_crypt_decl" 1>&6
2871 if test x
"$samba_cv_have_crypt_decl" = x
"yes"; then
2872 cat >> confdefs.h
<<\EOF
2873 #define HAVE_CRYPT_DECL 1
2878 # and glibc has setresuid under linux but the function does
2879 # nothing until kernel 2.1.44! very dumb.
2880 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
2881 echo "configure:2880: checking for real setresuid" >&5
2882 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
2883 echo $ac_n "(cached) $ac_c" 1>&6
2886 if test "$cross_compiling" = yes; then
2887 samba_cv_have_setresuid
=cross
2889 cat > conftest.
$ac_ext <<EOF
2890 #line 2889 "configure"
2891 #include "confdefs.h"
2893 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
2895 if { (eval echo configure
:2894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2897 samba_cv_have_setresuid
=yes
2899 echo "configure: failed program was:" >&5
2900 cat conftest.
$ac_ext >&5
2902 samba_cv_have_setresuid
=no
2909 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
2910 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
2911 cat >> confdefs.h
<<\EOF
2912 #define HAVE_SETRESUID 1
2917 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2918 echo "configure:2917: checking for 8-bit clean memcmp" >&5
2919 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2922 if test "$cross_compiling" = yes; then
2923 ac_cv_func_memcmp_clean
=no
2925 cat > conftest.
$ac_ext <<EOF
2926 #line 2925 "configure"
2927 #include "confdefs.h"
2931 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2932 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2936 if { (eval echo configure
:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2938 ac_cv_func_memcmp_clean
=yes
2940 echo "configure: failed program was:" >&5
2941 cat conftest.
$ac_ext >&5
2943 ac_cv_func_memcmp_clean
=no
2950 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2951 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.o"
2954 ###############################################
2955 # test for where we get crypt() from
2956 for ac_func
in crypt
2958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2959 echo "configure:2958: checking for $ac_func" >&5
2960 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2961 echo $ac_n "(cached) $ac_c" 1>&6
2963 cat > conftest.
$ac_ext <<EOF
2964 #line 2963 "configure"
2965 #include "confdefs.h"
2966 /* System header to define __stub macros and hopefully few prototypes,
2967 which can conflict with char $ac_func(); below. */
2969 /* Override any gcc2 internal prototype to avoid an error. */
2970 /* We use char because int might match the return type of a gcc2
2971 builtin and then its argument prototype would still apply. */
2976 /* The GNU C library defines this for functions which it implements
2977 to always fail with ENOSYS. Some functions are actually named
2978 something starting with __ and the normal name is an alias. */
2979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2987 if { (eval echo configure
:2986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2989 eval "ac_cv_func_$ac_func=yes"
2991 echo "configure: failed program was:" >&5
2992 cat conftest.
$ac_ext >&5
2994 eval "ac_cv_func_$ac_func=no"
2999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3000 echo "$ac_t""yes" 1>&6
3001 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3002 cat >> confdefs.h
<<EOF
3003 #define $ac_tr_func 1
3007 echo "$ac_t""no" 1>&6
3011 if test x
"$ac_cv_func_crypt" = x
"no"; then
3012 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3013 echo "configure:3012: checking for crypt in -lcrypt" >&5
3014 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3018 ac_save_LIBS
="$LIBS"
3019 LIBS
="-lcrypt $LIBS"
3020 cat > conftest.
$ac_ext <<EOF
3021 #line 3020 "configure"
3022 #include "confdefs.h"
3023 /* Override any gcc2 internal prototype to avoid an error. */
3024 /* We use char because int might match the return type of a gcc2
3025 builtin and then its argument prototype would still apply. */
3032 if { (eval echo configure
:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3034 eval "ac_cv_lib_$ac_lib_var=yes"
3036 echo "configure: failed program was:" >&5
3037 cat conftest.
$ac_ext >&5
3039 eval "ac_cv_lib_$ac_lib_var=no"
3042 LIBS
="$ac_save_LIBS"
3045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3046 echo "$ac_t""yes" 1>&6
3047 LIBS
="$LIBS -lcrypt";
3048 cat >> confdefs.h
<<\EOF
3049 #define HAVE_CRYPT 1
3053 echo "$ac_t""no" 1>&6
3059 ###############################################
3060 # test for where we get pam_authenticate() from
3061 # might need libdl for this to work
3062 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
3063 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3064 echo "configure:3063: checking for main in -ldl" >&5
3065 ac_lib_var
=`echo dl'_'main | sed 'y%./+-%__p_%'`
3066 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3067 echo $ac_n "(cached) $ac_c" 1>&6
3069 ac_save_LIBS
="$LIBS"
3071 cat > conftest.
$ac_ext <<EOF
3072 #line 3071 "configure"
3073 #include "confdefs.h"
3079 if { (eval echo configure
:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3081 eval "ac_cv_lib_$ac_lib_var=yes"
3083 echo "configure: failed program was:" >&5
3084 cat conftest.
$ac_ext >&5
3086 eval "ac_cv_lib_$ac_lib_var=no"
3089 LIBS
="$ac_save_LIBS"
3092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3093 echo "$ac_t""yes" 1>&6
3094 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3095 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3096 cat >> confdefs.h
<<EOF
3097 #define $ac_tr_lib 1
3103 echo "$ac_t""no" 1>&6
3107 for ac_func
in pam_authenticate
3109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3110 echo "configure:3109: checking for $ac_func" >&5
3111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3112 echo $ac_n "(cached) $ac_c" 1>&6
3114 cat > conftest.
$ac_ext <<EOF
3115 #line 3114 "configure"
3116 #include "confdefs.h"
3117 /* System header to define __stub macros and hopefully few prototypes,
3118 which can conflict with char $ac_func(); below. */
3120 /* Override any gcc2 internal prototype to avoid an error. */
3121 /* We use char because int might match the return type of a gcc2
3122 builtin and then its argument prototype would still apply. */
3127 /* The GNU C library defines this for functions which it implements
3128 to always fail with ENOSYS. Some functions are actually named
3129 something starting with __ and the normal name is an alias. */
3130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3138 if { (eval echo configure
:3137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3140 eval "ac_cv_func_$ac_func=yes"
3142 echo "configure: failed program was:" >&5
3143 cat conftest.
$ac_ext >&5
3145 eval "ac_cv_func_$ac_func=no"
3150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3151 echo "$ac_t""yes" 1>&6
3152 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3153 cat >> confdefs.h
<<EOF
3154 #define $ac_tr_func 1
3158 echo "$ac_t""no" 1>&6
3162 if test x
"$ac_cv_func_pam_authenticate" = x
"no"; then
3163 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
3164 echo "configure:3163: checking for pam_authenticate in -lpam" >&5
3165 ac_lib_var
=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
3166 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3167 echo $ac_n "(cached) $ac_c" 1>&6
3169 ac_save_LIBS
="$LIBS"
3171 cat > conftest.
$ac_ext <<EOF
3172 #line 3171 "configure"
3173 #include "confdefs.h"
3174 /* Override any gcc2 internal prototype to avoid an error. */
3175 /* We use char because int might match the return type of a gcc2
3176 builtin and then its argument prototype would still apply. */
3177 char pam_authenticate();
3183 if { (eval echo configure
:3182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3185 eval "ac_cv_lib_$ac_lib_var=yes"
3187 echo "configure: failed program was:" >&5
3188 cat conftest.
$ac_ext >&5
3190 eval "ac_cv_lib_$ac_lib_var=no"
3193 LIBS
="$ac_save_LIBS"
3196 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3197 echo "$ac_t""yes" 1>&6
3199 cat >> confdefs.h
<<\EOF
3200 #define HAVE_PAM_AUTHENTICATE 1
3204 echo "$ac_t""no" 1>&6
3210 ###############################################
3211 # test for where we get readline() from
3212 if test "$ac_cv_header_readline_h" = "yes" ||
3213 test "$ac_cv_header_readline_readline_h" = "yes"; then
3214 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3215 echo "configure:3214: checking for readline in -lreadline" >&5
3216 ac_lib_var
=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3217 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3220 ac_save_LIBS
="$LIBS"
3221 LIBS
="-lreadline $LIBS"
3222 cat > conftest.
$ac_ext <<EOF
3223 #line 3222 "configure"
3224 #include "confdefs.h"
3225 /* Override any gcc2 internal prototype to avoid an error. */
3226 /* We use char because int might match the return type of a gcc2
3227 builtin and then its argument prototype would still apply. */
3234 if { (eval echo configure
:3233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3236 eval "ac_cv_lib_$ac_lib_var=yes"
3238 echo "configure: failed program was:" >&5
3239 cat conftest.
$ac_ext >&5
3241 eval "ac_cv_lib_$ac_lib_var=no"
3244 LIBS
="$ac_save_LIBS"
3247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3248 echo "$ac_t""yes" 1>&6
3249 ac_tr_lib
=HAVE_LIB
`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3250 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3251 cat >> confdefs.h
<<EOF
3252 #define $ac_tr_lib 1
3255 LIBS
="-lreadline $LIBS"
3258 echo "$ac_t""no" 1>&6
3264 # The following test taken from the cvs sources
3265 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3266 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3267 # libsocket.so which has a bad implementation of gethostbyname (it
3268 # only looks in /etc/hosts), so we only look for -lsocket if we need
3270 for ac_func
in connect
3272 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3273 echo "configure:3272: checking for $ac_func" >&5
3274 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3275 echo $ac_n "(cached) $ac_c" 1>&6
3277 cat > conftest.
$ac_ext <<EOF
3278 #line 3277 "configure"
3279 #include "confdefs.h"
3280 /* System header to define __stub macros and hopefully few prototypes,
3281 which can conflict with char $ac_func(); below. */
3283 /* Override any gcc2 internal prototype to avoid an error. */
3284 /* We use char because int might match the return type of a gcc2
3285 builtin and then its argument prototype would still apply. */
3290 /* The GNU C library defines this for functions which it implements
3291 to always fail with ENOSYS. Some functions are actually named
3292 something starting with __ and the normal name is an alias. */
3293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3301 if { (eval echo configure
:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3303 eval "ac_cv_func_$ac_func=yes"
3305 echo "configure: failed program was:" >&5
3306 cat conftest.
$ac_ext >&5
3308 eval "ac_cv_func_$ac_func=no"
3313 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3314 echo "$ac_t""yes" 1>&6
3315 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3316 cat >> confdefs.h
<<EOF
3317 #define $ac_tr_func 1
3321 echo "$ac_t""no" 1>&6
3325 if test x
"$ac_cv_func_connect" = x
"no"; then
3328 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
3329 echo "configure:3328: checking for printf in -lnsl_s" >&5
3330 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
3331 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3332 echo $ac_n "(cached) $ac_c" 1>&6
3334 ac_save_LIBS
="$LIBS"
3335 LIBS
="-lnsl_s $LIBS"
3336 cat > conftest.
$ac_ext <<EOF
3337 #line 3336 "configure"
3338 #include "confdefs.h"
3339 /* Override any gcc2 internal prototype to avoid an error. */
3340 /* We use char because int might match the return type of a gcc2
3341 builtin and then its argument prototype would still apply. */
3348 if { (eval echo configure
:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3350 eval "ac_cv_lib_$ac_lib_var=yes"
3352 echo "configure: failed program was:" >&5
3353 cat conftest.
$ac_ext >&5
3355 eval "ac_cv_lib_$ac_lib_var=no"
3358 LIBS
="$ac_save_LIBS"
3361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3362 echo "$ac_t""yes" 1>&6
3363 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3364 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3365 cat >> confdefs.h
<<EOF
3366 #define $ac_tr_lib 1
3369 LIBS
="-lnsl_s $LIBS"
3372 echo "$ac_t""no" 1>&6
3378 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3379 echo "configure:3378: checking for printf in -lnsl" >&5
3380 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3382 echo $ac_n "(cached) $ac_c" 1>&6
3384 ac_save_LIBS
="$LIBS"
3386 cat > conftest.
$ac_ext <<EOF
3387 #line 3386 "configure"
3388 #include "confdefs.h"
3389 /* Override any gcc2 internal prototype to avoid an error. */
3390 /* We use char because int might match the return type of a gcc2
3391 builtin and then its argument prototype would still apply. */
3398 if { (eval echo configure
:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3400 eval "ac_cv_lib_$ac_lib_var=yes"
3402 echo "configure: failed program was:" >&5
3403 cat conftest.
$ac_ext >&5
3405 eval "ac_cv_lib_$ac_lib_var=no"
3408 LIBS
="$ac_save_LIBS"
3411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3412 echo "$ac_t""yes" 1>&6
3413 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3414 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3415 cat >> confdefs.h
<<EOF
3416 #define $ac_tr_lib 1
3422 echo "$ac_t""no" 1>&6
3428 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3429 echo "configure:3428: checking for connect in -lsocket" >&5
3430 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3432 echo $ac_n "(cached) $ac_c" 1>&6
3434 ac_save_LIBS
="$LIBS"
3435 LIBS
="-lsocket $LIBS"
3436 cat > conftest.
$ac_ext <<EOF
3437 #line 3436 "configure"
3438 #include "confdefs.h"
3439 /* Override any gcc2 internal prototype to avoid an error. */
3440 /* We use char because int might match the return type of a gcc2
3441 builtin and then its argument prototype would still apply. */
3448 if { (eval echo configure
:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3450 eval "ac_cv_lib_$ac_lib_var=yes"
3452 echo "configure: failed program was:" >&5
3453 cat conftest.
$ac_ext >&5
3455 eval "ac_cv_lib_$ac_lib_var=no"
3458 LIBS
="$ac_save_LIBS"
3461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3462 echo "$ac_t""yes" 1>&6
3463 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3464 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3465 cat >> confdefs.h
<<EOF
3466 #define $ac_tr_lib 1
3469 LIBS
="-lsocket $LIBS"
3472 echo "$ac_t""no" 1>&6
3478 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3479 echo "configure:3478: checking for connect in -linet" >&5
3480 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3481 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3482 echo $ac_n "(cached) $ac_c" 1>&6
3484 ac_save_LIBS
="$LIBS"
3486 cat > conftest.
$ac_ext <<EOF
3487 #line 3486 "configure"
3488 #include "confdefs.h"
3489 /* Override any gcc2 internal prototype to avoid an error. */
3490 /* We use char because int might match the return type of a gcc2
3491 builtin and then its argument prototype would still apply. */
3498 if { (eval echo configure
:3497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3500 eval "ac_cv_lib_$ac_lib_var=yes"
3502 echo "configure: failed program was:" >&5
3503 cat conftest.
$ac_ext >&5
3505 eval "ac_cv_lib_$ac_lib_var=no"
3508 LIBS
="$ac_save_LIBS"
3511 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3512 echo "$ac_t""yes" 1>&6
3513 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3514 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3515 cat >> confdefs.h
<<EOF
3516 #define $ac_tr_lib 1
3522 echo "$ac_t""no" 1>&6
3526 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
3527 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
3528 # ac_cv_func_connect=yes
3529 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
3530 cat >> confdefs.h
<<\EOF
3531 #define HAVE_CONNECT 1
3538 for ac_func
in waitpid getcwd strdup strtoul strerror chown
chmod chroot
3540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3541 echo "configure:3540: checking for $ac_func" >&5
3542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3543 echo $ac_n "(cached) $ac_c" 1>&6
3545 cat > conftest.
$ac_ext <<EOF
3546 #line 3545 "configure"
3547 #include "confdefs.h"
3548 /* System header to define __stub macros and hopefully few prototypes,
3549 which can conflict with char $ac_func(); below. */
3551 /* Override any gcc2 internal prototype to avoid an error. */
3552 /* We use char because int might match the return type of a gcc2
3553 builtin and then its argument prototype would still apply. */
3558 /* The GNU C library defines this for functions which it implements
3559 to always fail with ENOSYS. Some functions are actually named
3560 something starting with __ and the normal name is an alias. */
3561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3569 if { (eval echo configure
:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3571 eval "ac_cv_func_$ac_func=yes"
3573 echo "configure: failed program was:" >&5
3574 cat conftest.
$ac_ext >&5
3576 eval "ac_cv_func_$ac_func=no"
3581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3582 echo "$ac_t""yes" 1>&6
3583 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3584 cat >> confdefs.h
<<EOF
3585 #define $ac_tr_func 1
3589 echo "$ac_t""no" 1>&6
3593 for ac_func
in fstat strchr utime utimes getrlimit fsync execl bzero memset
3595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3596 echo "configure:3595: checking for $ac_func" >&5
3597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3598 echo $ac_n "(cached) $ac_c" 1>&6
3600 cat > conftest.
$ac_ext <<EOF
3601 #line 3600 "configure"
3602 #include "confdefs.h"
3603 /* System header to define __stub macros and hopefully few prototypes,
3604 which can conflict with char $ac_func(); below. */
3606 /* Override any gcc2 internal prototype to avoid an error. */
3607 /* We use char because int might match the return type of a gcc2
3608 builtin and then its argument prototype would still apply. */
3613 /* The GNU C library defines this for functions which it implements
3614 to always fail with ENOSYS. Some functions are actually named
3615 something starting with __ and the normal name is an alias. */
3616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3624 if { (eval echo configure
:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3626 eval "ac_cv_func_$ac_func=yes"
3628 echo "configure: failed program was:" >&5
3629 cat conftest.
$ac_ext >&5
3631 eval "ac_cv_func_$ac_func=no"
3636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3637 echo "$ac_t""yes" 1>&6
3638 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3639 cat >> confdefs.h
<<EOF
3640 #define $ac_tr_func 1
3644 echo "$ac_t""no" 1>&6
3648 for ac_func
in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
3650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3651 echo "configure:3650: checking for $ac_func" >&5
3652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3655 cat > conftest.
$ac_ext <<EOF
3656 #line 3655 "configure"
3657 #include "confdefs.h"
3658 /* System header to define __stub macros and hopefully few prototypes,
3659 which can conflict with char $ac_func(); below. */
3661 /* Override any gcc2 internal prototype to avoid an error. */
3662 /* We use char because int might match the return type of a gcc2
3663 builtin and then its argument prototype would still apply. */
3668 /* The GNU C library defines this for functions which it implements
3669 to always fail with ENOSYS. Some functions are actually named
3670 something starting with __ and the normal name is an alias. */
3671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3679 if { (eval echo configure
:3678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3681 eval "ac_cv_func_$ac_func=yes"
3683 echo "configure: failed program was:" >&5
3684 cat conftest.
$ac_ext >&5
3686 eval "ac_cv_func_$ac_func=no"
3691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3692 echo "$ac_t""yes" 1>&6
3693 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3694 cat >> confdefs.h
<<EOF
3695 #define $ac_tr_func 1
3699 echo "$ac_t""no" 1>&6
3703 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
3705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3706 echo "configure:3705: checking for $ac_func" >&5
3707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3708 echo $ac_n "(cached) $ac_c" 1>&6
3710 cat > conftest.
$ac_ext <<EOF
3711 #line 3710 "configure"
3712 #include "confdefs.h"
3713 /* System header to define __stub macros and hopefully few prototypes,
3714 which can conflict with char $ac_func(); below. */
3716 /* Override any gcc2 internal prototype to avoid an error. */
3717 /* We use char because int might match the return type of a gcc2
3718 builtin and then its argument prototype would still apply. */
3723 /* The GNU C library defines this for functions which it implements
3724 to always fail with ENOSYS. Some functions are actually named
3725 something starting with __ and the normal name is an alias. */
3726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3734 if { (eval echo configure
:3733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3736 eval "ac_cv_func_$ac_func=yes"
3738 echo "configure: failed program was:" >&5
3739 cat conftest.
$ac_ext >&5
3741 eval "ac_cv_func_$ac_func=no"
3746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3747 echo "$ac_t""yes" 1>&6
3748 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3749 cat >> confdefs.h
<<EOF
3750 #define $ac_tr_func 1
3754 echo "$ac_t""no" 1>&6
3758 for ac_func
in initgroups
select rdchk getgrnam pathconf
3760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3761 echo "configure:3760: checking for $ac_func" >&5
3762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3763 echo $ac_n "(cached) $ac_c" 1>&6
3765 cat > conftest.
$ac_ext <<EOF
3766 #line 3765 "configure"
3767 #include "confdefs.h"
3768 /* System header to define __stub macros and hopefully few prototypes,
3769 which can conflict with char $ac_func(); below. */
3771 /* Override any gcc2 internal prototype to avoid an error. */
3772 /* We use char because int might match the return type of a gcc2
3773 builtin and then its argument prototype would still apply. */
3778 /* The GNU C library defines this for functions which it implements
3779 to always fail with ENOSYS. Some functions are actually named
3780 something starting with __ and the normal name is an alias. */
3781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3789 if { (eval echo configure
:3788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3791 eval "ac_cv_func_$ac_func=yes"
3793 echo "configure: failed program was:" >&5
3794 cat conftest.
$ac_ext >&5
3796 eval "ac_cv_func_$ac_func=no"
3801 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3802 echo "$ac_t""yes" 1>&6
3803 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3804 cat >> confdefs.h
<<EOF
3805 #define $ac_tr_func 1
3809 echo "$ac_t""no" 1>&6
3813 for ac_func
in setuidx setgroups mktime rename ftruncate stat64 fstat64 lstat64 fopen64
3815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3816 echo "configure:3815: checking for $ac_func" >&5
3817 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
3820 cat > conftest.
$ac_ext <<EOF
3821 #line 3820 "configure"
3822 #include "confdefs.h"
3823 /* System header to define __stub macros and hopefully few prototypes,
3824 which can conflict with char $ac_func(); below. */
3826 /* Override any gcc2 internal prototype to avoid an error. */
3827 /* We use char because int might match the return type of a gcc2
3828 builtin and then its argument prototype would still apply. */
3833 /* The GNU C library defines this for functions which it implements
3834 to always fail with ENOSYS. Some functions are actually named
3835 something starting with __ and the normal name is an alias. */
3836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3844 if { (eval echo configure
:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3846 eval "ac_cv_func_$ac_func=yes"
3848 echo "configure: failed program was:" >&5
3849 cat conftest.
$ac_ext >&5
3851 eval "ac_cv_func_$ac_func=no"
3856 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3857 echo "$ac_t""yes" 1>&6
3858 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3859 cat >> confdefs.h
<<EOF
3860 #define $ac_tr_func 1
3864 echo "$ac_t""no" 1>&6
3868 for ac_func
in atexit grantpt dup2 lseek64 ftruncate64
3870 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3871 echo "configure:3870: checking for $ac_func" >&5
3872 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3873 echo $ac_n "(cached) $ac_c" 1>&6
3875 cat > conftest.
$ac_ext <<EOF
3876 #line 3875 "configure"
3877 #include "confdefs.h"
3878 /* System header to define __stub macros and hopefully few prototypes,
3879 which can conflict with char $ac_func(); below. */
3881 /* Override any gcc2 internal prototype to avoid an error. */
3882 /* We use char because int might match the return type of a gcc2
3883 builtin and then its argument prototype would still apply. */
3888 /* The GNU C library defines this for functions which it implements
3889 to always fail with ENOSYS. Some functions are actually named
3890 something starting with __ and the normal name is an alias. */
3891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3899 if { (eval echo configure
:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3901 eval "ac_cv_func_$ac_func=yes"
3903 echo "configure: failed program was:" >&5
3904 cat conftest.
$ac_ext >&5
3906 eval "ac_cv_func_$ac_func=no"
3911 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3912 echo "$ac_t""yes" 1>&6
3913 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3914 cat >> confdefs.h
<<EOF
3915 #define $ac_tr_func 1
3919 echo "$ac_t""no" 1>&6
3923 for ac_func
in fseek64 ftell64 setluid yp_get_default_domain getpwanam
3925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3926 echo "configure:3925: checking for $ac_func" >&5
3927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3928 echo $ac_n "(cached) $ac_c" 1>&6
3930 cat > conftest.
$ac_ext <<EOF
3931 #line 3930 "configure"
3932 #include "confdefs.h"
3933 /* System header to define __stub macros and hopefully few prototypes,
3934 which can conflict with char $ac_func(); below. */
3936 /* Override any gcc2 internal prototype to avoid an error. */
3937 /* We use char because int might match the return type of a gcc2
3938 builtin and then its argument prototype would still apply. */
3943 /* The GNU C library defines this for functions which it implements
3944 to always fail with ENOSYS. Some functions are actually named
3945 something starting with __ and the normal name is an alias. */
3946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3954 if { (eval echo configure
:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3956 eval "ac_cv_func_$ac_func=yes"
3958 echo "configure: failed program was:" >&5
3959 cat conftest.
$ac_ext >&5
3961 eval "ac_cv_func_$ac_func=no"
3966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3967 echo "$ac_t""yes" 1>&6
3968 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3969 cat >> confdefs.h
<<EOF
3970 #define $ac_tr_func 1
3974 echo "$ac_t""no" 1>&6
3978 for ac_func
in srandom random srand rand setenv mmap64
3980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3981 echo "configure:3980: checking for $ac_func" >&5
3982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3983 echo $ac_n "(cached) $ac_c" 1>&6
3985 cat > conftest.
$ac_ext <<EOF
3986 #line 3985 "configure"
3987 #include "confdefs.h"
3988 /* System header to define __stub macros and hopefully few prototypes,
3989 which can conflict with char $ac_func(); below. */
3991 /* Override any gcc2 internal prototype to avoid an error. */
3992 /* We use char because int might match the return type of a gcc2
3993 builtin and then its argument prototype would still apply. */
3998 /* The GNU C library defines this for functions which it implements
3999 to always fail with ENOSYS. Some functions are actually named
4000 something starting with __ and the normal name is an alias. */
4001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4009 if { (eval echo configure
:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4011 eval "ac_cv_func_$ac_func=yes"
4013 echo "configure: failed program was:" >&5
4014 cat conftest.
$ac_ext >&5
4016 eval "ac_cv_func_$ac_func=no"
4021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4022 echo "$ac_t""yes" 1>&6
4023 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4024 cat >> confdefs.h
<<EOF
4025 #define $ac_tr_func 1
4029 echo "$ac_t""no" 1>&6
4033 # syscall() is needed for smbwrapper.
4034 for ac_func
in syscall
4036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4037 echo "configure:4036: checking for $ac_func" >&5
4038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4039 echo $ac_n "(cached) $ac_c" 1>&6
4041 cat > conftest.
$ac_ext <<EOF
4042 #line 4041 "configure"
4043 #include "confdefs.h"
4044 /* System header to define __stub macros and hopefully few prototypes,
4045 which can conflict with char $ac_func(); below. */
4047 /* Override any gcc2 internal prototype to avoid an error. */
4048 /* We use char because int might match the return type of a gcc2
4049 builtin and then its argument prototype would still apply. */
4054 /* The GNU C library defines this for functions which it implements
4055 to always fail with ENOSYS. Some functions are actually named
4056 something starting with __ and the normal name is an alias. */
4057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4065 if { (eval echo configure
:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4067 eval "ac_cv_func_$ac_func=yes"
4069 echo "configure: failed program was:" >&5
4070 cat conftest.
$ac_ext >&5
4072 eval "ac_cv_func_$ac_func=no"
4077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4078 echo "$ac_t""yes" 1>&6
4079 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4080 cat >> confdefs.h
<<EOF
4081 #define $ac_tr_func 1
4085 echo "$ac_t""no" 1>&6
4090 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
4092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4093 echo "configure:4092: checking for $ac_func" >&5
4094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4095 echo $ac_n "(cached) $ac_c" 1>&6
4097 cat > conftest.
$ac_ext <<EOF
4098 #line 4097 "configure"
4099 #include "confdefs.h"
4100 /* System header to define __stub macros and hopefully few prototypes,
4101 which can conflict with char $ac_func(); below. */
4103 /* Override any gcc2 internal prototype to avoid an error. */
4104 /* We use char because int might match the return type of a gcc2
4105 builtin and then its argument prototype would still apply. */
4110 /* The GNU C library defines this for functions which it implements
4111 to always fail with ENOSYS. Some functions are actually named
4112 something starting with __ and the normal name is an alias. */
4113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4121 if { (eval echo configure
:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4123 eval "ac_cv_func_$ac_func=yes"
4125 echo "configure: failed program was:" >&5
4126 cat conftest.
$ac_ext >&5
4128 eval "ac_cv_func_$ac_func=no"
4133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4134 echo "$ac_t""yes" 1>&6
4135 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4136 cat >> confdefs.h
<<EOF
4137 #define $ac_tr_func 1
4141 echo "$ac_t""no" 1>&6
4145 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
4147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4148 echo "configure:4147: checking for $ac_func" >&5
4149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4150 echo $ac_n "(cached) $ac_c" 1>&6
4152 cat > conftest.
$ac_ext <<EOF
4153 #line 4152 "configure"
4154 #include "confdefs.h"
4155 /* System header to define __stub macros and hopefully few prototypes,
4156 which can conflict with char $ac_func(); below. */
4158 /* Override any gcc2 internal prototype to avoid an error. */
4159 /* We use char because int might match the return type of a gcc2
4160 builtin and then its argument prototype would still apply. */
4165 /* The GNU C library defines this for functions which it implements
4166 to always fail with ENOSYS. Some functions are actually named
4167 something starting with __ and the normal name is an alias. */
4168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4176 if { (eval echo configure
:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4178 eval "ac_cv_func_$ac_func=yes"
4180 echo "configure: failed program was:" >&5
4181 cat conftest.
$ac_ext >&5
4183 eval "ac_cv_func_$ac_func=no"
4188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4189 echo "$ac_t""yes" 1>&6
4190 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4191 cat >> confdefs.h
<<EOF
4192 #define $ac_tr_func 1
4196 echo "$ac_t""no" 1>&6
4200 for ac_func
in __getcwd _getcwd
4202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4203 echo "configure:4202: checking for $ac_func" >&5
4204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4205 echo $ac_n "(cached) $ac_c" 1>&6
4207 cat > conftest.
$ac_ext <<EOF
4208 #line 4207 "configure"
4209 #include "confdefs.h"
4210 /* System header to define __stub macros and hopefully few prototypes,
4211 which can conflict with char $ac_func(); below. */
4213 /* Override any gcc2 internal prototype to avoid an error. */
4214 /* We use char because int might match the return type of a gcc2
4215 builtin and then its argument prototype would still apply. */
4220 /* The GNU C library defines this for functions which it implements
4221 to always fail with ENOSYS. Some functions are actually named
4222 something starting with __ and the normal name is an alias. */
4223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4231 if { (eval echo configure
:4230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4233 eval "ac_cv_func_$ac_func=yes"
4235 echo "configure: failed program was:" >&5
4236 cat conftest.
$ac_ext >&5
4238 eval "ac_cv_func_$ac_func=no"
4243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4244 echo "$ac_t""yes" 1>&6
4245 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4246 cat >> confdefs.h
<<EOF
4247 #define $ac_tr_func 1
4251 echo "$ac_t""no" 1>&6
4255 for ac_func
in __xstat __fxstat __lxstat
4257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4258 echo "configure:4257: checking for $ac_func" >&5
4259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4262 cat > conftest.
$ac_ext <<EOF
4263 #line 4262 "configure"
4264 #include "confdefs.h"
4265 /* System header to define __stub macros and hopefully few prototypes,
4266 which can conflict with char $ac_func(); below. */
4268 /* Override any gcc2 internal prototype to avoid an error. */
4269 /* We use char because int might match the return type of a gcc2
4270 builtin and then its argument prototype would still apply. */
4275 /* The GNU C library defines this for functions which it implements
4276 to always fail with ENOSYS. Some functions are actually named
4277 something starting with __ and the normal name is an alias. */
4278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4286 if { (eval echo configure
:4285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4288 eval "ac_cv_func_$ac_func=yes"
4290 echo "configure: failed program was:" >&5
4291 cat conftest.
$ac_ext >&5
4293 eval "ac_cv_func_$ac_func=no"
4298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4299 echo "$ac_t""yes" 1>&6
4300 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4301 cat >> confdefs.h
<<EOF
4302 #define $ac_tr_func 1
4306 echo "$ac_t""no" 1>&6
4310 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
4312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4313 echo "configure:4312: checking for $ac_func" >&5
4314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4315 echo $ac_n "(cached) $ac_c" 1>&6
4317 cat > conftest.
$ac_ext <<EOF
4318 #line 4317 "configure"
4319 #include "confdefs.h"
4320 /* System header to define __stub macros and hopefully few prototypes,
4321 which can conflict with char $ac_func(); below. */
4323 /* Override any gcc2 internal prototype to avoid an error. */
4324 /* We use char because int might match the return type of a gcc2
4325 builtin and then its argument prototype would still apply. */
4330 /* The GNU C library defines this for functions which it implements
4331 to always fail with ENOSYS. Some functions are actually named
4332 something starting with __ and the normal name is an alias. */
4333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4341 if { (eval echo configure
:4340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4343 eval "ac_cv_func_$ac_func=yes"
4345 echo "configure: failed program was:" >&5
4346 cat conftest.
$ac_ext >&5
4348 eval "ac_cv_func_$ac_func=no"
4353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4354 echo "$ac_t""yes" 1>&6
4355 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4356 cat >> confdefs.h
<<EOF
4357 #define $ac_tr_func 1
4361 echo "$ac_t""no" 1>&6
4365 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
4367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4368 echo "configure:4367: checking for $ac_func" >&5
4369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4372 cat > conftest.
$ac_ext <<EOF
4373 #line 4372 "configure"
4374 #include "confdefs.h"
4375 /* System header to define __stub macros and hopefully few prototypes,
4376 which can conflict with char $ac_func(); below. */
4378 /* Override any gcc2 internal prototype to avoid an error. */
4379 /* We use char because int might match the return type of a gcc2
4380 builtin and then its argument prototype would still apply. */
4385 /* The GNU C library defines this for functions which it implements
4386 to always fail with ENOSYS. Some functions are actually named
4387 something starting with __ and the normal name is an alias. */
4388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4396 if { (eval echo configure
:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4398 eval "ac_cv_func_$ac_func=yes"
4400 echo "configure: failed program was:" >&5
4401 cat conftest.
$ac_ext >&5
4403 eval "ac_cv_func_$ac_func=no"
4408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4409 echo "$ac_t""yes" 1>&6
4410 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4411 cat >> confdefs.h
<<EOF
4412 #define $ac_tr_func 1
4416 echo "$ac_t""no" 1>&6
4420 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
4422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4423 echo "configure:4422: checking for $ac_func" >&5
4424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4425 echo $ac_n "(cached) $ac_c" 1>&6
4427 cat > conftest.
$ac_ext <<EOF
4428 #line 4427 "configure"
4429 #include "confdefs.h"
4430 /* System header to define __stub macros and hopefully few prototypes,
4431 which can conflict with char $ac_func(); below. */
4433 /* Override any gcc2 internal prototype to avoid an error. */
4434 /* We use char because int might match the return type of a gcc2
4435 builtin and then its argument prototype would still apply. */
4440 /* The GNU C library defines this for functions which it implements
4441 to always fail with ENOSYS. Some functions are actually named
4442 something starting with __ and the normal name is an alias. */
4443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4451 if { (eval echo configure
:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4453 eval "ac_cv_func_$ac_func=yes"
4455 echo "configure: failed program was:" >&5
4456 cat conftest.
$ac_ext >&5
4458 eval "ac_cv_func_$ac_func=no"
4463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4464 echo "$ac_t""yes" 1>&6
4465 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4466 cat >> confdefs.h
<<EOF
4467 #define $ac_tr_func 1
4471 echo "$ac_t""no" 1>&6
4475 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
4477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4478 echo "configure:4477: checking for $ac_func" >&5
4479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4480 echo $ac_n "(cached) $ac_c" 1>&6
4482 cat > conftest.
$ac_ext <<EOF
4483 #line 4482 "configure"
4484 #include "confdefs.h"
4485 /* System header to define __stub macros and hopefully few prototypes,
4486 which can conflict with char $ac_func(); below. */
4488 /* Override any gcc2 internal prototype to avoid an error. */
4489 /* We use char because int might match the return type of a gcc2
4490 builtin and then its argument prototype would still apply. */
4495 /* The GNU C library defines this for functions which it implements
4496 to always fail with ENOSYS. Some functions are actually named
4497 something starting with __ and the normal name is an alias. */
4498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4506 if { (eval echo configure
:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4508 eval "ac_cv_func_$ac_func=yes"
4510 echo "configure: failed program was:" >&5
4511 cat conftest.
$ac_ext >&5
4513 eval "ac_cv_func_$ac_func=no"
4518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4519 echo "$ac_t""yes" 1>&6
4520 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4521 cat >> confdefs.h
<<EOF
4522 #define $ac_tr_func 1
4526 echo "$ac_t""no" 1>&6
4530 for ac_func
in _write __write _fork __fork
4532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4533 echo "configure:4532: checking for $ac_func" >&5
4534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4535 echo $ac_n "(cached) $ac_c" 1>&6
4537 cat > conftest.
$ac_ext <<EOF
4538 #line 4537 "configure"
4539 #include "confdefs.h"
4540 /* System header to define __stub macros and hopefully few prototypes,
4541 which can conflict with char $ac_func(); below. */
4543 /* Override any gcc2 internal prototype to avoid an error. */
4544 /* We use char because int might match the return type of a gcc2
4545 builtin and then its argument prototype would still apply. */
4550 /* The GNU C library defines this for functions which it implements
4551 to always fail with ENOSYS. Some functions are actually named
4552 something starting with __ and the normal name is an alias. */
4553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4561 if { (eval echo configure
:4560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4563 eval "ac_cv_func_$ac_func=yes"
4565 echo "configure: failed program was:" >&5
4566 cat conftest.
$ac_ext >&5
4568 eval "ac_cv_func_$ac_func=no"
4573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4574 echo "$ac_t""yes" 1>&6
4575 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4576 cat >> confdefs.h
<<EOF
4577 #define $ac_tr_func 1
4581 echo "$ac_t""no" 1>&6
4585 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
4587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4588 echo "configure:4587: checking for $ac_func" >&5
4589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4590 echo $ac_n "(cached) $ac_c" 1>&6
4592 cat > conftest.
$ac_ext <<EOF
4593 #line 4592 "configure"
4594 #include "confdefs.h"
4595 /* System header to define __stub macros and hopefully few prototypes,
4596 which can conflict with char $ac_func(); below. */
4598 /* Override any gcc2 internal prototype to avoid an error. */
4599 /* We use char because int might match the return type of a gcc2
4600 builtin and then its argument prototype would still apply. */
4605 /* The GNU C library defines this for functions which it implements
4606 to always fail with ENOSYS. Some functions are actually named
4607 something starting with __ and the normal name is an alias. */
4608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4616 if { (eval echo configure
:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4618 eval "ac_cv_func_$ac_func=yes"
4620 echo "configure: failed program was:" >&5
4621 cat conftest.
$ac_ext >&5
4623 eval "ac_cv_func_$ac_func=no"
4628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4629 echo "$ac_t""yes" 1>&6
4630 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4631 cat >> confdefs.h
<<EOF
4632 #define $ac_tr_func 1
4636 echo "$ac_t""no" 1>&6
4640 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
4642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4643 echo "configure:4642: checking for $ac_func" >&5
4644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4645 echo $ac_n "(cached) $ac_c" 1>&6
4647 cat > conftest.
$ac_ext <<EOF
4648 #line 4647 "configure"
4649 #include "confdefs.h"
4650 /* System header to define __stub macros and hopefully few prototypes,
4651 which can conflict with char $ac_func(); below. */
4653 /* Override any gcc2 internal prototype to avoid an error. */
4654 /* We use char because int might match the return type of a gcc2
4655 builtin and then its argument prototype would still apply. */
4660 /* The GNU C library defines this for functions which it implements
4661 to always fail with ENOSYS. Some functions are actually named
4662 something starting with __ and the normal name is an alias. */
4663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4671 if { (eval echo configure
:4670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4673 eval "ac_cv_func_$ac_func=yes"
4675 echo "configure: failed program was:" >&5
4676 cat conftest.
$ac_ext >&5
4678 eval "ac_cv_func_$ac_func=no"
4683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4684 echo "$ac_t""yes" 1>&6
4685 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4686 cat >> confdefs.h
<<EOF
4687 #define $ac_tr_func 1
4691 echo "$ac_t""no" 1>&6
4695 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
4697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4698 echo "configure:4697: checking for $ac_func" >&5
4699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4702 cat > conftest.
$ac_ext <<EOF
4703 #line 4702 "configure"
4704 #include "confdefs.h"
4705 /* System header to define __stub macros and hopefully few prototypes,
4706 which can conflict with char $ac_func(); below. */
4708 /* Override any gcc2 internal prototype to avoid an error. */
4709 /* We use char because int might match the return type of a gcc2
4710 builtin and then its argument prototype would still apply. */
4715 /* The GNU C library defines this for functions which it implements
4716 to always fail with ENOSYS. Some functions are actually named
4717 something starting with __ and the normal name is an alias. */
4718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4726 if { (eval echo configure
:4725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4728 eval "ac_cv_func_$ac_func=yes"
4730 echo "configure: failed program was:" >&5
4731 cat conftest.
$ac_ext >&5
4733 eval "ac_cv_func_$ac_func=no"
4738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4739 echo "$ac_t""yes" 1>&6
4740 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4741 cat >> confdefs.h
<<EOF
4742 #define $ac_tr_func 1
4746 echo "$ac_t""no" 1>&6
4750 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
4752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4753 echo "configure:4752: checking for $ac_func" >&5
4754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4755 echo $ac_n "(cached) $ac_c" 1>&6
4757 cat > conftest.
$ac_ext <<EOF
4758 #line 4757 "configure"
4759 #include "confdefs.h"
4760 /* System header to define __stub macros and hopefully few prototypes,
4761 which can conflict with char $ac_func(); below. */
4763 /* Override any gcc2 internal prototype to avoid an error. */
4764 /* We use char because int might match the return type of a gcc2
4765 builtin and then its argument prototype would still apply. */
4770 /* The GNU C library defines this for functions which it implements
4771 to always fail with ENOSYS. Some functions are actually named
4772 something starting with __ and the normal name is an alias. */
4773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4781 if { (eval echo configure
:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4783 eval "ac_cv_func_$ac_func=yes"
4785 echo "configure: failed program was:" >&5
4786 cat conftest.
$ac_ext >&5
4788 eval "ac_cv_func_$ac_func=no"
4793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4794 echo "$ac_t""yes" 1>&6
4795 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4796 cat >> confdefs.h
<<EOF
4797 #define $ac_tr_func 1
4801 echo "$ac_t""no" 1>&6
4805 for ac_func
in open64 _open64 __open64 creat64
4807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4808 echo "configure:4807: checking for $ac_func" >&5
4809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4810 echo $ac_n "(cached) $ac_c" 1>&6
4812 cat > conftest.
$ac_ext <<EOF
4813 #line 4812 "configure"
4814 #include "confdefs.h"
4815 /* System header to define __stub macros and hopefully few prototypes,
4816 which can conflict with char $ac_func(); below. */
4818 /* Override any gcc2 internal prototype to avoid an error. */
4819 /* We use char because int might match the return type of a gcc2
4820 builtin and then its argument prototype would still apply. */
4825 /* The GNU C library defines this for functions which it implements
4826 to always fail with ENOSYS. Some functions are actually named
4827 something starting with __ and the normal name is an alias. */
4828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4836 if { (eval echo configure
:4835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4838 eval "ac_cv_func_$ac_func=yes"
4840 echo "configure: failed program was:" >&5
4841 cat conftest.
$ac_ext >&5
4843 eval "ac_cv_func_$ac_func=no"
4848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4849 echo "$ac_t""yes" 1>&6
4850 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4851 cat >> confdefs.h
<<EOF
4852 #define $ac_tr_func 1
4856 echo "$ac_t""no" 1>&6
4862 # Check for the functions putprpwnam, set_auth_parameters,
4863 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
4864 # Needed for OSF1 and HPUX.
4868 *-lsecurity*) for ac_func
in putprpwnam
4870 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4871 echo "configure:4870: checking for $ac_func" >&5
4872 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4873 echo $ac_n "(cached) $ac_c" 1>&6
4875 cat > conftest.
$ac_ext <<EOF
4876 #line 4875 "configure"
4877 #include "confdefs.h"
4878 /* System header to define __stub macros and hopefully few prototypes,
4879 which can conflict with char $ac_func(); below. */
4881 /* Override any gcc2 internal prototype to avoid an error. */
4882 /* We use char because int might match the return type of a gcc2
4883 builtin and then its argument prototype would still apply. */
4888 /* The GNU C library defines this for functions which it implements
4889 to always fail with ENOSYS. Some functions are actually named
4890 something starting with __ and the normal name is an alias. */
4891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4899 if { (eval echo configure
:4898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4901 eval "ac_cv_func_$ac_func=yes"
4903 echo "configure: failed program was:" >&5
4904 cat conftest.
$ac_ext >&5
4906 eval "ac_cv_func_$ac_func=no"
4911 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4912 echo "$ac_t""yes" 1>&6
4913 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4914 cat >> confdefs.h
<<EOF
4915 #define $ac_tr_func 1
4919 echo "$ac_t""no" 1>&6
4923 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
4924 echo "configure:4923: checking for putprpwnam in -lsecurity" >&5
4925 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
4926 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4927 echo $ac_n "(cached) $ac_c" 1>&6
4929 ac_save_LIBS
="$LIBS"
4930 LIBS
="-lsecurity $LIBS"
4931 cat > conftest.
$ac_ext <<EOF
4932 #line 4931 "configure"
4933 #include "confdefs.h"
4934 /* Override any gcc2 internal prototype to avoid an error. */
4935 /* We use char because int might match the return type of a gcc2
4936 builtin and then its argument prototype would still apply. */
4943 if { (eval echo configure
:4942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4945 eval "ac_cv_lib_$ac_lib_var=yes"
4947 echo "configure: failed program was:" >&5
4948 cat conftest.
$ac_ext >&5
4950 eval "ac_cv_lib_$ac_lib_var=no"
4953 LIBS
="$ac_save_LIBS"
4956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4957 echo "$ac_t""yes" 1>&6
4958 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4959 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4960 cat >> confdefs.h
<<EOF
4961 #define $ac_tr_lib 1
4964 LIBS
="-lsecurity $LIBS"
4967 echo "$ac_t""no" 1>&6
4970 for ac_func
in putprpwnam
4972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4973 echo "configure:4972: checking for $ac_func" >&5
4974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4975 echo $ac_n "(cached) $ac_c" 1>&6
4977 cat > conftest.
$ac_ext <<EOF
4978 #line 4977 "configure"
4979 #include "confdefs.h"
4980 /* System header to define __stub macros and hopefully few prototypes,
4981 which can conflict with char $ac_func(); below. */
4983 /* Override any gcc2 internal prototype to avoid an error. */
4984 /* We use char because int might match the return type of a gcc2
4985 builtin and then its argument prototype would still apply. */
4990 /* The GNU C library defines this for functions which it implements
4991 to always fail with ENOSYS. Some functions are actually named
4992 something starting with __ and the normal name is an alias. */
4993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5001 if { (eval echo configure
:5000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5003 eval "ac_cv_func_$ac_func=yes"
5005 echo "configure: failed program was:" >&5
5006 cat conftest.
$ac_ext >&5
5008 eval "ac_cv_func_$ac_func=no"
5013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5014 echo "$ac_t""yes" 1>&6
5015 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5016 cat >> confdefs.h
<<EOF
5017 #define $ac_tr_func 1
5021 echo "$ac_t""no" 1>&6
5029 *-lsec*) for ac_func
in putprpwnam
5031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5032 echo "configure:5031: checking for $ac_func" >&5
5033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5034 echo $ac_n "(cached) $ac_c" 1>&6
5036 cat > conftest.
$ac_ext <<EOF
5037 #line 5036 "configure"
5038 #include "confdefs.h"
5039 /* System header to define __stub macros and hopefully few prototypes,
5040 which can conflict with char $ac_func(); below. */
5042 /* Override any gcc2 internal prototype to avoid an error. */
5043 /* We use char because int might match the return type of a gcc2
5044 builtin and then its argument prototype would still apply. */
5049 /* The GNU C library defines this for functions which it implements
5050 to always fail with ENOSYS. Some functions are actually named
5051 something starting with __ and the normal name is an alias. */
5052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5060 if { (eval echo configure
:5059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5062 eval "ac_cv_func_$ac_func=yes"
5064 echo "configure: failed program was:" >&5
5065 cat conftest.
$ac_ext >&5
5067 eval "ac_cv_func_$ac_func=no"
5072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5073 echo "$ac_t""yes" 1>&6
5074 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5075 cat >> confdefs.h
<<EOF
5076 #define $ac_tr_func 1
5080 echo "$ac_t""no" 1>&6
5084 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
5085 echo "configure:5084: checking for putprpwnam in -lsec" >&5
5086 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
5087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5088 echo $ac_n "(cached) $ac_c" 1>&6
5090 ac_save_LIBS
="$LIBS"
5092 cat > conftest.
$ac_ext <<EOF
5093 #line 5092 "configure"
5094 #include "confdefs.h"
5095 /* Override any gcc2 internal prototype to avoid an error. */
5096 /* We use char because int might match the return type of a gcc2
5097 builtin and then its argument prototype would still apply. */
5104 if { (eval echo configure
:5103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5106 eval "ac_cv_lib_$ac_lib_var=yes"
5108 echo "configure: failed program was:" >&5
5109 cat conftest.
$ac_ext >&5
5111 eval "ac_cv_lib_$ac_lib_var=no"
5114 LIBS
="$ac_save_LIBS"
5117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5118 echo "$ac_t""yes" 1>&6
5119 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5120 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5121 cat >> confdefs.h
<<EOF
5122 #define $ac_tr_lib 1
5128 echo "$ac_t""no" 1>&6
5131 for ac_func
in putprpwnam
5133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5134 echo "configure:5133: checking for $ac_func" >&5
5135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5136 echo $ac_n "(cached) $ac_c" 1>&6
5138 cat > conftest.
$ac_ext <<EOF
5139 #line 5138 "configure"
5140 #include "confdefs.h"
5141 /* System header to define __stub macros and hopefully few prototypes,
5142 which can conflict with char $ac_func(); below. */
5144 /* Override any gcc2 internal prototype to avoid an error. */
5145 /* We use char because int might match the return type of a gcc2
5146 builtin and then its argument prototype would still apply. */
5151 /* The GNU C library defines this for functions which it implements
5152 to always fail with ENOSYS. Some functions are actually named
5153 something starting with __ and the normal name is an alias. */
5154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5162 if { (eval echo configure
:5161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5164 eval "ac_cv_func_$ac_func=yes"
5166 echo "configure: failed program was:" >&5
5167 cat conftest.
$ac_ext >&5
5169 eval "ac_cv_func_$ac_func=no"
5174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5175 echo "$ac_t""yes" 1>&6
5176 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5177 cat >> confdefs.h
<<EOF
5178 #define $ac_tr_func 1
5182 echo "$ac_t""no" 1>&6
5191 *-lsecurity*) for ac_func
in set_auth_parameters
5193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5194 echo "configure:5193: checking for $ac_func" >&5
5195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5196 echo $ac_n "(cached) $ac_c" 1>&6
5198 cat > conftest.
$ac_ext <<EOF
5199 #line 5198 "configure"
5200 #include "confdefs.h"
5201 /* System header to define __stub macros and hopefully few prototypes,
5202 which can conflict with char $ac_func(); below. */
5204 /* Override any gcc2 internal prototype to avoid an error. */
5205 /* We use char because int might match the return type of a gcc2
5206 builtin and then its argument prototype would still apply. */
5211 /* The GNU C library defines this for functions which it implements
5212 to always fail with ENOSYS. Some functions are actually named
5213 something starting with __ and the normal name is an alias. */
5214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5222 if { (eval echo configure
:5221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5224 eval "ac_cv_func_$ac_func=yes"
5226 echo "configure: failed program was:" >&5
5227 cat conftest.
$ac_ext >&5
5229 eval "ac_cv_func_$ac_func=no"
5234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5235 echo "$ac_t""yes" 1>&6
5236 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5237 cat >> confdefs.h
<<EOF
5238 #define $ac_tr_func 1
5242 echo "$ac_t""no" 1>&6
5246 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
5247 echo "configure:5246: checking for set_auth_parameters in -lsecurity" >&5
5248 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5250 echo $ac_n "(cached) $ac_c" 1>&6
5252 ac_save_LIBS
="$LIBS"
5253 LIBS
="-lsecurity $LIBS"
5254 cat > conftest.
$ac_ext <<EOF
5255 #line 5254 "configure"
5256 #include "confdefs.h"
5257 /* Override any gcc2 internal prototype to avoid an error. */
5258 /* We use char because int might match the return type of a gcc2
5259 builtin and then its argument prototype would still apply. */
5260 char set_auth_parameters();
5263 set_auth_parameters()
5266 if { (eval echo configure
:5265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5268 eval "ac_cv_lib_$ac_lib_var=yes"
5270 echo "configure: failed program was:" >&5
5271 cat conftest.
$ac_ext >&5
5273 eval "ac_cv_lib_$ac_lib_var=no"
5276 LIBS
="$ac_save_LIBS"
5279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5280 echo "$ac_t""yes" 1>&6
5281 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5282 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5283 cat >> confdefs.h
<<EOF
5284 #define $ac_tr_lib 1
5287 LIBS
="-lsecurity $LIBS"
5290 echo "$ac_t""no" 1>&6
5293 for ac_func
in set_auth_parameters
5295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5296 echo "configure:5295: checking for $ac_func" >&5
5297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5298 echo $ac_n "(cached) $ac_c" 1>&6
5300 cat > conftest.
$ac_ext <<EOF
5301 #line 5300 "configure"
5302 #include "confdefs.h"
5303 /* System header to define __stub macros and hopefully few prototypes,
5304 which can conflict with char $ac_func(); below. */
5306 /* Override any gcc2 internal prototype to avoid an error. */
5307 /* We use char because int might match the return type of a gcc2
5308 builtin and then its argument prototype would still apply. */
5313 /* The GNU C library defines this for functions which it implements
5314 to always fail with ENOSYS. Some functions are actually named
5315 something starting with __ and the normal name is an alias. */
5316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5324 if { (eval echo configure
:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5326 eval "ac_cv_func_$ac_func=yes"
5328 echo "configure: failed program was:" >&5
5329 cat conftest.
$ac_ext >&5
5331 eval "ac_cv_func_$ac_func=no"
5336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5337 echo "$ac_t""yes" 1>&6
5338 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5339 cat >> confdefs.h
<<EOF
5340 #define $ac_tr_func 1
5344 echo "$ac_t""no" 1>&6
5352 *-lsec*) for ac_func
in set_auth_parameters
5354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5355 echo "configure:5354: checking for $ac_func" >&5
5356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5357 echo $ac_n "(cached) $ac_c" 1>&6
5359 cat > conftest.
$ac_ext <<EOF
5360 #line 5359 "configure"
5361 #include "confdefs.h"
5362 /* System header to define __stub macros and hopefully few prototypes,
5363 which can conflict with char $ac_func(); below. */
5365 /* Override any gcc2 internal prototype to avoid an error. */
5366 /* We use char because int might match the return type of a gcc2
5367 builtin and then its argument prototype would still apply. */
5372 /* The GNU C library defines this for functions which it implements
5373 to always fail with ENOSYS. Some functions are actually named
5374 something starting with __ and the normal name is an alias. */
5375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5383 if { (eval echo configure
:5382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5385 eval "ac_cv_func_$ac_func=yes"
5387 echo "configure: failed program was:" >&5
5388 cat conftest.
$ac_ext >&5
5390 eval "ac_cv_func_$ac_func=no"
5395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5396 echo "$ac_t""yes" 1>&6
5397 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5398 cat >> confdefs.h
<<EOF
5399 #define $ac_tr_func 1
5403 echo "$ac_t""no" 1>&6
5407 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
5408 echo "configure:5407: checking for set_auth_parameters in -lsec" >&5
5409 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5411 echo $ac_n "(cached) $ac_c" 1>&6
5413 ac_save_LIBS
="$LIBS"
5415 cat > conftest.
$ac_ext <<EOF
5416 #line 5415 "configure"
5417 #include "confdefs.h"
5418 /* Override any gcc2 internal prototype to avoid an error. */
5419 /* We use char because int might match the return type of a gcc2
5420 builtin and then its argument prototype would still apply. */
5421 char set_auth_parameters();
5424 set_auth_parameters()
5427 if { (eval echo configure
:5426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5429 eval "ac_cv_lib_$ac_lib_var=yes"
5431 echo "configure: failed program was:" >&5
5432 cat conftest.
$ac_ext >&5
5434 eval "ac_cv_lib_$ac_lib_var=no"
5437 LIBS
="$ac_save_LIBS"
5440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5441 echo "$ac_t""yes" 1>&6
5442 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5443 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5444 cat >> confdefs.h
<<EOF
5445 #define $ac_tr_lib 1
5451 echo "$ac_t""no" 1>&6
5454 for ac_func
in set_auth_parameters
5456 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5457 echo "configure:5456: checking for $ac_func" >&5
5458 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5459 echo $ac_n "(cached) $ac_c" 1>&6
5461 cat > conftest.
$ac_ext <<EOF
5462 #line 5461 "configure"
5463 #include "confdefs.h"
5464 /* System header to define __stub macros and hopefully few prototypes,
5465 which can conflict with char $ac_func(); below. */
5467 /* Override any gcc2 internal prototype to avoid an error. */
5468 /* We use char because int might match the return type of a gcc2
5469 builtin and then its argument prototype would still apply. */
5474 /* The GNU C library defines this for functions which it implements
5475 to always fail with ENOSYS. Some functions are actually named
5476 something starting with __ and the normal name is an alias. */
5477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5485 if { (eval echo configure
:5484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5487 eval "ac_cv_func_$ac_func=yes"
5489 echo "configure: failed program was:" >&5
5490 cat conftest.
$ac_ext >&5
5492 eval "ac_cv_func_$ac_func=no"
5497 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5498 echo "$ac_t""yes" 1>&6
5499 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5500 cat >> confdefs.h
<<EOF
5501 #define $ac_tr_func 1
5505 echo "$ac_t""no" 1>&6
5514 *-lsecurity*) for ac_func
in getspnam
5516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5517 echo "configure:5516: checking for $ac_func" >&5
5518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5519 echo $ac_n "(cached) $ac_c" 1>&6
5521 cat > conftest.
$ac_ext <<EOF
5522 #line 5521 "configure"
5523 #include "confdefs.h"
5524 /* System header to define __stub macros and hopefully few prototypes,
5525 which can conflict with char $ac_func(); below. */
5527 /* Override any gcc2 internal prototype to avoid an error. */
5528 /* We use char because int might match the return type of a gcc2
5529 builtin and then its argument prototype would still apply. */
5534 /* The GNU C library defines this for functions which it implements
5535 to always fail with ENOSYS. Some functions are actually named
5536 something starting with __ and the normal name is an alias. */
5537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5545 if { (eval echo configure
:5544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5547 eval "ac_cv_func_$ac_func=yes"
5549 echo "configure: failed program was:" >&5
5550 cat conftest.
$ac_ext >&5
5552 eval "ac_cv_func_$ac_func=no"
5557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5558 echo "$ac_t""yes" 1>&6
5559 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5560 cat >> confdefs.h
<<EOF
5561 #define $ac_tr_func 1
5565 echo "$ac_t""no" 1>&6
5569 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
5570 echo "configure:5569: checking for getspnam in -lsecurity" >&5
5571 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
5572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5573 echo $ac_n "(cached) $ac_c" 1>&6
5575 ac_save_LIBS
="$LIBS"
5576 LIBS
="-lsecurity $LIBS"
5577 cat > conftest.
$ac_ext <<EOF
5578 #line 5577 "configure"
5579 #include "confdefs.h"
5580 /* Override any gcc2 internal prototype to avoid an error. */
5581 /* We use char because int might match the return type of a gcc2
5582 builtin and then its argument prototype would still apply. */
5589 if { (eval echo configure
:5588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5591 eval "ac_cv_lib_$ac_lib_var=yes"
5593 echo "configure: failed program was:" >&5
5594 cat conftest.
$ac_ext >&5
5596 eval "ac_cv_lib_$ac_lib_var=no"
5599 LIBS
="$ac_save_LIBS"
5602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5603 echo "$ac_t""yes" 1>&6
5604 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5605 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5606 cat >> confdefs.h
<<EOF
5607 #define $ac_tr_lib 1
5610 LIBS
="-lsecurity $LIBS"
5613 echo "$ac_t""no" 1>&6
5616 for ac_func
in getspnam
5618 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5619 echo "configure:5618: checking for $ac_func" >&5
5620 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5621 echo $ac_n "(cached) $ac_c" 1>&6
5623 cat > conftest.
$ac_ext <<EOF
5624 #line 5623 "configure"
5625 #include "confdefs.h"
5626 /* System header to define __stub macros and hopefully few prototypes,
5627 which can conflict with char $ac_func(); below. */
5629 /* Override any gcc2 internal prototype to avoid an error. */
5630 /* We use char because int might match the return type of a gcc2
5631 builtin and then its argument prototype would still apply. */
5636 /* The GNU C library defines this for functions which it implements
5637 to always fail with ENOSYS. Some functions are actually named
5638 something starting with __ and the normal name is an alias. */
5639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5647 if { (eval echo configure
:5646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5649 eval "ac_cv_func_$ac_func=yes"
5651 echo "configure: failed program was:" >&5
5652 cat conftest.
$ac_ext >&5
5654 eval "ac_cv_func_$ac_func=no"
5659 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5660 echo "$ac_t""yes" 1>&6
5661 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5662 cat >> confdefs.h
<<EOF
5663 #define $ac_tr_func 1
5667 echo "$ac_t""no" 1>&6
5675 *-lsec*) for ac_func
in getspnam
5677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5678 echo "configure:5677: checking for $ac_func" >&5
5679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5680 echo $ac_n "(cached) $ac_c" 1>&6
5682 cat > conftest.
$ac_ext <<EOF
5683 #line 5682 "configure"
5684 #include "confdefs.h"
5685 /* System header to define __stub macros and hopefully few prototypes,
5686 which can conflict with char $ac_func(); below. */
5688 /* Override any gcc2 internal prototype to avoid an error. */
5689 /* We use char because int might match the return type of a gcc2
5690 builtin and then its argument prototype would still apply. */
5695 /* The GNU C library defines this for functions which it implements
5696 to always fail with ENOSYS. Some functions are actually named
5697 something starting with __ and the normal name is an alias. */
5698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5706 if { (eval echo configure
:5705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5708 eval "ac_cv_func_$ac_func=yes"
5710 echo "configure: failed program was:" >&5
5711 cat conftest.
$ac_ext >&5
5713 eval "ac_cv_func_$ac_func=no"
5718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5719 echo "$ac_t""yes" 1>&6
5720 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5721 cat >> confdefs.h
<<EOF
5722 #define $ac_tr_func 1
5726 echo "$ac_t""no" 1>&6
5730 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
5731 echo "configure:5730: checking for getspnam in -lsec" >&5
5732 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
5733 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5734 echo $ac_n "(cached) $ac_c" 1>&6
5736 ac_save_LIBS
="$LIBS"
5738 cat > conftest.
$ac_ext <<EOF
5739 #line 5738 "configure"
5740 #include "confdefs.h"
5741 /* Override any gcc2 internal prototype to avoid an error. */
5742 /* We use char because int might match the return type of a gcc2
5743 builtin and then its argument prototype would still apply. */
5750 if { (eval echo configure
:5749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5752 eval "ac_cv_lib_$ac_lib_var=yes"
5754 echo "configure: failed program was:" >&5
5755 cat conftest.
$ac_ext >&5
5757 eval "ac_cv_lib_$ac_lib_var=no"
5760 LIBS
="$ac_save_LIBS"
5763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5764 echo "$ac_t""yes" 1>&6
5765 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5766 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5767 cat >> confdefs.h
<<EOF
5768 #define $ac_tr_lib 1
5774 echo "$ac_t""no" 1>&6
5777 for ac_func
in getspnam
5779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5780 echo "configure:5779: checking for $ac_func" >&5
5781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5782 echo $ac_n "(cached) $ac_c" 1>&6
5784 cat > conftest.
$ac_ext <<EOF
5785 #line 5784 "configure"
5786 #include "confdefs.h"
5787 /* System header to define __stub macros and hopefully few prototypes,
5788 which can conflict with char $ac_func(); below. */
5790 /* Override any gcc2 internal prototype to avoid an error. */
5791 /* We use char because int might match the return type of a gcc2
5792 builtin and then its argument prototype would still apply. */
5797 /* The GNU C library defines this for functions which it implements
5798 to always fail with ENOSYS. Some functions are actually named
5799 something starting with __ and the normal name is an alias. */
5800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5808 if { (eval echo configure
:5807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5810 eval "ac_cv_func_$ac_func=yes"
5812 echo "configure: failed program was:" >&5
5813 cat conftest.
$ac_ext >&5
5815 eval "ac_cv_func_$ac_func=no"
5820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5821 echo "$ac_t""yes" 1>&6
5822 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5823 cat >> confdefs.h
<<EOF
5824 #define $ac_tr_func 1
5828 echo "$ac_t""no" 1>&6
5837 *-lsecurity*) for ac_func
in bigcrypt
5839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5840 echo "configure:5839: checking for $ac_func" >&5
5841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5842 echo $ac_n "(cached) $ac_c" 1>&6
5844 cat > conftest.
$ac_ext <<EOF
5845 #line 5844 "configure"
5846 #include "confdefs.h"
5847 /* System header to define __stub macros and hopefully few prototypes,
5848 which can conflict with char $ac_func(); below. */
5850 /* Override any gcc2 internal prototype to avoid an error. */
5851 /* We use char because int might match the return type of a gcc2
5852 builtin and then its argument prototype would still apply. */
5857 /* The GNU C library defines this for functions which it implements
5858 to always fail with ENOSYS. Some functions are actually named
5859 something starting with __ and the normal name is an alias. */
5860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5868 if { (eval echo configure
:5867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5870 eval "ac_cv_func_$ac_func=yes"
5872 echo "configure: failed program was:" >&5
5873 cat conftest.
$ac_ext >&5
5875 eval "ac_cv_func_$ac_func=no"
5880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5881 echo "$ac_t""yes" 1>&6
5882 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5883 cat >> confdefs.h
<<EOF
5884 #define $ac_tr_func 1
5888 echo "$ac_t""no" 1>&6
5892 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
5893 echo "configure:5892: checking for bigcrypt in -lsecurity" >&5
5894 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
5895 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5896 echo $ac_n "(cached) $ac_c" 1>&6
5898 ac_save_LIBS
="$LIBS"
5899 LIBS
="-lsecurity $LIBS"
5900 cat > conftest.
$ac_ext <<EOF
5901 #line 5900 "configure"
5902 #include "confdefs.h"
5903 /* Override any gcc2 internal prototype to avoid an error. */
5904 /* We use char because int might match the return type of a gcc2
5905 builtin and then its argument prototype would still apply. */
5912 if { (eval echo configure
:5911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5914 eval "ac_cv_lib_$ac_lib_var=yes"
5916 echo "configure: failed program was:" >&5
5917 cat conftest.
$ac_ext >&5
5919 eval "ac_cv_lib_$ac_lib_var=no"
5922 LIBS
="$ac_save_LIBS"
5925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5926 echo "$ac_t""yes" 1>&6
5927 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5928 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5929 cat >> confdefs.h
<<EOF
5930 #define $ac_tr_lib 1
5933 LIBS
="-lsecurity $LIBS"
5936 echo "$ac_t""no" 1>&6
5939 for ac_func
in bigcrypt
5941 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5942 echo "configure:5941: checking for $ac_func" >&5
5943 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5944 echo $ac_n "(cached) $ac_c" 1>&6
5946 cat > conftest.
$ac_ext <<EOF
5947 #line 5946 "configure"
5948 #include "confdefs.h"
5949 /* System header to define __stub macros and hopefully few prototypes,
5950 which can conflict with char $ac_func(); below. */
5952 /* Override any gcc2 internal prototype to avoid an error. */
5953 /* We use char because int might match the return type of a gcc2
5954 builtin and then its argument prototype would still apply. */
5959 /* The GNU C library defines this for functions which it implements
5960 to always fail with ENOSYS. Some functions are actually named
5961 something starting with __ and the normal name is an alias. */
5962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5970 if { (eval echo configure
:5969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5972 eval "ac_cv_func_$ac_func=yes"
5974 echo "configure: failed program was:" >&5
5975 cat conftest.
$ac_ext >&5
5977 eval "ac_cv_func_$ac_func=no"
5982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5983 echo "$ac_t""yes" 1>&6
5984 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5985 cat >> confdefs.h
<<EOF
5986 #define $ac_tr_func 1
5990 echo "$ac_t""no" 1>&6
5998 *-lsec*) for ac_func
in bigcrypt
6000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6001 echo "configure:6000: checking for $ac_func" >&5
6002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6003 echo $ac_n "(cached) $ac_c" 1>&6
6005 cat > conftest.
$ac_ext <<EOF
6006 #line 6005 "configure"
6007 #include "confdefs.h"
6008 /* System header to define __stub macros and hopefully few prototypes,
6009 which can conflict with char $ac_func(); below. */
6011 /* Override any gcc2 internal prototype to avoid an error. */
6012 /* We use char because int might match the return type of a gcc2
6013 builtin and then its argument prototype would still apply. */
6018 /* The GNU C library defines this for functions which it implements
6019 to always fail with ENOSYS. Some functions are actually named
6020 something starting with __ and the normal name is an alias. */
6021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6029 if { (eval echo configure
:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6031 eval "ac_cv_func_$ac_func=yes"
6033 echo "configure: failed program was:" >&5
6034 cat conftest.
$ac_ext >&5
6036 eval "ac_cv_func_$ac_func=no"
6041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6042 echo "$ac_t""yes" 1>&6
6043 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6044 cat >> confdefs.h
<<EOF
6045 #define $ac_tr_func 1
6049 echo "$ac_t""no" 1>&6
6053 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
6054 echo "configure:6053: checking for bigcrypt in -lsec" >&5
6055 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
6056 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6057 echo $ac_n "(cached) $ac_c" 1>&6
6059 ac_save_LIBS
="$LIBS"
6061 cat > conftest.
$ac_ext <<EOF
6062 #line 6061 "configure"
6063 #include "confdefs.h"
6064 /* Override any gcc2 internal prototype to avoid an error. */
6065 /* We use char because int might match the return type of a gcc2
6066 builtin and then its argument prototype would still apply. */
6073 if { (eval echo configure
:6072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6075 eval "ac_cv_lib_$ac_lib_var=yes"
6077 echo "configure: failed program was:" >&5
6078 cat conftest.
$ac_ext >&5
6080 eval "ac_cv_lib_$ac_lib_var=no"
6083 LIBS
="$ac_save_LIBS"
6086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6087 echo "$ac_t""yes" 1>&6
6088 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6089 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6090 cat >> confdefs.h
<<EOF
6091 #define $ac_tr_lib 1
6097 echo "$ac_t""no" 1>&6
6100 for ac_func
in bigcrypt
6102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6103 echo "configure:6102: checking for $ac_func" >&5
6104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6105 echo $ac_n "(cached) $ac_c" 1>&6
6107 cat > conftest.
$ac_ext <<EOF
6108 #line 6107 "configure"
6109 #include "confdefs.h"
6110 /* System header to define __stub macros and hopefully few prototypes,
6111 which can conflict with char $ac_func(); below. */
6113 /* Override any gcc2 internal prototype to avoid an error. */
6114 /* We use char because int might match the return type of a gcc2
6115 builtin and then its argument prototype would still apply. */
6120 /* The GNU C library defines this for functions which it implements
6121 to always fail with ENOSYS. Some functions are actually named
6122 something starting with __ and the normal name is an alias. */
6123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6131 if { (eval echo configure
:6130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6133 eval "ac_cv_func_$ac_func=yes"
6135 echo "configure: failed program was:" >&5
6136 cat conftest.
$ac_ext >&5
6138 eval "ac_cv_func_$ac_func=no"
6143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6144 echo "$ac_t""yes" 1>&6
6145 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6146 cat >> confdefs.h
<<EOF
6147 #define $ac_tr_func 1
6151 echo "$ac_t""no" 1>&6
6160 *-lsecurity*) for ac_func
in getprpwnam
6162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6163 echo "configure:6162: checking for $ac_func" >&5
6164 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6165 echo $ac_n "(cached) $ac_c" 1>&6
6167 cat > conftest.
$ac_ext <<EOF
6168 #line 6167 "configure"
6169 #include "confdefs.h"
6170 /* System header to define __stub macros and hopefully few prototypes,
6171 which can conflict with char $ac_func(); below. */
6173 /* Override any gcc2 internal prototype to avoid an error. */
6174 /* We use char because int might match the return type of a gcc2
6175 builtin and then its argument prototype would still apply. */
6180 /* The GNU C library defines this for functions which it implements
6181 to always fail with ENOSYS. Some functions are actually named
6182 something starting with __ and the normal name is an alias. */
6183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6191 if { (eval echo configure
:6190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6193 eval "ac_cv_func_$ac_func=yes"
6195 echo "configure: failed program was:" >&5
6196 cat conftest.
$ac_ext >&5
6198 eval "ac_cv_func_$ac_func=no"
6203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6204 echo "$ac_t""yes" 1>&6
6205 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6206 cat >> confdefs.h
<<EOF
6207 #define $ac_tr_func 1
6211 echo "$ac_t""no" 1>&6
6215 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
6216 echo "configure:6215: checking for getprpwnam in -lsecurity" >&5
6217 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
6218 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6219 echo $ac_n "(cached) $ac_c" 1>&6
6221 ac_save_LIBS
="$LIBS"
6222 LIBS
="-lsecurity $LIBS"
6223 cat > conftest.
$ac_ext <<EOF
6224 #line 6223 "configure"
6225 #include "confdefs.h"
6226 /* Override any gcc2 internal prototype to avoid an error. */
6227 /* We use char because int might match the return type of a gcc2
6228 builtin and then its argument prototype would still apply. */
6235 if { (eval echo configure
:6234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6237 eval "ac_cv_lib_$ac_lib_var=yes"
6239 echo "configure: failed program was:" >&5
6240 cat conftest.
$ac_ext >&5
6242 eval "ac_cv_lib_$ac_lib_var=no"
6245 LIBS
="$ac_save_LIBS"
6248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6249 echo "$ac_t""yes" 1>&6
6250 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6251 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6252 cat >> confdefs.h
<<EOF
6253 #define $ac_tr_lib 1
6256 LIBS
="-lsecurity $LIBS"
6259 echo "$ac_t""no" 1>&6
6262 for ac_func
in getprpwnam
6264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6265 echo "configure:6264: checking for $ac_func" >&5
6266 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6267 echo $ac_n "(cached) $ac_c" 1>&6
6269 cat > conftest.
$ac_ext <<EOF
6270 #line 6269 "configure"
6271 #include "confdefs.h"
6272 /* System header to define __stub macros and hopefully few prototypes,
6273 which can conflict with char $ac_func(); below. */
6275 /* Override any gcc2 internal prototype to avoid an error. */
6276 /* We use char because int might match the return type of a gcc2
6277 builtin and then its argument prototype would still apply. */
6282 /* The GNU C library defines this for functions which it implements
6283 to always fail with ENOSYS. Some functions are actually named
6284 something starting with __ and the normal name is an alias. */
6285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6293 if { (eval echo configure
:6292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6295 eval "ac_cv_func_$ac_func=yes"
6297 echo "configure: failed program was:" >&5
6298 cat conftest.
$ac_ext >&5
6300 eval "ac_cv_func_$ac_func=no"
6305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6306 echo "$ac_t""yes" 1>&6
6307 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6308 cat >> confdefs.h
<<EOF
6309 #define $ac_tr_func 1
6313 echo "$ac_t""no" 1>&6
6321 *-lsec*) for ac_func
in getprpwnam
6323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6324 echo "configure:6323: checking for $ac_func" >&5
6325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6326 echo $ac_n "(cached) $ac_c" 1>&6
6328 cat > conftest.
$ac_ext <<EOF
6329 #line 6328 "configure"
6330 #include "confdefs.h"
6331 /* System header to define __stub macros and hopefully few prototypes,
6332 which can conflict with char $ac_func(); below. */
6334 /* Override any gcc2 internal prototype to avoid an error. */
6335 /* We use char because int might match the return type of a gcc2
6336 builtin and then its argument prototype would still apply. */
6341 /* The GNU C library defines this for functions which it implements
6342 to always fail with ENOSYS. Some functions are actually named
6343 something starting with __ and the normal name is an alias. */
6344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6352 if { (eval echo configure
:6351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6354 eval "ac_cv_func_$ac_func=yes"
6356 echo "configure: failed program was:" >&5
6357 cat conftest.
$ac_ext >&5
6359 eval "ac_cv_func_$ac_func=no"
6364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6365 echo "$ac_t""yes" 1>&6
6366 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6367 cat >> confdefs.h
<<EOF
6368 #define $ac_tr_func 1
6372 echo "$ac_t""no" 1>&6
6376 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
6377 echo "configure:6376: checking for getprpwnam in -lsec" >&5
6378 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
6379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6380 echo $ac_n "(cached) $ac_c" 1>&6
6382 ac_save_LIBS
="$LIBS"
6384 cat > conftest.
$ac_ext <<EOF
6385 #line 6384 "configure"
6386 #include "confdefs.h"
6387 /* Override any gcc2 internal prototype to avoid an error. */
6388 /* We use char because int might match the return type of a gcc2
6389 builtin and then its argument prototype would still apply. */
6396 if { (eval echo configure
:6395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6398 eval "ac_cv_lib_$ac_lib_var=yes"
6400 echo "configure: failed program was:" >&5
6401 cat conftest.
$ac_ext >&5
6403 eval "ac_cv_lib_$ac_lib_var=no"
6406 LIBS
="$ac_save_LIBS"
6409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6410 echo "$ac_t""yes" 1>&6
6411 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6412 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6413 cat >> confdefs.h
<<EOF
6414 #define $ac_tr_lib 1
6420 echo "$ac_t""no" 1>&6
6423 for ac_func
in getprpwnam
6425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6426 echo "configure:6425: checking for $ac_func" >&5
6427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6428 echo $ac_n "(cached) $ac_c" 1>&6
6430 cat > conftest.
$ac_ext <<EOF
6431 #line 6430 "configure"
6432 #include "confdefs.h"
6433 /* System header to define __stub macros and hopefully few prototypes,
6434 which can conflict with char $ac_func(); below. */
6436 /* Override any gcc2 internal prototype to avoid an error. */
6437 /* We use char because int might match the return type of a gcc2
6438 builtin and then its argument prototype would still apply. */
6443 /* The GNU C library defines this for functions which it implements
6444 to always fail with ENOSYS. Some functions are actually named
6445 something starting with __ and the normal name is an alias. */
6446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6454 if { (eval echo configure
:6453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6456 eval "ac_cv_func_$ac_func=yes"
6458 echo "configure: failed program was:" >&5
6459 cat conftest.
$ac_ext >&5
6461 eval "ac_cv_func_$ac_func=no"
6466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6467 echo "$ac_t""yes" 1>&6
6468 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6469 cat >> confdefs.h
<<EOF
6470 #define $ac_tr_func 1
6474 echo "$ac_t""no" 1>&6
6482 # this bit needs to be modified for each OS that is suported by
6483 # smbwrapper. You need to specify how to created a shared library and
6484 # how to compile C code to produce PIC object files
6486 # these are the defaults, good for lots of systems
6490 # and these are for particular systems
6492 *linux
*) cat >> confdefs.h
<<\EOF
6496 *solaris
*) cat >> confdefs.h
<<\EOF
6502 *sunos
*) cat >> confdefs.h
<<\EOF
6508 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
6510 *irix
*) cat >> confdefs.h
<<\EOF
6514 ATTEMPT_WRAP32_BUILD
=yes
6516 *aix
*) cat >> confdefs.h
<<\EOF
6520 *hpux
*) cat >> confdefs.h
<<\EOF
6524 *qnx
*) cat >> confdefs.h
<<\EOF
6528 *osf
*) cat >> confdefs.h
<<\EOF
6532 *sco
*) cat >> confdefs.h
<<\EOF
6536 *next2
*) cat >> confdefs.h
<<\EOF
6540 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
6541 set dummy
groff; ac_word
=$2
6542 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6543 echo "configure:6542: checking for $ac_word" >&5
6544 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
6545 echo $ac_n "(cached) $ac_c" 1>&6
6547 if test -n "$ROFF"; then
6548 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
6550 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6551 for ac_dir
in $PATH; do
6552 test -z "$ac_dir" && ac_dir
=.
6553 if test -f $ac_dir/$ac_word; then
6554 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
6561 ROFF
="$ac_cv_prog_ROFF"
6562 if test -n "$ROFF"; then
6563 echo "$ac_t""$ROFF" 1>&6
6565 echo "$ac_t""no" 1>&6
6568 *sysv4.2
*) echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6569 echo "configure:6568: checking for strcasecmp in -lresolv" >&5
6570 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6571 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6572 echo $ac_n "(cached) $ac_c" 1>&6
6574 ac_save_LIBS
="$LIBS"
6575 LIBS
="-lresolv $LIBS"
6576 cat > conftest.
$ac_ext <<EOF
6577 #line 6576 "configure"
6578 #include "confdefs.h"
6579 /* Override any gcc2 internal prototype to avoid an error. */
6580 /* We use char because int might match the return type of a gcc2
6581 builtin and then its argument prototype would still apply. */
6588 if { (eval echo configure
:6587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6590 eval "ac_cv_lib_$ac_lib_var=yes"
6592 echo "configure: failed program was:" >&5
6593 cat conftest.
$ac_ext >&5
6595 eval "ac_cv_lib_$ac_lib_var=no"
6598 LIBS
="$ac_save_LIBS"
6601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6602 echo "$ac_t""yes" 1>&6
6603 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6604 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6605 cat >> confdefs.h
<<EOF
6606 #define $ac_tr_lib 1
6609 LIBS
="-lresolv $LIBS"
6612 echo "$ac_t""no" 1>&6
6617 # try to work out how to produce pic code with this compiler
6619 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
6620 echo "configure:6619: checking whether ${CC-cc} accepts -fpic" >&5
6621 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
6622 echo $ac_n "(cached) $ac_c" 1>&6
6624 echo 'void f(){}' > conftest.c
6625 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
6626 ac_cv_prog_cc_fpic
=yes
6628 ac_cv_prog_cc_fpic
=no
6634 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
6635 if test $ac_cv_prog_cc_fpic = yes; then
6638 if test x
$PICFLAG = x
; then
6639 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
6640 echo "configure:6639: checking whether ${CC-cc} accepts -Kpic" >&5
6641 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
6642 echo $ac_n "(cached) $ac_c" 1>&6
6644 echo 'void f(){}' > conftest.c
6645 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
6646 ac_cv_prog_cc_Kpic
=yes
6648 ac_cv_prog_cc_Kpic
=no
6654 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
6655 if test $ac_cv_prog_cc_Kpic = yes; then
6659 if test x
$PICFLAG = x
; then
6660 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
6661 echo "configure:6660: checking whether ${CC-cc} accepts -KPIC" >&5
6662 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
6663 echo $ac_n "(cached) $ac_c" 1>&6
6665 echo 'void f(){}' > conftest.c
6666 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
6667 ac_cv_prog_cc_KPIC
=yes
6669 ac_cv_prog_cc_KPIC
=no
6675 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
6676 if test $ac_cv_prog_cc_KPIC = yes; then
6683 echo $ac_n "checking for long long""... $ac_c" 1>&6
6684 echo "configure:6683: checking for long long" >&5
6685 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
6686 echo $ac_n "(cached) $ac_c" 1>&6
6689 if test "$cross_compiling" = yes; then
6690 samba_cv_have_longlong
=cross
6692 cat > conftest.
$ac_ext <<EOF
6693 #line 6692 "configure"
6694 #include "confdefs.h"
6696 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
6698 if { (eval echo configure
:6697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6700 samba_cv_have_longlong
=yes
6702 echo "configure: failed program was:" >&5
6703 cat conftest.
$ac_ext >&5
6705 samba_cv_have_longlong
=no
6712 echo "$ac_t""$samba_cv_have_longlong" 1>&6
6713 if test x
"$samba_cv_have_longlong" = x
"yes"; then
6714 cat >> confdefs.h
<<\EOF
6715 #define HAVE_LONGLONG 1
6720 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
6721 echo "configure:6720: checking for 64 bit off_t" >&5
6722 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
6723 echo $ac_n "(cached) $ac_c" 1>&6
6726 if test "$cross_compiling" = yes; then
6727 samba_cv_SIZEOF_OFF_T
=cross
6729 cat > conftest.
$ac_ext <<EOF
6730 #line 6729 "configure"
6731 #include "confdefs.h"
6733 #include <sys/stat.h>
6734 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
6736 if { (eval echo configure
:6735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6738 samba_cv_SIZEOF_OFF_T
=yes
6740 echo "configure: failed program was:" >&5
6741 cat conftest.
$ac_ext >&5
6743 samba_cv_SIZEOF_OFF_T
=no
6750 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
6751 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
6752 cat >> confdefs.h
<<\EOF
6753 #define SIZEOF_OFF_T 8
6758 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
6759 echo "configure:6758: checking for off64_t" >&5
6760 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
6761 echo $ac_n "(cached) $ac_c" 1>&6
6764 if test "$cross_compiling" = yes; then
6765 samba_cv_HAVE_OFF64_T
=cross
6767 cat > conftest.
$ac_ext <<EOF
6768 #line 6767 "configure"
6769 #include "confdefs.h"
6771 #include <sys/stat.h>
6772 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
6774 if { (eval echo configure
:6773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6776 samba_cv_HAVE_OFF64_T
=yes
6778 echo "configure: failed program was:" >&5
6779 cat conftest.
$ac_ext >&5
6781 samba_cv_HAVE_OFF64_T
=no
6788 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
6789 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
6790 cat >> confdefs.h
<<\EOF
6791 #define HAVE_OFF64_T 1
6796 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
6797 echo "configure:6796: checking for 64 bit ino_t" >&5
6798 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
6799 echo $ac_n "(cached) $ac_c" 1>&6
6802 if test "$cross_compiling" = yes; then
6803 samba_cv_SIZEOF_INO_T
=cross
6805 cat > conftest.
$ac_ext <<EOF
6806 #line 6805 "configure"
6807 #include "confdefs.h"
6809 #include <sys/stat.h>
6810 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
6812 if { (eval echo configure
:6811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6814 samba_cv_SIZEOF_INO_T
=yes
6816 echo "configure: failed program was:" >&5
6817 cat conftest.
$ac_ext >&5
6819 samba_cv_SIZEOF_INO_T
=no
6826 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
6827 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
6828 cat >> confdefs.h
<<\EOF
6829 #define SIZEOF_INO_T 8
6834 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
6835 echo "configure:6834: checking for ino64_t" >&5
6836 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
6837 echo $ac_n "(cached) $ac_c" 1>&6
6840 if test "$cross_compiling" = yes; then
6841 samba_cv_HAVE_INO64_T
=cross
6843 cat > conftest.
$ac_ext <<EOF
6844 #line 6843 "configure"
6845 #include "confdefs.h"
6847 #include <sys/stat.h>
6848 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
6850 if { (eval echo configure
:6849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6852 samba_cv_HAVE_INO64_T
=yes
6854 echo "configure: failed program was:" >&5
6855 cat conftest.
$ac_ext >&5
6857 samba_cv_HAVE_INO64_T
=no
6864 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
6865 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
6866 cat >> confdefs.h
<<\EOF
6867 #define HAVE_INO64_T 1
6872 echo $ac_n "checking for union semun""... $ac_c" 1>&6
6873 echo "configure:6872: checking for union semun" >&5
6874 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
6875 echo $ac_n "(cached) $ac_c" 1>&6
6878 if test "$cross_compiling" = yes; then
6879 samba_cv_HAVE_UNION_SEMUN
=cross
6881 cat > conftest.
$ac_ext <<EOF
6882 #line 6881 "configure"
6883 #include "confdefs.h"
6885 #include <sys/types.h>
6886 #include <sys/ipc.h>
6887 #include <sys/sem.h>
6888 main() { union semun ss; exit(0); }
6890 if { (eval echo configure
:6889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6892 samba_cv_HAVE_UNION_SEMUN
=yes
6894 echo "configure: failed program was:" >&5
6895 cat conftest.
$ac_ext >&5
6897 samba_cv_HAVE_UNION_SEMUN
=no
6904 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
6905 if test x
"$samba_cv_HAVE_UNION_SEMUN" = x
"yes"; then
6906 cat >> confdefs.h
<<\EOF
6907 #define HAVE_UNION_SEMUN 1
6912 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
6913 echo "configure:6912: checking for unsigned char" >&5
6914 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
6915 echo $ac_n "(cached) $ac_c" 1>&6
6918 if test "$cross_compiling" = yes; then
6919 samba_cv_HAVE_UNSIGNED_CHAR
=cross
6921 cat > conftest.
$ac_ext <<EOF
6922 #line 6921 "configure"
6923 #include "confdefs.h"
6925 main() { char c; c=250; exit((c > 0)?0:1); }
6927 if { (eval echo configure
:6926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6929 samba_cv_HAVE_UNSIGNED_CHAR
=yes
6931 echo "configure: failed program was:" >&5
6932 cat conftest.
$ac_ext >&5
6934 samba_cv_HAVE_UNSIGNED_CHAR
=no
6941 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
6942 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
6943 cat >> confdefs.h
<<\EOF
6944 #define HAVE_UNSIGNED_CHAR 1
6949 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
6950 echo "configure:6949: checking for sin_len in sock" >&5
6951 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
6952 echo $ac_n "(cached) $ac_c" 1>&6
6955 cat > conftest.
$ac_ext <<EOF
6956 #line 6955 "configure"
6957 #include "confdefs.h"
6958 #include <sys/types.h>
6959 #include <sys/socket.h>
6960 #include <netinet/in.h>
6962 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
6965 if { (eval echo configure
:6964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6967 samba_cv_HAVE_SOCK_SIN_LEN
=yes
6969 echo "configure: failed program was:" >&5
6970 cat conftest.
$ac_ext >&5
6972 samba_cv_HAVE_SOCK_SIN_LEN
=no
6977 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
6978 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
6979 cat >> confdefs.h
<<\EOF
6980 #define HAVE_SOCK_SIN_LEN 1
6985 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
6986 echo "configure:6985: checking whether seekdir returns void" >&5
6987 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
6988 echo $ac_n "(cached) $ac_c" 1>&6
6991 cat > conftest.
$ac_ext <<EOF
6992 #line 6991 "configure"
6993 #include "confdefs.h"
6994 #include <sys/types.h>
6996 void seekdir(DIR *d, long loc) { return; }
7001 if { (eval echo configure
:7000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7003 samba_cv_SEEKDIR_RETURNS_VOID
=yes
7005 echo "configure: failed program was:" >&5
7006 cat conftest.
$ac_ext >&5
7008 samba_cv_SEEKDIR_RETURNS_VOID
=no
7013 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
7014 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
7015 cat >> confdefs.h
<<\EOF
7016 #define SEEKDIR_RETURNS_VOID 1
7021 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
7022 echo "configure:7021: checking for __FILE__ macro" >&5
7023 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
7024 echo $ac_n "(cached) $ac_c" 1>&6
7027 cat > conftest.
$ac_ext <<EOF
7028 #line 7027 "configure"
7029 #include "confdefs.h"
7032 printf("%s\n", __FILE__);
7035 if { (eval echo configure
:7034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7037 samba_cv_HAVE_FILE_MACRO
=yes
7039 echo "configure: failed program was:" >&5
7040 cat conftest.
$ac_ext >&5
7042 samba_cv_HAVE_FILE_MACRO
=no
7047 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
7048 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
7049 cat >> confdefs.h
<<\EOF
7050 #define HAVE_FILE_MACRO 1
7055 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
7056 echo "configure:7055: checking for __FUNCTION__ macro" >&5
7057 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
7058 echo $ac_n "(cached) $ac_c" 1>&6
7061 cat > conftest.
$ac_ext <<EOF
7062 #line 7061 "configure"
7063 #include "confdefs.h"
7066 printf("%s\n", __FUNCTION__);
7069 if { (eval echo configure
:7068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7071 samba_cv_HAVE_FUNCTION_MACRO
=yes
7073 echo "configure: failed program was:" >&5
7074 cat conftest.
$ac_ext >&5
7076 samba_cv_HAVE_FUNCTION_MACRO
=no
7081 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
7082 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
7083 cat >> confdefs.h
<<\EOF
7084 #define HAVE_FUNCTION_MACRO 1
7089 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
7090 echo "configure:7089: checking if gettimeofday takes tz argument" >&5
7091 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
7092 echo $ac_n "(cached) $ac_c" 1>&6
7095 if test "$cross_compiling" = yes; then
7096 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
7098 cat > conftest.
$ac_ext <<EOF
7099 #line 7098 "configure"
7100 #include "confdefs.h"
7102 #include <sys/time.h>
7104 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
7106 if { (eval echo configure
:7105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7108 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
7110 echo "configure: failed program was:" >&5
7111 cat conftest.
$ac_ext >&5
7113 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
7120 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
7121 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
7122 cat >> confdefs.h
<<\EOF
7123 #define HAVE_GETTIMEOFDAY_TZ 1
7129 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
7130 echo "configure:7129: checking for broken readdir" >&5
7131 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
7132 echo $ac_n "(cached) $ac_c" 1>&6
7135 if test "$cross_compiling" = yes; then
7136 samba_cv_HAVE_BROKEN_READDIR
=cross
7138 cat > conftest.
$ac_ext <<EOF
7139 #line 7138 "configure"
7140 #include "confdefs.h"
7141 #include <sys/types.h>
7143 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
7144 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
7145 di->d_name[0] == 0) exit(0); exit(1);}
7147 if { (eval echo configure
:7146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7149 samba_cv_HAVE_BROKEN_READDIR
=yes
7151 echo "configure: failed program was:" >&5
7152 cat conftest.
$ac_ext >&5
7154 samba_cv_HAVE_BROKEN_READDIR
=no
7161 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
7162 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
7163 cat >> confdefs.h
<<\EOF
7164 #define HAVE_BROKEN_READDIR 1
7169 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
7170 echo "configure:7169: checking for utimbuf" >&5
7171 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
7172 echo $ac_n "(cached) $ac_c" 1>&6
7175 cat > conftest.
$ac_ext <<EOF
7176 #line 7175 "configure"
7177 #include "confdefs.h"
7178 #include <sys/types.h>
7181 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
7184 if { (eval echo configure
:7183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7186 samba_cv_HAVE_UTIMBUF
=yes
7188 echo "configure: failed program was:" >&5
7189 cat conftest.
$ac_ext >&5
7191 samba_cv_HAVE_UTIMBUF
=no
7196 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
7197 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
7198 cat >> confdefs.h
<<\EOF
7199 #define HAVE_UTIMBUF 1
7204 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
7205 echo "configure:7204: checking for kernel oplock type definitions" >&5
7206 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
7207 echo $ac_n "(cached) $ac_c" 1>&6
7210 cat > conftest.
$ac_ext <<EOF
7211 #line 7210 "configure"
7212 #include "confdefs.h"
7213 #include <sys/types.h>
7216 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
7219 if { (eval echo configure
:7218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7221 samba_cv_HAVE_KERNEL_OPLOCKS
=yes
7223 echo "configure: failed program was:" >&5
7224 cat conftest.
$ac_ext >&5
7226 samba_cv_HAVE_KERNEL_OPLOCKS
=no
7231 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
7232 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS" = x
"yes"; then
7233 cat >> confdefs.h
<<\EOF
7234 #define HAVE_KERNEL_OPLOCKS 1
7239 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
7240 echo "configure:7239: checking for irix specific capabilities" >&5
7241 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
7242 echo $ac_n "(cached) $ac_c" 1>&6
7245 if test "$cross_compiling" = yes; then
7246 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
7248 cat > conftest.
$ac_ext <<EOF
7249 #line 7248 "configure"
7250 #include "confdefs.h"
7251 #include <sys/types.h>
7252 #include <sys/capability.h>
7255 if ((cap = cap_get_proc()) == NULL)
7257 cap->cap_effective |= CAP_NETWORK_MGT;
7258 cap->cap_inheritable |= CAP_NETWORK_MGT;
7264 if { (eval echo configure
:7263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7266 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
7268 echo "configure: failed program was:" >&5
7269 cat conftest.
$ac_ext >&5
7271 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
7278 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
7279 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
7280 cat >> confdefs.h
<<\EOF
7281 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
7287 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
7288 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
7291 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7292 echo "configure:7291: checking for int16 typedef included by rpc/rpc.h" >&5
7293 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
7294 echo $ac_n "(cached) $ac_c" 1>&6
7297 cat > conftest.
$ac_ext <<EOF
7298 #line 7297 "configure"
7299 #include "confdefs.h"
7300 #include <sys/types.h>
7301 #if defined(HAVE_RPC_RPC_H)
7302 #include <rpc/rpc.h>
7308 if { (eval echo configure
:7307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7310 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
7312 echo "configure: failed program was:" >&5
7313 cat conftest.
$ac_ext >&5
7315 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
7320 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
7321 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
7322 cat >> confdefs.h
<<\EOF
7323 #define HAVE_INT16_FROM_RPC_RPC_H 1
7328 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7329 echo "configure:7328: checking for uint16 typedef included by rpc/rpc.h" >&5
7330 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
7331 echo $ac_n "(cached) $ac_c" 1>&6
7334 cat > conftest.
$ac_ext <<EOF
7335 #line 7334 "configure"
7336 #include "confdefs.h"
7337 #include <sys/types.h>
7338 #if defined(HAVE_RPC_RPC_H)
7339 #include <rpc/rpc.h>
7345 if { (eval echo configure
:7344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7347 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
7349 echo "configure: failed program was:" >&5
7350 cat conftest.
$ac_ext >&5
7352 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
7357 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
7358 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
7359 cat >> confdefs.h
<<\EOF
7360 #define HAVE_UINT16_FROM_RPC_RPC_H 1
7365 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7366 echo "configure:7365: checking for int32 typedef included by rpc/rpc.h" >&5
7367 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
7368 echo $ac_n "(cached) $ac_c" 1>&6
7371 cat > conftest.
$ac_ext <<EOF
7372 #line 7371 "configure"
7373 #include "confdefs.h"
7374 #include <sys/types.h>
7375 #if defined(HAVE_RPC_RPC_H)
7376 #include <rpc/rpc.h>
7382 if { (eval echo configure
:7381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7384 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
7386 echo "configure: failed program was:" >&5
7387 cat conftest.
$ac_ext >&5
7389 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
7394 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
7395 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
7396 cat >> confdefs.h
<<\EOF
7397 #define HAVE_INT32_FROM_RPC_RPC_H 1
7402 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7403 echo "configure:7402: checking for uint32 typedef included by rpc/rpc.h" >&5
7404 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
7405 echo $ac_n "(cached) $ac_c" 1>&6
7408 cat > conftest.
$ac_ext <<EOF
7409 #line 7408 "configure"
7410 #include "confdefs.h"
7411 #include <sys/types.h>
7412 #if defined(HAVE_RPC_RPC_H)
7413 #include <rpc/rpc.h>
7419 if { (eval echo configure
:7418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7421 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
7423 echo "configure: failed program was:" >&5
7424 cat conftest.
$ac_ext >&5
7426 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
7431 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
7432 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
7433 cat >> confdefs.h
<<\EOF
7434 #define HAVE_UINT32_FROM_RPC_RPC_H 1
7439 echo $ac_n "checking for test routines""... $ac_c" 1>&6
7440 echo "configure:7439: checking for test routines" >&5
7441 if test "$cross_compiling" = yes; then
7442 echo "configure: warning: cannot run when cross-compiling" 1>&2
7444 cat > conftest.
$ac_ext <<EOF
7445 #line 7444 "configure"
7446 #include "confdefs.h"
7447 #include "${srcdir-.}/tests/trivial.c"
7449 if { (eval echo configure
:7448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7451 echo "$ac_t""yes" 1>&6
7453 echo "configure: failed program was:" >&5
7454 cat conftest.
$ac_ext >&5
7456 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
7462 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
7463 echo "configure:7462: checking for ftruncate extend" >&5
7464 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
7465 echo $ac_n "(cached) $ac_c" 1>&6
7468 if test "$cross_compiling" = yes; then
7469 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
7471 cat > conftest.
$ac_ext <<EOF
7472 #line 7471 "configure"
7473 #include "confdefs.h"
7474 #include "${srcdir-.}/tests/ftruncate.c"
7476 if { (eval echo configure
:7475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7478 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
7480 echo "configure: failed program was:" >&5
7481 cat conftest.
$ac_ext >&5
7483 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
7490 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
7491 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
7492 cat >> confdefs.h
<<\EOF
7493 #define HAVE_FTRUNCATE_EXTEND 1
7498 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
7499 echo "configure:7498: checking for broken getgroups" >&5
7500 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
7501 echo $ac_n "(cached) $ac_c" 1>&6
7504 if test "$cross_compiling" = yes; then
7505 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
7507 cat > conftest.
$ac_ext <<EOF
7508 #line 7507 "configure"
7509 #include "confdefs.h"
7510 #include "${srcdir-.}/tests/getgroups.c"
7512 if { (eval echo configure
:7511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7514 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
7516 echo "configure: failed program was:" >&5
7517 cat conftest.
$ac_ext >&5
7519 samba_cv_HAVE_BROKEN_GETGROUPS
=no
7526 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
7527 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
7528 cat >> confdefs.h
<<\EOF
7529 #define HAVE_BROKEN_GETGROUPS 1
7534 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
7535 echo "configure:7534: checking whether getpass should be replaced" >&5
7536 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
7537 echo $ac_n "(cached) $ac_c" 1>&6
7540 SAVE_CPPFLAGS
="$CPPFLAGS"
7541 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx"
7542 cat > conftest.
$ac_ext <<EOF
7543 #line 7542 "configure"
7544 #include "confdefs.h"
7546 #define REPLACE_GETPASS 1
7547 #define NO_CONFIG_H 1
7548 #define main dont_declare_main
7549 #include "${srcdir-.}/lib/getsmbpass.c"
7556 if { (eval echo configure
:7555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7558 samba_cv_REPLACE_GETPASS
=yes
7560 echo "configure: failed program was:" >&5
7561 cat conftest.
$ac_ext >&5
7563 samba_cv_REPLACE_GETPASS
=no
7566 CPPFLAGS
="$SAVE_CPPFLAGS"
7570 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
7571 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
7572 cat >> confdefs.h
<<\EOF
7573 #define REPLACE_GETPASS 1
7578 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
7579 echo "configure:7578: checking for broken inet_ntoa" >&5
7580 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
7581 echo $ac_n "(cached) $ac_c" 1>&6
7584 if test "$cross_compiling" = yes; then
7585 samba_cv_REPLACE_INET_NTOA
=cross
7587 cat > conftest.
$ac_ext <<EOF
7588 #line 7587 "configure"
7589 #include "confdefs.h"
7592 #include <sys/types.h>
7593 #include <netinet/in.h>
7594 #include <arpa/inet.h>
7595 main() { struct in_addr ip; ip.s_addr = 0x12345678;
7596 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
7597 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
7600 if { (eval echo configure
:7599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7602 samba_cv_REPLACE_INET_NTOA
=yes
7604 echo "configure: failed program was:" >&5
7605 cat conftest.
$ac_ext >&5
7607 samba_cv_REPLACE_INET_NTOA
=no
7614 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
7615 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
7616 cat >> confdefs.h
<<\EOF
7617 #define REPLACE_INET_NTOA 1
7622 echo $ac_n "checking for root""... $ac_c" 1>&6
7623 echo "configure:7622: checking for root" >&5
7624 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
7625 echo $ac_n "(cached) $ac_c" 1>&6
7628 if test "$cross_compiling" = yes; then
7629 samba_cv_HAVE_ROOT
=cross
7631 cat > conftest.
$ac_ext <<EOF
7632 #line 7631 "configure"
7633 #include "confdefs.h"
7634 main() { exit(getuid() != 0); }
7636 if { (eval echo configure
:7635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7638 samba_cv_HAVE_ROOT
=yes
7640 echo "configure: failed program was:" >&5
7641 cat conftest.
$ac_ext >&5
7643 samba_cv_HAVE_ROOT
=no
7650 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
7651 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
7652 cat >> confdefs.h
<<\EOF
7657 echo "configure: warning: running as non-root will disable some tests" 1>&2
7661 echo $ac_n "checking for netmask ifconf""... $ac_c" 1>&6
7662 echo "configure:7661: checking for netmask ifconf" >&5
7663 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFCONF'+set}'`\" = set"; then
7664 echo $ac_n "(cached) $ac_c" 1>&6
7667 if test "$cross_compiling" = yes; then
7668 samba_cv_HAVE_NETMASK_IFCONF
=cross
7670 cat > conftest.
$ac_ext <<EOF
7671 #line 7670 "configure"
7672 #include "confdefs.h"
7674 #define HAVE_NETMASK_IFCONF 1
7676 #include "${srcdir-.}/lib/netmask.c"
7678 if { (eval echo configure
:7677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7680 samba_cv_HAVE_NETMASK_IFCONF
=yes
7682 echo "configure: failed program was:" >&5
7683 cat conftest.
$ac_ext >&5
7685 samba_cv_HAVE_NETMASK_IFCONF
=no
7692 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFCONF" 1>&6
7693 if test x
"$samba_cv_HAVE_NETMASK_IFCONF" = x
"yes"; then
7694 netmask
=yes;cat >> confdefs.h
<<\EOF
7695 #define HAVE_NETMASK_IFCONF 1
7700 if test $netmask = no
; then
7701 echo $ac_n "checking for netmask ifreq""... $ac_c" 1>&6
7702 echo "configure:7701: checking for netmask ifreq" >&5
7703 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFREQ'+set}'`\" = set"; then
7704 echo $ac_n "(cached) $ac_c" 1>&6
7707 if test "$cross_compiling" = yes; then
7708 samba_cv_HAVE_NETMASK_IFREQ
=cross
7710 cat > conftest.
$ac_ext <<EOF
7711 #line 7710 "configure"
7712 #include "confdefs.h"
7714 #define HAVE_NETMASK_IFREQ 1
7716 #include "${srcdir-.}/lib/netmask.c"
7718 if { (eval echo configure
:7717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7720 samba_cv_HAVE_NETMASK_IFREQ
=yes
7722 echo "configure: failed program was:" >&5
7723 cat conftest.
$ac_ext >&5
7725 samba_cv_HAVE_NETMASK_IFREQ
=no
7732 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFREQ" 1>&6
7733 if test x
"$samba_cv_HAVE_NETMASK_IFREQ" = x
"yes"; then
7734 netmask
=yes;cat >> confdefs.h
<<\EOF
7735 #define HAVE_NETMASK_IFREQ 1
7741 if test $netmask = no
; then
7742 echo $ac_n "checking for netmask AIX""... $ac_c" 1>&6
7743 echo "configure:7742: checking for netmask AIX" >&5
7744 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_AIX'+set}'`\" = set"; then
7745 echo $ac_n "(cached) $ac_c" 1>&6
7748 if test "$cross_compiling" = yes; then
7749 samba_cv_HAVE_NETMASK_AIX
=cross
7751 cat > conftest.
$ac_ext <<EOF
7752 #line 7751 "configure"
7753 #include "confdefs.h"
7755 #define HAVE_NETMASK_AIX 1
7757 #include "${srcdir-.}/lib/netmask.c"
7759 if { (eval echo configure
:7758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7761 samba_cv_HAVE_NETMASK_AIX
=yes
7763 echo "configure: failed program was:" >&5
7764 cat conftest.
$ac_ext >&5
7766 samba_cv_HAVE_NETMASK_AIX
=no
7773 echo "$ac_t""$samba_cv_HAVE_NETMASK_AIX" 1>&6
7774 if test x
"$samba_cv_HAVE_NETMASK_AIX" = x
"yes"; then
7775 netmask
=yes;cat >> confdefs.h
<<\EOF
7776 #define HAVE_NETMASK_AIX 1
7782 echo $ac_n "checking for trapdoor seteuid""... $ac_c" 1>&6
7783 echo "configure:7782: checking for trapdoor seteuid" >&5
7784 if eval "test \"`echo '$''{'samba_cv_HAVE_TRAPDOOR_UID'+set}'`\" = set"; then
7785 echo $ac_n "(cached) $ac_c" 1>&6
7788 if test "$cross_compiling" = yes; then
7791 cat > conftest.
$ac_ext <<EOF
7792 #line 7791 "configure"
7793 #include "confdefs.h"
7794 #include "${srcdir-.}/tests/trapdoor.c"
7796 if { (eval echo configure
:7795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7798 samba_cv_HAVE_TRAPDOOR_UID
=no
7800 echo "configure: failed program was:" >&5
7801 cat conftest.
$ac_ext >&5
7803 samba_cv_HAVE_TRAPDOOR_UID
=yes
7810 echo "$ac_t""$samba_cv_HAVE_TRAPDOOR_UID" 1>&6
7811 if test x
"$samba_cv_HAVE_TRAPDOOR_UID" = x
"yes"; then
7812 cat >> confdefs.h
<<\EOF
7813 #define HAVE_TRAPDOOR_UID 1
7818 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
7819 echo "configure:7818: checking for shared mmap" >&5
7820 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
7821 echo $ac_n "(cached) $ac_c" 1>&6
7824 if test "$cross_compiling" = yes; then
7825 samba_cv_HAVE_SHARED_MMAP
=cross
7827 cat > conftest.
$ac_ext <<EOF
7828 #line 7827 "configure"
7829 #include "confdefs.h"
7830 #include "${srcdir-.}/tests/shared_mmap.c"
7832 if { (eval echo configure
:7831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7834 samba_cv_HAVE_SHARED_MMAP
=yes
7836 echo "configure: failed program was:" >&5
7837 cat conftest.
$ac_ext >&5
7839 samba_cv_HAVE_SHARED_MMAP
=no
7846 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
7847 if test x
"$samba_cv_HAVE_SHARED_MMAP" = x
"yes"; then
7848 cat >> confdefs.h
<<\EOF
7849 #define HAVE_SHARED_MMAP 1
7854 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
7855 echo "configure:7854: checking for fcntl locking" >&5
7856 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
7857 echo $ac_n "(cached) $ac_c" 1>&6
7860 if test "$cross_compiling" = yes; then
7861 samba_cv_HAVE_FCNTL_LOCK
=cross
7863 cat > conftest.
$ac_ext <<EOF
7864 #line 7863 "configure"
7865 #include "confdefs.h"
7866 #include "${srcdir-.}/tests/fcntl_lock.c"
7868 if { (eval echo configure
:7867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7870 samba_cv_HAVE_FCNTL_LOCK
=yes
7872 echo "configure: failed program was:" >&5
7873 cat conftest.
$ac_ext >&5
7875 samba_cv_HAVE_FCNTL_LOCK
=no
7882 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
7883 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
7884 cat >> confdefs.h
<<\EOF
7885 #define HAVE_FCNTL_LOCK 1
7890 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
7891 echo "configure:7890: checking for 64 bit fcntl locking" >&5
7892 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
7893 echo $ac_n "(cached) $ac_c" 1>&6
7896 if test "$cross_compiling" = yes; then
7897 samba_cv_HAVE_STRUCT_FLOCK64
=cross
7899 cat > conftest.
$ac_ext <<EOF
7900 #line 7899 "configure"
7901 #include "confdefs.h"
7910 #ifdef HAVE_SYS_FCNTL_H
7911 #include <sys/fcntl.h>
7913 main() { struct flock64 fl64;
7914 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
7921 if { (eval echo configure
:7920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7923 samba_cv_HAVE_STRUCT_FLOCK64
=yes
7925 echo "configure: failed program was:" >&5
7926 cat conftest.
$ac_ext >&5
7928 samba_cv_HAVE_STRUCT_FLOCK64
=no
7935 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
7936 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
7937 cat >> confdefs.h
<<\EOF
7938 #define HAVE_STRUCT_FLOCK64 1
7943 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
7944 echo "configure:7943: checking for sysv ipc" >&5
7945 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
7946 echo $ac_n "(cached) $ac_c" 1>&6
7949 if test "$cross_compiling" = yes; then
7950 samba_cv_HAVE_SYSV_IPC
=cross
7952 cat > conftest.
$ac_ext <<EOF
7953 #line 7952 "configure"
7954 #include "confdefs.h"
7955 #include "${srcdir-.}/tests/sysv_ipc.c"
7957 if { (eval echo configure
:7956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
7959 samba_cv_HAVE_SYSV_IPC
=yes
7961 echo "configure: failed program was:" >&5
7962 cat conftest.
$ac_ext >&5
7964 samba_cv_HAVE_SYSV_IPC
=no
7971 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
7972 if test x
"$samba_cv_HAVE_SYSV_IPC" = x
"yes"; then
7973 cat >> confdefs.h
<<\EOF
7974 #define HAVE_SYSV_IPC 1
7979 #################################################
7980 # check for smbwrapper support
7981 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
7982 echo "configure:7981: checking whether to use smbwrapper" >&5
7983 # Check whether --with-smbwrapper or --without-smbwrapper was given.
7984 if test "${with_smbwrapper+set}" = set; then
7985 withval
="$with_smbwrapper"
7988 echo "$ac_t""yes" 1>&6
7989 cat >> confdefs.h
<<\EOF
7990 #define WITH_SMBWRAPPER 1
7993 WRAP
="bin/smbsh bin/smbwrapper.so"
7995 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
7998 WRAP32
=bin
/smbwrapper
.32.so
8001 # Conditions under which smbwrapper should not be built.
8003 if test x
$PICFLAG = x
; then
8004 echo No support
for PIC code
- disabling smbwrapper and smbsh
8007 elif test x
$ac_cv_func_syscall = xno
; then
8008 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
8014 echo "$ac_t""no" 1>&6
8018 echo "$ac_t""no" 1>&6
8023 #################################################
8024 # check for the AFS filesystem
8025 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
8026 echo "configure:8025: checking whether to use AFS" >&5
8027 # Check whether --with-afs or --without-afs was given.
8028 if test "${with_afs+set}" = set; then
8032 echo "$ac_t""yes" 1>&6
8033 cat >> confdefs.h
<<\EOF
8039 echo "$ac_t""no" 1>&6
8043 echo "$ac_t""no" 1>&6
8049 #################################################
8050 # check for the DFS auth system
8051 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
8052 echo "configure:8051: checking whether to use DFS auth" >&5
8053 # Check whether --with-dfs or --without-dfs was given.
8054 if test "${with_dfs+set}" = set; then
8058 echo "$ac_t""yes" 1>&6
8059 cat >> confdefs.h
<<\EOF
8065 echo "$ac_t""no" 1>&6
8069 echo "$ac_t""no" 1>&6
8074 #################################################
8075 # check for Kerberos IV auth system
8076 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
8077 echo "configure:8076: checking whether to use Kerberos IV" >&5
8078 # Check whether --with-krb4 or --without-krb4 was given.
8079 if test "${with_krb4+set}" = set; then
8080 withval
="$with_krb4"
8081 echo "$ac_t""yes" 1>&6
8082 cat >> confdefs.h
<<\EOF
8086 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
8087 echo "configure:8086: checking for dn_expand in -lresolv" >&5
8088 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
8089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8090 echo $ac_n "(cached) $ac_c" 1>&6
8092 ac_save_LIBS
="$LIBS"
8093 LIBS
="-lresolv $LIBS"
8094 cat > conftest.
$ac_ext <<EOF
8095 #line 8094 "configure"
8096 #include "confdefs.h"
8097 /* Override any gcc2 internal prototype to avoid an error. */
8098 /* We use char because int might match the return type of a gcc2
8099 builtin and then its argument prototype would still apply. */
8106 if { (eval echo configure
:8105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
8108 eval "ac_cv_lib_$ac_lib_var=yes"
8110 echo "configure: failed program was:" >&5
8111 cat conftest.
$ac_ext >&5
8113 eval "ac_cv_lib_$ac_lib_var=no"
8116 LIBS
="$ac_save_LIBS"
8119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8120 echo "$ac_t""yes" 1>&6
8121 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8122 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8123 cat >> confdefs.h
<<EOF
8124 #define $ac_tr_lib 1
8127 LIBS
="-lresolv $LIBS"
8130 echo "$ac_t""no" 1>&6
8133 LIBS
="$LIBS -lkrb -ldes"
8134 CFLAGS
="$CFLAGS -I$withval/include"
8135 LDFLAGS
="$LDFLAGS -L$withval/lib"
8137 echo "$ac_t""no" 1>&6
8142 #################################################
8143 # check for automount support
8144 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
8145 echo "configure:8144: checking whether to use AUTOMOUNT" >&5
8146 # Check whether --with-automount or --without-automount was given.
8147 if test "${with_automount+set}" = set; then
8148 withval
="$with_automount"
8151 echo "$ac_t""yes" 1>&6
8152 cat >> confdefs.h
<<\EOF
8153 #define WITH_AUTOMOUNT 1
8158 echo "$ac_t""no" 1>&6
8162 echo "$ac_t""no" 1>&6
8167 #################################################
8168 # check for smbmount support
8169 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
8170 echo "configure:8169: checking whether to use SMBMOUNT" >&5
8171 # Check whether --with-smbmount or --without-smbmount was given.
8172 if test "${with_smbmount+set}" = set; then
8173 withval
="$with_smbmount"
8176 echo "$ac_t""yes" 1>&6
8177 cat >> confdefs.h
<<\EOF
8178 #define WITH_SMBMOUNT 1
8181 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
8184 echo "$ac_t""no" 1>&6
8189 echo "$ac_t""no" 1>&6
8195 #################################################
8196 # check for a LDAP password database
8197 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
8198 echo "configure:8197: checking whether to use LDAP password database" >&5
8199 # Check whether --with-ldap or --without-ldap was given.
8200 if test "${with_ldap+set}" = set; then
8201 withval
="$with_ldap"
8204 echo "$ac_t""yes" 1>&6
8205 cat >> confdefs.h
<<\EOF
8209 LIBS
="$LIBS -lldap -llber"
8212 echo "$ac_t""no" 1>&6
8216 echo "$ac_t""no" 1>&6
8221 #################################################
8222 # check for a NISPLUS password database
8223 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
8224 echo "configure:8223: checking whether to use NISPLUS password database" >&5
8225 # Check whether --with-nisplus or --without-nisplus was given.
8226 if test "${with_nisplus+set}" = set; then
8227 withval
="$with_nisplus"
8230 echo "$ac_t""yes" 1>&6
8231 cat >> confdefs.h
<<\EOF
8232 #define WITH_NISPLUS 1
8237 echo "$ac_t""no" 1>&6
8241 echo "$ac_t""no" 1>&6
8246 #################################################
8247 # check for a NISPLUS_HOME support
8248 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
8249 echo "configure:8248: checking whether to use NISPLUS_HOME" >&5
8250 # Check whether --with-nisplus-home or --without-nisplus-home was given.
8251 if test "${with_nisplus_home+set}" = set; then
8252 withval
="$with_nisplus_home"
8255 echo "$ac_t""yes" 1>&6
8256 cat >> confdefs.h
<<\EOF
8257 #define WITH_NISPLUS_HOME 1
8262 echo "$ac_t""no" 1>&6
8266 echo "$ac_t""no" 1>&6
8271 #################################################
8272 # check for the secure socket layer
8273 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
8274 echo "configure:8273: checking whether to use SSL" >&5
8275 # Check whether --with-ssl or --without-ssl was given.
8276 if test "${with_ssl+set}" = set; then
8280 echo "$ac_t""yes" 1>&6
8281 cat >> confdefs.h
<<\EOF
8285 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
8289 echo "$ac_t""no" 1>&6
8293 echo "$ac_t""no" 1>&6
8298 #################################################
8299 # check for experimental mmap support
8300 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
8301 echo "configure:8298: checking whether to use MMAP" >&5
8302 # Check whether --with-mmap or --without-mmap was given.
8303 if test "${with_mmap+set}" = set; then
8304 withval
="$with_mmap"
8307 echo "$ac_t""yes" 1>&6
8308 cat >> confdefs.h
<<\EOF
8314 echo "$ac_t""no" 1>&6
8318 echo "$ac_t""no" 1>&6
8323 #################################################
8324 # check for syslog logging
8325 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
8326 echo "configure:8323: checking whether to use syslog logging" >&5
8327 # Check whether --with-syslog or --without-syslog was given.
8328 if test "${with_syslog+set}" = set; then
8329 withval
="$with_syslog"
8332 echo "$ac_t""yes" 1>&6
8333 cat >> confdefs.h
<<\EOF
8334 #define WITH_SYSLOG 1
8339 echo "$ac_t""no" 1>&6
8343 echo "$ac_t""no" 1>&6
8348 #################################################
8349 # check for experimental netatalk resource fork support
8350 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
8351 echo "configure:8348: checking whether to support netatalk" >&5
8352 # Check whether --with-netatalk or --without-netatalk was given.
8353 if test "${with_netatalk+set}" = set; then
8354 withval
="$with_netatalk"
8357 echo "$ac_t""yes" 1>&6
8358 cat >> confdefs.h
<<\EOF
8359 #define WITH_NETATALK 1
8364 echo "$ac_t""no" 1>&6
8368 echo "$ac_t""no" 1>&6
8373 #################################################
8374 # check for experimental disk-quotas support
8375 QUOTAOBJS
=noquotas.o
8377 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
8378 echo "configure:8375: checking whether to support disk-quotas" >&5
8379 # Check whether --with-quotas or --without-quotas was given.
8380 if test "${with_quotas+set}" = set; then
8381 withval
="$with_quotas"
8384 echo "$ac_t""yes" 1>&6
8388 echo "$ac_t""no" 1>&6
8392 echo "$ac_t""no" 1>&6
8398 #################################################
8399 # these tests are taken from the GNU fileutils package
8400 echo "checking how to get filesystem space usage" 1>&6
8401 echo "configure:8398: checking how to get filesystem space usage" >&5
8404 # Test for statvfs64.
8405 if test $space = no
; then
8407 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
8408 echo "configure:8405: checking statvfs64 function (SVR4)" >&5
8409 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
8410 echo $ac_n "(cached) $ac_c" 1>&6
8412 if test "$cross_compiling" = yes; then
8413 fu_cv_sys_stat_statvfs64
=cross
8415 cat > conftest.
$ac_ext <<EOF
8416 #line 8413 "configure"
8417 #include "confdefs.h"
8419 #include <sys/types.h>
8420 #include <sys/statvfs.h>
8423 struct statvfs64 fsd;
8424 exit (statfs64 (".", &fsd));
8427 if { (eval echo configure
:8424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8429 fu_cv_sys_stat_statvfs64
=yes
8431 echo "configure: failed program was:" >&5
8432 cat conftest.
$ac_ext >&5
8434 fu_cv_sys_stat_statvfs64
=no
8441 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
8442 if test $fu_cv_sys_stat_statvfs64 = yes; then
8444 cat >> confdefs.h
<<\EOF
8445 #define STAT_STATVFS64 1
8451 # Perform only the link test since it seems there are no variants of the
8452 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
8453 # because that got a false positive on SCO OSR5. Adding the declaration
8454 # of a `struct statvfs' causes this test to fail (as it should) on such
8455 # systems. That system is reported to work fine with STAT_STATFS4 which
8456 # is what it gets when this test fails.
8457 if test $space = no
; then
8459 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
8460 echo "configure:8457: checking statvfs function (SVR4)" >&5
8461 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
8462 echo $ac_n "(cached) $ac_c" 1>&6
8464 cat > conftest.
$ac_ext <<EOF
8465 #line 8462 "configure"
8466 #include "confdefs.h"
8467 #include <sys/types.h>
8468 #include <sys/statvfs.h>
8470 struct statvfs fsd; statvfs (0, &fsd);
8473 if { (eval echo configure
:8470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
8475 fu_cv_sys_stat_statvfs
=yes
8477 echo "configure: failed program was:" >&5
8478 cat conftest.
$ac_ext >&5
8480 fu_cv_sys_stat_statvfs
=no
8485 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
8486 if test $fu_cv_sys_stat_statvfs = yes; then
8488 cat >> confdefs.h
<<\EOF
8489 #define STAT_STATVFS 1
8495 if test $space = no
; then
8496 # DEC Alpha running OSF/1
8497 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
8498 echo "configure:8495: checking for 3-argument statfs function (DEC OSF/1)" >&5
8499 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
8500 echo $ac_n "(cached) $ac_c" 1>&6
8502 if test "$cross_compiling" = yes; then
8503 fu_cv_sys_stat_statfs3_osf1
=no
8505 cat > conftest.
$ac_ext <<EOF
8506 #line 8503 "configure"
8507 #include "confdefs.h"
8509 #include <sys/param.h>
8510 #include <sys/types.h>
8511 #include <sys/mount.h>
8516 exit (statfs (".", &fsd, sizeof (struct statfs)));
8519 if { (eval echo configure
:8516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8521 fu_cv_sys_stat_statfs3_osf1
=yes
8523 echo "configure: failed program was:" >&5
8524 cat conftest.
$ac_ext >&5
8526 fu_cv_sys_stat_statfs3_osf1
=no
8533 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
8534 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
8536 cat >> confdefs.h
<<\EOF
8537 #define STAT_STATFS3_OSF1 1
8543 if test $space = no
; then
8545 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
8546 echo "configure:8543: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
8547 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
8548 echo $ac_n "(cached) $ac_c" 1>&6
8550 if test "$cross_compiling" = yes; then
8551 fu_cv_sys_stat_statfs2_bsize
=no
8553 cat > conftest.
$ac_ext <<EOF
8554 #line 8551 "configure"
8555 #include "confdefs.h"
8557 #ifdef HAVE_SYS_PARAM_H
8558 #include <sys/param.h>
8560 #ifdef HAVE_SYS_MOUNT_H
8561 #include <sys/mount.h>
8563 #ifdef HAVE_SYS_VFS_H
8564 #include <sys/vfs.h>
8570 exit (statfs (".", &fsd));
8573 if { (eval echo configure
:8570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8575 fu_cv_sys_stat_statfs2_bsize
=yes
8577 echo "configure: failed program was:" >&5
8578 cat conftest.
$ac_ext >&5
8580 fu_cv_sys_stat_statfs2_bsize
=no
8587 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
8588 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
8590 cat >> confdefs.h
<<\EOF
8591 #define STAT_STATFS2_BSIZE 1
8597 if test $space = no
; then
8599 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
8600 echo "configure:8597: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
8601 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
8602 echo $ac_n "(cached) $ac_c" 1>&6
8604 if test "$cross_compiling" = yes; then
8605 fu_cv_sys_stat_statfs4
=no
8607 cat > conftest.
$ac_ext <<EOF
8608 #line 8605 "configure"
8609 #include "confdefs.h"
8610 #include <sys/types.h>
8611 #include <sys/statfs.h>
8615 exit (statfs (".", &fsd, sizeof fsd, 0));
8618 if { (eval echo configure
:8615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8620 fu_cv_sys_stat_statfs4
=yes
8622 echo "configure: failed program was:" >&5
8623 cat conftest.
$ac_ext >&5
8625 fu_cv_sys_stat_statfs4
=no
8632 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
8633 if test $fu_cv_sys_stat_statfs4 = yes; then
8635 cat >> confdefs.h
<<\EOF
8636 #define STAT_STATFS4 1
8642 if test $space = no
; then
8644 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
8645 echo "configure:8642: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
8646 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
8647 echo $ac_n "(cached) $ac_c" 1>&6
8649 if test "$cross_compiling" = yes; then
8650 fu_cv_sys_stat_statfs2_fsize
=no
8652 cat > conftest.
$ac_ext <<EOF
8653 #line 8650 "configure"
8654 #include "confdefs.h"
8655 #include <sys/types.h>
8656 #ifdef HAVE_SYS_PARAM_H
8657 #include <sys/param.h>
8659 #ifdef HAVE_SYS_MOUNT_H
8660 #include <sys/mount.h>
8666 exit (statfs (".", &fsd));
8669 if { (eval echo configure
:8666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8671 fu_cv_sys_stat_statfs2_fsize
=yes
8673 echo "configure: failed program was:" >&5
8674 cat conftest.
$ac_ext >&5
8676 fu_cv_sys_stat_statfs2_fsize
=no
8683 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
8684 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
8686 cat >> confdefs.h
<<\EOF
8687 #define STAT_STATFS2_FSIZE 1
8693 if test $space = no
; then
8695 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
8696 echo "configure:8693: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
8697 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
8698 echo $ac_n "(cached) $ac_c" 1>&6
8700 if test "$cross_compiling" = yes; then
8701 fu_cv_sys_stat_fs_data
=no
8703 cat > conftest.
$ac_ext <<EOF
8704 #line 8701 "configure"
8705 #include "confdefs.h"
8706 #include <sys/types.h>
8707 #ifdef HAVE_SYS_PARAM_H
8708 #include <sys/param.h>
8710 #ifdef HAVE_SYS_MOUNT_H
8711 #include <sys/mount.h>
8713 #ifdef HAVE_SYS_FS_TYPES_H
8714 #include <sys/fs_types.h>
8719 /* Ultrix's statfs returns 1 for success,
8720 0 for not mounted, -1 for failure. */
8721 exit (statfs (".", &fsd) != 1);
8724 if { (eval echo configure
:8721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8726 fu_cv_sys_stat_fs_data
=yes
8728 echo "configure: failed program was:" >&5
8729 cat conftest.
$ac_ext >&5
8731 fu_cv_sys_stat_fs_data
=no
8738 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
8739 if test $fu_cv_sys_stat_fs_data = yes; then
8741 cat >> confdefs.h
<<\EOF
8742 #define STAT_STATFS2_FS_DATA 1
8748 echo "checking configure summary"
8749 if test "$cross_compiling" = yes; then
8752 cat > conftest.
$ac_ext <<EOF
8753 #line 8750 "configure"
8754 #include "confdefs.h"
8755 #include "${srcdir-.}/tests/summary.c"
8757 if { (eval echo configure
:8754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
8759 echo "configure OK";
8761 echo "configure: failed program was:" >&5
8762 cat conftest.
$ac_ext >&5
8764 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
8774 cat > confcache
<<\EOF
8775 # This file is a shell script that caches the results of configure
8776 # tests run on this system so they can be shared between configure
8777 # scripts and configure runs. It is not useful on other systems.
8778 # If it contains results you don't want to keep, you may remove or edit it.
8780 # By default, configure uses ./config.cache as the cache file,
8781 # creating it if it does not exist already. You can give configure
8782 # the --cache-file=FILE option to use a different cache file; that is
8783 # what configure does when it calls configure scripts in
8784 # subdirectories, so they share the cache.
8785 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8786 # config.status only pays attention to the cache file if you give it the
8787 # --recheck option to rerun configure.
8790 # The following way of writing the cache mishandles newlines in values,
8791 # but we know of no workaround that is simple, portable, and efficient.
8792 # So, don't put newlines in cache variables' values.
8793 # Ultrix sh set writes to stderr and can't be redirected directly,
8794 # and sets the high bit in the cache file unless we assign to the vars.
8796 case `(ac_space=' '; set) 2>&1` in
8798 # `set' does not quote correctly, so add quotes (double-quote substitution
8799 # turns \\\\ into \\, and sed turns \\ into \).
8801 -e "s/'/'\\\\''/g" \
8802 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8805 # `set' quotes correctly as required by POSIX, so do not add quotes.
8806 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8809 if cmp -s $cache_file confcache
; then
8812 if test -w $cache_file; then
8813 echo "updating cache $cache_file"
8814 cat confcache
> $cache_file
8816 echo "not updating unwritable cache $cache_file"
8821 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8823 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8824 # Let make expand exec_prefix.
8825 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8827 # Any assignment to VPATH causes Sun make to only execute
8828 # the first set of double-colon rules, so remove it if not needed.
8829 # If there is a colon in the path, we need to keep it.
8830 if test "x$srcdir" = x.
; then
8831 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8834 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8836 DEFS
=-DHAVE_CONFIG_H
8838 # Without the "./", some shells look in PATH for config.status.
8839 : ${CONFIG_STATUS=./config.status}
8841 echo creating
$CONFIG_STATUS
8842 rm -f $CONFIG_STATUS
8843 cat > $CONFIG_STATUS <<EOF
8845 # Generated automatically by configure.
8846 # Run this file to recreate the current configuration.
8847 # This directory was configured as follows,
8848 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8850 # $0 $ac_configure_args
8852 # Compiler output produced by configure, useful for debugging
8853 # configure, is in ./config.log if it exists.
8855 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8858 case "\$ac_option" in
8859 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8860 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8861 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8862 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8863 echo "$CONFIG_STATUS generated by autoconf version 2.12"
8865 -help | --help | --hel | --he | --h)
8866 echo "\$ac_cs_usage"; exit 0 ;;
8867 *) echo "\$ac_cs_usage"; exit 1 ;;
8871 ac_given_srcdir=$srcdir
8872 ac_given_INSTALL="$INSTALL"
8874 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8876 cat >> $CONFIG_STATUS <<EOF
8878 # Protect against being on the right side of a sed subst in config.status.
8879 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8880 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8883 s%@CFLAGS@%$CFLAGS%g
8884 s%@CPPFLAGS@%$CPPFLAGS%g
8885 s%@CXXFLAGS@%$CXXFLAGS%g
8887 s%@LDFLAGS@%$LDFLAGS%g
8889 s%@exec_prefix@%$exec_prefix%g
8890 s%@prefix@%$prefix%g
8891 s%@program_transform_name@%$program_transform_name%g
8892 s%@bindir@%$bindir%g
8893 s%@sbindir@%$sbindir%g
8894 s%@libexecdir@%$libexecdir%g
8895 s%@datadir@%$datadir%g
8896 s%@sysconfdir@%$sysconfdir%g
8897 s%@sharedstatedir@%$sharedstatedir%g
8898 s%@localstatedir@%$localstatedir%g
8899 s%@libdir@%$libdir%g
8900 s%@includedir@%$includedir%g
8901 s%@oldincludedir@%$oldincludedir%g
8902 s%@infodir@%$infodir%g
8903 s%@mandir@%$mandir%g
8905 s%@MPROGS@%$MPROGS%g
8906 s%@LDSHFLAGS@%$LDSHFLAGS%g
8907 s%@HOST_OS@%$HOST_OS%g
8909 s%@WRAP32@%$WRAP32%g
8910 s%@PICFLAG@%$PICFLAG%g
8912 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8913 s%@INSTALL_DATA@%$INSTALL_DATA%g
8916 s%@host_alias@%$host_alias%g
8917 s%@host_cpu@%$host_cpu%g
8918 s%@host_vendor@%$host_vendor%g
8919 s%@host_os@%$host_os%g
8920 s%@target@%$target%g
8921 s%@target_alias@%$target_alias%g
8922 s%@target_cpu@%$target_cpu%g
8923 s%@target_vendor@%$target_vendor%g
8924 s%@target_os@%$target_os%g
8926 s%@build_alias@%$build_alias%g
8927 s%@build_cpu@%$build_cpu%g
8928 s%@build_vendor@%$build_vendor%g
8929 s%@build_os@%$build_os%g
8931 s%@AUTOCONF@%$AUTOCONF%g
8932 s%@AUTOHEADER@%$AUTOHEADER%g
8934 s%@LIBOBJS@%$LIBOBJS%g
8936 s%@QUOTAOBJS@%$QUOTAOBJS%g
8937 s%@builddir@%$builddir%g
8942 cat >> $CONFIG_STATUS <<\EOF
8944 # Split the substitutions into bite-sized pieces for seds with
8945 # small command number limits, like on Digital OSF/1 and HP-UX.
8946 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8947 ac_file
=1 # Number of current file.
8948 ac_beg
=1 # First line for current file.
8949 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8952 while $ac_more_lines; do
8953 if test $ac_beg -gt 1; then
8954 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8956 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8958 if test ! -s conftest.s
$ac_file; then
8960 rm -f conftest.s
$ac_file
8962 if test -z "$ac_sed_cmds"; then
8963 ac_sed_cmds
="sed -f conftest.s$ac_file"
8965 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8967 ac_file
=`expr $ac_file + 1`
8969 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8972 if test -z "$ac_sed_cmds"; then
8977 cat >> $CONFIG_STATUS <<EOF
8979 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
8981 cat >> $CONFIG_STATUS <<\EOF
8982 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8983 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8985 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8986 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8987 *) ac_file_in
="${ac_file}.in" ;;
8990 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8992 # Remove last slash and all that follows it. Not all systems have dirname.
8993 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8994 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8995 # The file is in a subdirectory.
8996 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8997 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8998 # A "../" for each directory in $ac_dir_suffix.
8999 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9001 ac_dir_suffix
= ac_dots
=
9004 case "$ac_given_srcdir" in
9006 if test -z "$ac_dots"; then top_srcdir
=.
9007 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9008 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9010 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9011 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9014 case "$ac_given_INSTALL" in
9015 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
9016 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
9019 echo creating
"$ac_file"
9021 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9023 *Makefile
*) ac_comsub
="1i\\
9024 # $configure_input" ;;
9028 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9030 s%@configure_input@%$configure_input%g
9031 s%@srcdir@%$srcdir%g
9032 s%@top_srcdir@%$top_srcdir%g
9033 s%@INSTALL@%$INSTALL%g
9034 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9038 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9039 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9041 # ac_d sets the value in "#define NAME VALUE" lines.
9042 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9043 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9046 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9047 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9048 ac_uB
='\([ ]\)%\1#\2define\3'
9051 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9052 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9053 ac_eB
='$%\1#\2define\3'
9057 if test "${CONFIG_HEADERS+set}" != set; then
9059 cat >> $CONFIG_STATUS <<EOF
9060 CONFIG_HEADERS="include/config.h"
9062 cat >> $CONFIG_STATUS <<\EOF
9064 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9065 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9067 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9068 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9069 *) ac_file_in
="${ac_file}.in" ;;
9072 echo creating
$ac_file
9074 rm -f conftest.frag conftest.
in conftest.out
9075 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9076 cat $ac_file_inputs > conftest.
in
9080 # Transform confdefs.h into a sed script conftest.vals that substitutes
9081 # the proper values into config.h.in to produce config.h. And first:
9082 # Protect against being on the right side of a sed subst in config.status.
9083 # Protect against being in an unquoted here document in config.status.
9085 cat > conftest.hdr
<<\EOF
9088 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9092 sed -n -f conftest.hdr confdefs.h > conftest.vals
9095 # This sed command replaces #undef with comments. This is necessary, for
9096 # example, in the case of _POSIX_SOURCE, which is predefined and required
9097 # on some systems where configure will not decide to define it.
9098 cat >> conftest.vals <<\EOF
9099 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9102 # Break up conftest.vals because some shells have a limit on
9103 # the size of here documents, and old seds have small limits too.
9108 ac_lines=`grep -c . conftest.vals
`
9109 # grep -c gives empty output for an empty file on some AIX systems.
9110 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9111 # Write a limited-size here document to conftest.frag.
9112 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9113 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9115 sed -f conftest.frag conftest.in > conftest.out
9117 mv conftest.out conftest.in
9119 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9121 mv conftest.tail conftest.vals
9125 cat >> $CONFIG_STATUS <<\EOF
9126 rm -f conftest.frag conftest.h
9127 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9128 cat conftest.in >> conftest.h
9130 if cmp -s $ac_file conftest.h 2>/dev/null; then
9131 echo "$ac_file is unchanged"
9134 # Remove last slash and all that follows it. Not all systems have dirname.
9135 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9136 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9137 # The file is in a subdirectory.
9138 test ! -d "$ac_dir" && mkdir "$ac_dir"
9141 mv conftest.h $ac_file
9146 cat >> $CONFIG_STATUS <<EOF
9149 cat >> $CONFIG_STATUS <<\EOF
9153 chmod +x $CONFIG_STATUS
9154 rm -fr confdefs* $ac_clean_files
9155 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1