lib/charcnv.c
[Samba.git] / source / configure
blob6f26f6471a88df07679bb86f44718abae8a0feb5
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
15 ac_help="$ac_help
16 --with-fhs Use FHS-compliant paths (default=no)"
17 ac_help="$ac_help
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
19 ac_help="$ac_help
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
21 ac_help="$ac_help
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
23 ac_help="$ac_help
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
25 ac_help="$ac_help
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
27 ac_help="$ac_help
28 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
29 ac_help="$ac_help
30 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
31 ac_help="$ac_help
32 --enable-debug Turn on compiler debugging information (default=no)"
33 ac_help="$ac_help
34 --enable-cups Turn on CUPS support (default=auto)"
35 ac_help="$ac_help
36 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
37 ac_help="$ac_help
38 --with-smbwrapper Include SMB wrapper support (default=no)"
39 ac_help="$ac_help
40 --with-afs Include AFS support (default=no)"
41 ac_help="$ac_help
42 --with-dce-dfs Include DCE/DFS support (default=no)"
43 ac_help="$ac_help
44 --with-krb4=base-dir Include Kerberos IV support (default=no)"
45 ac_help="$ac_help
46 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
47 ac_help="$ac_help
48 --with-automount Include AUTOMOUNT support (default=no)"
49 ac_help="$ac_help
50 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
51 ac_help="$ac_help
52 --with-pam Include PAM password database support (default=no)"
53 ac_help="$ac_help
54 --with-pam_smbpass Include the smbpass PAM module (default=no)"
55 ac_help="$ac_help
56 --with-tdbsam Include experimental TDB SAM support (default=no)"
57 ac_help="$ac_help
58 --with-ldapsam Include experimental LDAP SAM support (default=no)"
59 ac_help="$ac_help
60 --with-nisplussam Include NISPLUS SAM support (default=no)"
61 ac_help="$ac_help
62 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
63 ac_help="$ac_help
64 --with-ssl Include SSL support (default=no)
65 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
66 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
67 ac_help="$ac_help
68 --with-syslog Include experimental SYSLOG support (default=no)"
69 ac_help="$ac_help
70 --with-profiling-data Include gathering source code profile information (default=no)"
71 ac_help="$ac_help
72 --with-quotas Include experimental disk-quota support (default=no)"
73 ac_help="$ac_help
74 --with-utmp Include experimental utmp accounting (default=no)"
75 ac_help="$ac_help
76 --with-msdfs Include MS Dfs support (default=no)"
77 ac_help="$ac_help
78 --with-libsmbclient Build the libsmbclient shared library (default=no)"
79 ac_help="$ac_help
80 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
81 ac_help="$ac_help
82 --with-acl-support Include ACL support (default=no)"
83 ac_help="$ac_help
84 --with-winbind Build winbind (default, if supported by OS)"
85 ac_help="$ac_help
86 --with-auth-crap Include Challenge/Response auth test in wbinfo (default=no)"
87 ac_help="$ac_help
88 --with-included-popt use bundled popt library, not from system"
90 # Initialize some variables set by options.
91 # The variables have the same names as the options, with
92 # dashes changed to underlines.
93 build=NONE
94 cache_file=./config.cache
95 exec_prefix=NONE
96 host=NONE
97 no_create=
98 nonopt=NONE
99 no_recursion=
100 prefix=NONE
101 program_prefix=NONE
102 program_suffix=NONE
103 program_transform_name=s,x,x,
104 silent=
105 site=
106 srcdir=
107 target=NONE
108 verbose=
109 x_includes=NONE
110 x_libraries=NONE
111 bindir='${exec_prefix}/bin'
112 sbindir='${exec_prefix}/sbin'
113 libexecdir='${exec_prefix}/libexec'
114 datadir='${prefix}/share'
115 sysconfdir='${prefix}/etc'
116 sharedstatedir='${prefix}/com'
117 localstatedir='${prefix}/var'
118 libdir='${exec_prefix}/lib'
119 includedir='${prefix}/include'
120 oldincludedir='/usr/include'
121 infodir='${prefix}/info'
122 mandir='${prefix}/man'
124 # Initialize some other variables.
125 subdirs=
126 MFLAGS= MAKEFLAGS=
127 SHELL=${CONFIG_SHELL-/bin/sh}
128 # Maximum number of lines to put in a shell here document.
129 ac_max_here_lines=12
131 ac_prev=
132 for ac_option
135 # If the previous option needs an argument, assign it.
136 if test -n "$ac_prev"; then
137 eval "$ac_prev=\$ac_option"
138 ac_prev=
139 continue
142 case "$ac_option" in
143 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
144 *) ac_optarg= ;;
145 esac
147 # Accept the important Cygnus configure options, so we can diagnose typos.
149 case "$ac_option" in
151 -bindir | --bindir | --bindi | --bind | --bin | --bi)
152 ac_prev=bindir ;;
153 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
154 bindir="$ac_optarg" ;;
156 -build | --build | --buil | --bui | --bu)
157 ac_prev=build ;;
158 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
159 build="$ac_optarg" ;;
161 -cache-file | --cache-file | --cache-fil | --cache-fi \
162 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
163 ac_prev=cache_file ;;
164 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
165 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
166 cache_file="$ac_optarg" ;;
168 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
169 ac_prev=datadir ;;
170 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
171 | --da=*)
172 datadir="$ac_optarg" ;;
174 -disable-* | --disable-*)
175 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}=no" ;;
183 -enable-* | --enable-*)
184 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
185 # Reject names that are not valid shell variable names.
186 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
187 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
189 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
190 case "$ac_option" in
191 *=*) ;;
192 *) ac_optarg=yes ;;
193 esac
194 eval "enable_${ac_feature}='$ac_optarg'" ;;
196 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
197 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
198 | --exec | --exe | --ex)
199 ac_prev=exec_prefix ;;
200 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
201 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
202 | --exec=* | --exe=* | --ex=*)
203 exec_prefix="$ac_optarg" ;;
205 -gas | --gas | --ga | --g)
206 # Obsolete; use --with-gas.
207 with_gas=yes ;;
209 -help | --help | --hel | --he)
210 # Omit some internal or obsolete options to make the list less imposing.
211 # This message is too long to be a string in the A/UX 3.1 sh.
212 cat << EOF
213 Usage: configure [options] [host]
214 Options: [defaults in brackets after descriptions]
215 Configuration:
216 --cache-file=FILE cache test results in FILE
217 --help print this message
218 --no-create do not create output files
219 --quiet, --silent do not print \`checking...' messages
220 --version print the version of autoconf that created configure
221 Directory and file names:
222 --prefix=PREFIX install architecture-independent files in PREFIX
223 [$ac_default_prefix]
224 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
225 [same as prefix]
226 --bindir=DIR user executables in DIR [EPREFIX/bin]
227 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
228 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
229 --datadir=DIR read-only architecture-independent data in DIR
230 [PREFIX/share]
231 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
232 --sharedstatedir=DIR modifiable architecture-independent data in DIR
233 [PREFIX/com]
234 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
235 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
236 --includedir=DIR C header files in DIR [PREFIX/include]
237 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
238 --infodir=DIR info documentation in DIR [PREFIX/info]
239 --mandir=DIR man documentation in DIR [PREFIX/man]
240 --srcdir=DIR find the sources in DIR [configure dir or ..]
241 --program-prefix=PREFIX prepend PREFIX to installed program names
242 --program-suffix=SUFFIX append SUFFIX to installed program names
243 --program-transform-name=PROGRAM
244 run sed PROGRAM on installed program names
246 cat << EOF
247 Host type:
248 --build=BUILD configure for building on BUILD [BUILD=HOST]
249 --host=HOST configure for HOST [guessed]
250 --target=TARGET configure for TARGET [TARGET=HOST]
251 Features and packages:
252 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
253 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
254 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
255 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
256 --x-includes=DIR X include files are in DIR
257 --x-libraries=DIR X library files are in DIR
259 if test -n "$ac_help"; then
260 echo "--enable and --with options recognized:$ac_help"
262 exit 0 ;;
264 -host | --host | --hos | --ho)
265 ac_prev=host ;;
266 -host=* | --host=* | --hos=* | --ho=*)
267 host="$ac_optarg" ;;
269 -includedir | --includedir | --includedi | --included | --include \
270 | --includ | --inclu | --incl | --inc)
271 ac_prev=includedir ;;
272 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
273 | --includ=* | --inclu=* | --incl=* | --inc=*)
274 includedir="$ac_optarg" ;;
276 -infodir | --infodir | --infodi | --infod | --info | --inf)
277 ac_prev=infodir ;;
278 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
279 infodir="$ac_optarg" ;;
281 -libdir | --libdir | --libdi | --libd)
282 ac_prev=libdir ;;
283 -libdir=* | --libdir=* | --libdi=* | --libd=*)
284 libdir="$ac_optarg" ;;
286 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
287 | --libexe | --libex | --libe)
288 ac_prev=libexecdir ;;
289 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
290 | --libexe=* | --libex=* | --libe=*)
291 libexecdir="$ac_optarg" ;;
293 -localstatedir | --localstatedir | --localstatedi | --localstated \
294 | --localstate | --localstat | --localsta | --localst \
295 | --locals | --local | --loca | --loc | --lo)
296 ac_prev=localstatedir ;;
297 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
298 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
299 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
300 localstatedir="$ac_optarg" ;;
302 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
303 ac_prev=mandir ;;
304 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
305 mandir="$ac_optarg" ;;
307 -nfp | --nfp | --nf)
308 # Obsolete; use --without-fp.
309 with_fp=no ;;
311 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
312 | --no-cr | --no-c)
313 no_create=yes ;;
315 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
316 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
317 no_recursion=yes ;;
319 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
320 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
321 | --oldin | --oldi | --old | --ol | --o)
322 ac_prev=oldincludedir ;;
323 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
324 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
325 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
326 oldincludedir="$ac_optarg" ;;
328 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
329 ac_prev=prefix ;;
330 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
331 prefix="$ac_optarg" ;;
333 -program-prefix | --program-prefix | --program-prefi | --program-pref \
334 | --program-pre | --program-pr | --program-p)
335 ac_prev=program_prefix ;;
336 -program-prefix=* | --program-prefix=* | --program-prefi=* \
337 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
338 program_prefix="$ac_optarg" ;;
340 -program-suffix | --program-suffix | --program-suffi | --program-suff \
341 | --program-suf | --program-su | --program-s)
342 ac_prev=program_suffix ;;
343 -program-suffix=* | --program-suffix=* | --program-suffi=* \
344 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
345 program_suffix="$ac_optarg" ;;
347 -program-transform-name | --program-transform-name \
348 | --program-transform-nam | --program-transform-na \
349 | --program-transform-n | --program-transform- \
350 | --program-transform | --program-transfor \
351 | --program-transfo | --program-transf \
352 | --program-trans | --program-tran \
353 | --progr-tra | --program-tr | --program-t)
354 ac_prev=program_transform_name ;;
355 -program-transform-name=* | --program-transform-name=* \
356 | --program-transform-nam=* | --program-transform-na=* \
357 | --program-transform-n=* | --program-transform-=* \
358 | --program-transform=* | --program-transfor=* \
359 | --program-transfo=* | --program-transf=* \
360 | --program-trans=* | --program-tran=* \
361 | --progr-tra=* | --program-tr=* | --program-t=*)
362 program_transform_name="$ac_optarg" ;;
364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
365 | -silent | --silent | --silen | --sile | --sil)
366 silent=yes ;;
368 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
369 ac_prev=sbindir ;;
370 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
371 | --sbi=* | --sb=*)
372 sbindir="$ac_optarg" ;;
374 -sharedstatedir | --sharedstatedir | --sharedstatedi \
375 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
376 | --sharedst | --shareds | --shared | --share | --shar \
377 | --sha | --sh)
378 ac_prev=sharedstatedir ;;
379 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
380 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
381 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
382 | --sha=* | --sh=*)
383 sharedstatedir="$ac_optarg" ;;
385 -site | --site | --sit)
386 ac_prev=site ;;
387 -site=* | --site=* | --sit=*)
388 site="$ac_optarg" ;;
390 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
391 ac_prev=srcdir ;;
392 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
393 srcdir="$ac_optarg" ;;
395 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
396 | --syscon | --sysco | --sysc | --sys | --sy)
397 ac_prev=sysconfdir ;;
398 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
399 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
400 sysconfdir="$ac_optarg" ;;
402 -target | --target | --targe | --targ | --tar | --ta | --t)
403 ac_prev=target ;;
404 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
405 target="$ac_optarg" ;;
407 -v | -verbose | --verbose | --verbos | --verbo | --verb)
408 verbose=yes ;;
410 -version | --version | --versio | --versi | --vers)
411 echo "configure generated by autoconf version 2.13"
412 exit 0 ;;
414 -with-* | --with-*)
415 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 case "$ac_option" in
422 *=*) ;;
423 *) ac_optarg=yes ;;
424 esac
425 eval "with_${ac_package}='$ac_optarg'" ;;
427 -without-* | --without-*)
428 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
429 # Reject names that are not valid shell variable names.
430 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
431 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
433 ac_package=`echo $ac_package| sed 's/-/_/g'`
434 eval "with_${ac_package}=no" ;;
436 --x)
437 # Obsolete; use --with-x.
438 with_x=yes ;;
440 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
441 | --x-incl | --x-inc | --x-in | --x-i)
442 ac_prev=x_includes ;;
443 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
444 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
445 x_includes="$ac_optarg" ;;
447 -x-libraries | --x-libraries | --x-librarie | --x-librari \
448 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
449 ac_prev=x_libraries ;;
450 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
451 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
452 x_libraries="$ac_optarg" ;;
454 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
458 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
459 echo "configure: warning: $ac_option: invalid host type" 1>&2
461 if test "x$nonopt" != xNONE; then
462 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
464 nonopt="$ac_option"
467 esac
468 done
470 if test -n "$ac_prev"; then
471 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
474 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
476 # File descriptor usage:
477 # 0 standard input
478 # 1 file creation
479 # 2 errors and warnings
480 # 3 some systems may open it to /dev/tty
481 # 4 used on the Kubota Titan
482 # 6 checking for... messages and results
483 # 5 compiler messages saved in config.log
484 if test "$silent" = yes; then
485 exec 6>/dev/null
486 else
487 exec 6>&1
489 exec 5>./config.log
491 echo "\
492 This file contains any messages produced by compilers while
493 running configure, to aid debugging if configure makes a mistake.
494 " 1>&5
496 # Strip out --no-create and --no-recursion so they do not pile up.
497 # Also quote any args containing shell metacharacters.
498 ac_configure_args=
499 for ac_arg
501 case "$ac_arg" in
502 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
503 | --no-cr | --no-c) ;;
504 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
505 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
506 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
507 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
508 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
509 esac
510 done
512 # NLS nuisances.
513 # Only set these to C if already set. These must not be set unconditionally
514 # because not all systems understand e.g. LANG=C (notably SCO).
515 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
516 # Non-C LC_CTYPE values break the ctype check.
517 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
518 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
519 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
520 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
522 # confdefs.h avoids OS command line length limits that DEFS can exceed.
523 rm -rf conftest* confdefs.h
524 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
525 echo > confdefs.h
527 # A filename unique to this package, relative to the directory that
528 # configure is in, which we can look for to find out if srcdir is correct.
529 ac_unique_file=include/includes.h
531 # Find the source files, if location was not specified.
532 if test -z "$srcdir"; then
533 ac_srcdir_defaulted=yes
534 # Try the directory containing this script, then its parent.
535 ac_prog=$0
536 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
537 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
538 srcdir=$ac_confdir
539 if test ! -r $srcdir/$ac_unique_file; then
540 srcdir=..
542 else
543 ac_srcdir_defaulted=no
545 if test ! -r $srcdir/$ac_unique_file; then
546 if test "$ac_srcdir_defaulted" = yes; then
547 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
548 else
549 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
552 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
554 # Prefer explicitly selected file to automatically selected ones.
555 if test -z "$CONFIG_SITE"; then
556 if test "x$prefix" != xNONE; then
557 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
558 else
559 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
562 for ac_site_file in $CONFIG_SITE; do
563 if test -r "$ac_site_file"; then
564 echo "loading site script $ac_site_file"
565 . "$ac_site_file"
567 done
569 if test -r "$cache_file"; then
570 echo "loading cache $cache_file"
571 . $cache_file
572 else
573 echo "creating cache $cache_file"
574 > $cache_file
577 ac_ext=c
578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
579 ac_cpp='$CPP $CPPFLAGS'
580 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
581 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
582 cross_compiling=$ac_cv_prog_cc_cross
584 ac_exeext=
585 ac_objext=o
586 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
587 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
588 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
589 ac_n= ac_c='
590 ' ac_t=' '
591 else
592 ac_n=-n ac_c= ac_t=
594 else
595 ac_n= ac_c='\c' ac_t=
601 #################################################
602 # Directory handling stuff to support both the
603 # legacy SAMBA directories and FHS compliant
604 # ones...
607 # Check whether --with-fhs or --without-fhs was given.
608 if test "${with_fhs+set}" = set; then
609 withval="$with_fhs"
610 codepagedir="\$(DATADIR)/samba/codepages"
611 configdir="${sysconfdir}/samba"
612 lockdir="\${VARDIR}/cache/samba"
613 piddir="\$(VARDIR)/run/samba"
614 logfilebase="\${VARDIR}/log/samba"
615 privatedir="\${CONFIGDIR}/private"
616 swatdir="\${DATADIR}/samba/swat"
617 else
618 codepagedir="\$(LIBDIR)/codepages"
619 configdir="\$(LIBDIR)"
620 logfilebase="\$(VARDIR)"
621 lockdir="\${VARDIR}/locks"
622 piddir="\$(VARDIR)/locks"
623 privatedir="\${prefix}/private"
624 swatdir="\${prefix}/swat"
628 #################################################
629 # set private directory location
630 # Check whether --with-privatedir or --without-privatedir was given.
631 if test "${with_privatedir+set}" = set; then
632 withval="$with_privatedir"
633 case "$withval" in
634 yes|no)
636 # Just in case anybody calls it without argument
638 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
641 privatedir="$withval"
643 esac
647 #################################################
648 # set lock directory location
649 # Check whether --with-lockdir or --without-lockdir was given.
650 if test "${with_lockdir+set}" = set; then
651 withval="$with_lockdir"
652 case "$withval" in
653 yes|no)
655 # Just in case anybody calls it without argument
657 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
660 lockdir="$withval"
662 esac
666 #################################################
667 # set pid directory location
668 # Check whether --with-piddir or --without-piddir was given.
669 if test "${with_piddir+set}" = set; then
670 withval="$with_piddir"
671 case "$withval" in
672 yes|no)
674 # Just in case anybody calls it without argument
676 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
679 piddir="$withval"
681 esac
685 #################################################
686 # set SWAT directory location
687 # Check whether --with-swatdir or --without-swatdir was given.
688 if test "${with_swatdir+set}" = set; then
689 withval="$with_swatdir"
690 case "$withval" in
691 yes|no)
693 # Just in case anybody does it
695 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
698 swatdir="$withval"
700 esac
704 #################################################
705 # set configuration directory location
706 # Check whether --with-configdir or --without-configdir was given.
707 if test "${with_configdir+set}" = set; then
708 withval="$with_configdir"
709 case "$withval" in
710 yes|no)
712 # Just in case anybody does it
714 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
717 configdir="$withval"
719 esac
723 #################################################
724 # set codepage directory location
725 # Check whether --with-codepagedir or --without-codepagedir was given.
726 if test "${with_codepagedir+set}" = set; then
727 withval="$with_codepagedir"
728 case "$withval" in
729 yes|no)
731 # Just in case anybody does it
733 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
736 codepagedir="$withval"
738 esac
742 #################################################
743 # set log directory location
744 # Check whether --with-logfilebase or --without-logfilebase was given.
745 if test "${with_logfilebase+set}" = set; then
746 withval="$with_logfilebase"
747 case "$withval" in
748 yes|no)
750 # Just in case anybody does it
752 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
755 logfilebase="$withval"
757 esac
790 # compile with optimization and without debugging by default
791 CFLAGS="-O ${CFLAGS}"
793 # Check whether --enable-debug or --disable-debug was given.
794 if test "${enable_debug+set}" = set; then
795 enableval="$enable_debug"
796 if eval "test x$enable_debug = xyes"; then
797 CFLAGS="${CFLAGS} -g"
804 # Extract the first word of "gcc", so it can be a program name with args.
805 set dummy gcc; ac_word=$2
806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
807 echo "configure:808: checking for $ac_word" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
810 else
811 if test -n "$CC"; then
812 ac_cv_prog_CC="$CC" # Let the user override the test.
813 else
814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
815 ac_dummy="$PATH"
816 for ac_dir in $ac_dummy; do
817 test -z "$ac_dir" && ac_dir=.
818 if test -f $ac_dir/$ac_word; then
819 ac_cv_prog_CC="gcc"
820 break
822 done
823 IFS="$ac_save_ifs"
826 CC="$ac_cv_prog_CC"
827 if test -n "$CC"; then
828 echo "$ac_t""$CC" 1>&6
829 else
830 echo "$ac_t""no" 1>&6
833 if test -z "$CC"; then
834 # Extract the first word of "cc", so it can be a program name with args.
835 set dummy cc; ac_word=$2
836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
837 echo "configure:838: checking for $ac_word" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
840 else
841 if test -n "$CC"; then
842 ac_cv_prog_CC="$CC" # Let the user override the test.
843 else
844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
845 ac_prog_rejected=no
846 ac_dummy="$PATH"
847 for ac_dir in $ac_dummy; do
848 test -z "$ac_dir" && ac_dir=.
849 if test -f $ac_dir/$ac_word; then
850 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
851 ac_prog_rejected=yes
852 continue
854 ac_cv_prog_CC="cc"
855 break
857 done
858 IFS="$ac_save_ifs"
859 if test $ac_prog_rejected = yes; then
860 # We found a bogon in the path, so make sure we never use it.
861 set dummy $ac_cv_prog_CC
862 shift
863 if test $# -gt 0; then
864 # We chose a different compiler from the bogus one.
865 # However, it has the same basename, so the bogon will be chosen
866 # first if we set CC to just the basename; use the full file name.
867 shift
868 set dummy "$ac_dir/$ac_word" "$@"
869 shift
870 ac_cv_prog_CC="$@"
875 CC="$ac_cv_prog_CC"
876 if test -n "$CC"; then
877 echo "$ac_t""$CC" 1>&6
878 else
879 echo "$ac_t""no" 1>&6
882 if test -z "$CC"; then
883 case "`uname -s`" in
884 *win32* | *WIN32*)
885 # Extract the first word of "cl", so it can be a program name with args.
886 set dummy cl; ac_word=$2
887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888 echo "configure:889: checking for $ac_word" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
891 else
892 if test -n "$CC"; then
893 ac_cv_prog_CC="$CC" # Let the user override the test.
894 else
895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
896 ac_dummy="$PATH"
897 for ac_dir in $ac_dummy; do
898 test -z "$ac_dir" && ac_dir=.
899 if test -f $ac_dir/$ac_word; then
900 ac_cv_prog_CC="cl"
901 break
903 done
904 IFS="$ac_save_ifs"
907 CC="$ac_cv_prog_CC"
908 if test -n "$CC"; then
909 echo "$ac_t""$CC" 1>&6
910 else
911 echo "$ac_t""no" 1>&6
914 esac
916 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
919 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
920 echo "configure:921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
922 ac_ext=c
923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
924 ac_cpp='$CPP $CPPFLAGS'
925 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
926 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
927 cross_compiling=$ac_cv_prog_cc_cross
929 cat > conftest.$ac_ext << EOF
931 #line 932 "configure"
932 #include "confdefs.h"
934 main(){return(0);}
936 if { (eval echo configure:937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
937 ac_cv_prog_cc_works=yes
938 # If we can't run a trivial program, we are probably using a cross compiler.
939 if (./conftest; exit) 2>/dev/null; then
940 ac_cv_prog_cc_cross=no
941 else
942 ac_cv_prog_cc_cross=yes
944 else
945 echo "configure: failed program was:" >&5
946 cat conftest.$ac_ext >&5
947 ac_cv_prog_cc_works=no
949 rm -fr conftest*
950 ac_ext=c
951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
952 ac_cpp='$CPP $CPPFLAGS'
953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
955 cross_compiling=$ac_cv_prog_cc_cross
957 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
958 if test $ac_cv_prog_cc_works = no; then
959 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
962 echo "configure:963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
963 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
964 cross_compiling=$ac_cv_prog_cc_cross
966 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
967 echo "configure:968: checking whether we are using GNU C" >&5
968 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
970 else
971 cat > conftest.c <<EOF
972 #ifdef __GNUC__
973 yes;
974 #endif
976 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
977 ac_cv_prog_gcc=yes
978 else
979 ac_cv_prog_gcc=no
983 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
985 if test $ac_cv_prog_gcc = yes; then
986 GCC=yes
987 else
988 GCC=
991 ac_test_CFLAGS="${CFLAGS+set}"
992 ac_save_CFLAGS="$CFLAGS"
993 CFLAGS=
994 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
995 echo "configure:996: checking whether ${CC-cc} accepts -g" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
998 else
999 echo 'void f(){}' > conftest.c
1000 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1001 ac_cv_prog_cc_g=yes
1002 else
1003 ac_cv_prog_cc_g=no
1005 rm -f conftest*
1009 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1010 if test "$ac_test_CFLAGS" = set; then
1011 CFLAGS="$ac_save_CFLAGS"
1012 elif test $ac_cv_prog_cc_g = yes; then
1013 if test "$GCC" = yes; then
1014 CFLAGS="-g -O2"
1015 else
1016 CFLAGS="-g"
1018 else
1019 if test "$GCC" = yes; then
1020 CFLAGS="-O2"
1021 else
1022 CFLAGS=
1026 ac_aux_dir=
1027 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1028 if test -f $ac_dir/install-sh; then
1029 ac_aux_dir=$ac_dir
1030 ac_install_sh="$ac_aux_dir/install-sh -c"
1031 break
1032 elif test -f $ac_dir/install.sh; then
1033 ac_aux_dir=$ac_dir
1034 ac_install_sh="$ac_aux_dir/install.sh -c"
1035 break
1037 done
1038 if test -z "$ac_aux_dir"; then
1039 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1041 ac_config_guess=$ac_aux_dir/config.guess
1042 ac_config_sub=$ac_aux_dir/config.sub
1043 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1045 # Find a good install program. We prefer a C program (faster),
1046 # so one script is as good as another. But avoid the broken or
1047 # incompatible versions:
1048 # SysV /etc/install, /usr/sbin/install
1049 # SunOS /usr/etc/install
1050 # IRIX /sbin/install
1051 # AIX /bin/install
1052 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1053 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1054 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1055 # ./install, which can be erroneously created by make from ./install.sh.
1056 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1057 echo "configure:1058: checking for a BSD compatible install" >&5
1058 if test -z "$INSTALL"; then
1059 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1061 else
1062 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1063 for ac_dir in $PATH; do
1064 # Account for people who put trailing slashes in PATH elements.
1065 case "$ac_dir/" in
1066 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1068 # OSF1 and SCO ODT 3.0 have their own names for install.
1069 # Don't use installbsd from OSF since it installs stuff as root
1070 # by default.
1071 for ac_prog in ginstall scoinst install; do
1072 if test -f $ac_dir/$ac_prog; then
1073 if test $ac_prog = install &&
1074 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1075 # AIX install. It has an incompatible calling convention.
1077 else
1078 ac_cv_path_install="$ac_dir/$ac_prog -c"
1079 break 2
1082 done
1084 esac
1085 done
1086 IFS="$ac_save_IFS"
1089 if test "${ac_cv_path_install+set}" = set; then
1090 INSTALL="$ac_cv_path_install"
1091 else
1092 # As a last resort, use the slow shell script. We don't cache a
1093 # path for INSTALL within a source directory, because that will
1094 # break other packages using the cache if that directory is
1095 # removed, or if the path is relative.
1096 INSTALL="$ac_install_sh"
1099 echo "$ac_t""$INSTALL" 1>&6
1101 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1102 # It thinks the first close brace ends the variable substitution.
1103 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1105 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1107 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1109 for ac_prog in gawk mawk nawk awk
1111 # Extract the first word of "$ac_prog", so it can be a program name with args.
1112 set dummy $ac_prog; ac_word=$2
1113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1114 echo "configure:1115: checking for $ac_word" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1117 else
1118 if test -n "$AWK"; then
1119 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1120 else
1121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1122 ac_dummy="$PATH"
1123 for ac_dir in $ac_dummy; do
1124 test -z "$ac_dir" && ac_dir=.
1125 if test -f $ac_dir/$ac_word; then
1126 ac_cv_prog_AWK="$ac_prog"
1127 break
1129 done
1130 IFS="$ac_save_ifs"
1133 AWK="$ac_cv_prog_AWK"
1134 if test -n "$AWK"; then
1135 echo "$ac_t""$AWK" 1>&6
1136 else
1137 echo "$ac_t""no" 1>&6
1140 test -n "$AWK" && break
1141 done
1143 # Extract the first word of "passwd", so it can be a program name with args.
1144 set dummy passwd; ac_word=$2
1145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1146 echo "configure:1147: checking for $ac_word" >&5
1147 if eval "test \"`echo '$''{'ac_cv_path_passwd_program'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1149 else
1150 case "$passwd_program" in
1152 ac_cv_path_passwd_program="$passwd_program" # Let the user override the test with a path.
1154 ?:/*)
1155 ac_cv_path_passwd_program="$passwd_program" # Let the user override the test with a dos path.
1158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1159 ac_dummy="$PATH"
1160 for ac_dir in $ac_dummy; do
1161 test -z "$ac_dir" && ac_dir=.
1162 if test -f $ac_dir/$ac_word; then
1163 ac_cv_path_passwd_program="$ac_dir/$ac_word"
1164 break
1166 done
1167 IFS="$ac_save_ifs"
1168 test -z "$ac_cv_path_passwd_program" && ac_cv_path_passwd_program="/bin/passwd"
1170 esac
1172 passwd_program="$ac_cv_path_passwd_program"
1173 if test -n "$passwd_program"; then
1174 echo "$ac_t""$passwd_program" 1>&6
1175 else
1176 echo "$ac_t""no" 1>&6
1181 if test "x$CC" != xcc; then
1182 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1183 echo "configure:1184: checking whether $CC and cc understand -c and -o together" >&5
1184 else
1185 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1186 echo "configure:1187: checking whether cc understands -c and -o together" >&5
1188 set dummy $CC; ac_cc="`echo $2 |
1189 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1190 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1192 else
1193 echo 'foo(){}' > conftest.c
1194 # Make sure it works both with $CC and with simple cc.
1195 # We do the test twice because some compilers refuse to overwrite an
1196 # existing .o file with -o, though they will create one.
1197 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1198 if { (eval echo configure:1199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1199 test -f conftest.o && { (eval echo configure:1200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1200 then
1201 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1202 if test "x$CC" != xcc; then
1203 # Test first that cc exists at all.
1204 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1205 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1206 if { (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1207 test -f conftest.o && { (eval echo configure:1208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1208 then
1209 # cc works too.
1211 else
1212 # cc exists but doesn't like -o.
1213 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1217 else
1218 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1220 rm -f conftest*
1223 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1224 echo "$ac_t""yes" 1>&6
1225 else
1226 echo "$ac_t""no" 1>&6
1227 cat >> confdefs.h <<\EOF
1228 #define NO_MINUS_C_MINUS_O 1
1233 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1234 BROKEN_CC=
1235 else
1236 BROKEN_CC=#
1240 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1241 echo "configure:1242: checking that the C compiler understands volatile" >&5
1242 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1244 else
1246 cat > conftest.$ac_ext <<EOF
1247 #line 1248 "configure"
1248 #include "confdefs.h"
1249 #include <sys/types.h>
1250 int main() {
1251 volatile int i = 0
1252 ; return 0; }
1254 if { (eval echo configure:1255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1255 rm -rf conftest*
1256 samba_cv_volatile=yes
1257 else
1258 echo "configure: failed program was:" >&5
1259 cat conftest.$ac_ext >&5
1260 rm -rf conftest*
1261 samba_cv_volatile=no
1263 rm -f conftest*
1266 echo "$ac_t""$samba_cv_volatile" 1>&6
1267 if test x"$samba_cv_volatile" = x"yes"; then
1268 cat >> confdefs.h <<\EOF
1269 #define HAVE_VOLATILE 1
1277 # Do some error checking and defaulting for the host and target type.
1278 # The inputs are:
1279 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1281 # The rules are:
1282 # 1. You are not allowed to specify --host, --target, and nonopt at the
1283 # same time.
1284 # 2. Host defaults to nonopt.
1285 # 3. If nonopt is not specified, then host defaults to the current host,
1286 # as determined by config.guess.
1287 # 4. Target and build default to nonopt.
1288 # 5. If nonopt is not specified, then target and build default to host.
1290 # The aliases save the names the user supplied, while $host etc.
1291 # will get canonicalized.
1292 case $host---$target---$nonopt in
1293 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1294 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1295 esac
1298 # Make sure we can run config.sub.
1299 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1300 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1303 echo $ac_n "checking host system type""... $ac_c" 1>&6
1304 echo "configure:1305: checking host system type" >&5
1306 host_alias=$host
1307 case "$host_alias" in
1308 NONE)
1309 case $nonopt in
1310 NONE)
1311 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1312 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1313 fi ;;
1314 *) host_alias=$nonopt ;;
1315 esac ;;
1316 esac
1318 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1319 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1320 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1321 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1322 echo "$ac_t""$host" 1>&6
1324 echo $ac_n "checking target system type""... $ac_c" 1>&6
1325 echo "configure:1326: checking target system type" >&5
1327 target_alias=$target
1328 case "$target_alias" in
1329 NONE)
1330 case $nonopt in
1331 NONE) target_alias=$host_alias ;;
1332 *) target_alias=$nonopt ;;
1333 esac ;;
1334 esac
1336 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1337 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1338 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1339 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1340 echo "$ac_t""$target" 1>&6
1342 echo $ac_n "checking build system type""... $ac_c" 1>&6
1343 echo "configure:1344: checking build system type" >&5
1345 build_alias=$build
1346 case "$build_alias" in
1347 NONE)
1348 case $nonopt in
1349 NONE) build_alias=$host_alias ;;
1350 *) build_alias=$nonopt ;;
1351 esac ;;
1352 esac
1354 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1355 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1356 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1357 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1358 echo "$ac_t""$build" 1>&6
1360 test "$host_alias" != "$target_alias" &&
1361 test "$program_prefix$program_suffix$program_transform_name" = \
1362 NONENONEs,x,x, &&
1363 program_prefix=${target_alias}-
1366 case "$host_os" in
1367 *irix6*) cat >> confdefs.h <<\EOF
1368 #include <standards.h>
1372 esac
1376 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1377 echo "configure:1378: checking config.cache system type" >&5
1378 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1379 test x"$ac_cv_host_system_type" != x"$host"; } ||
1380 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1381 test x"$ac_cv_build_system_type" != x"$build"; } ||
1382 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1383 test x"$ac_cv_target_system_type" != x"$target"; }; then
1384 echo "$ac_t""different" 1>&6
1385 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1386 else
1387 echo "$ac_t""same" 1>&6
1389 ac_cv_host_system_type="$host"
1390 ac_cv_build_system_type="$build"
1391 ac_cv_target_system_type="$target"
1394 DYNEXP=
1397 # Config CPPFLAG settings for strange OS's that must be set
1398 # before other tests.
1400 case "$host_os" in
1401 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1402 *hpux*)
1403 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1404 echo "configure:1405: checking whether ${CC-cc} accepts -Ae" >&5
1405 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1406 echo $ac_n "(cached) $ac_c" 1>&6
1407 else
1408 echo 'void f(){}' > conftest.c
1409 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1410 ac_cv_prog_cc_Ae=yes
1411 else
1412 ac_cv_prog_cc_Ae=no
1414 rm -f conftest*
1418 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1419 # mmap on HPUX is completely broken...
1420 cat >> confdefs.h <<\EOF
1421 #define MMAP_BLACKLIST 1
1424 if test $ac_cv_prog_cc_Ae = yes; then
1425 CPPFLAGS="$CPPFLAGS -Ae"
1428 # Defines needed for HPUX support.
1429 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1430 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1432 case `uname -r` in
1433 *9*|*10*)
1434 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1435 cat >> confdefs.h <<\EOF
1436 #define USE_BOTH_CRYPT_CALLS 1
1439 cat >> confdefs.h <<\EOF
1440 #define _HPUX_SOURCE 1
1443 cat >> confdefs.h <<\EOF
1444 #define _POSIX_SOURCE 1
1447 cat >> confdefs.h <<\EOF
1448 #define _ALIGNMENT_REQUIRED 1
1451 cat >> confdefs.h <<\EOF
1452 #define _MAX_ALIGNMENT 4
1456 *11*)
1457 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1458 cat >> confdefs.h <<\EOF
1459 #define _HPUX_SOURCE 1
1462 cat >> confdefs.h <<\EOF
1463 #define _POSIX_SOURCE 1
1466 cat >> confdefs.h <<\EOF
1467 #define _LARGEFILE64_SOURCE 1
1470 cat >> confdefs.h <<\EOF
1471 #define _ALIGNMENT_REQUIRED 1
1474 cat >> confdefs.h <<\EOF
1475 #define _MAX_ALIGNMENT 4
1478 cat >> confdefs.h <<\EOF
1479 #define USE_BOTH_CRYPT_CALLS 1
1483 esac
1484 DYNEXP="-Wl,-E"
1489 # CRAY Unicos has broken const handling
1490 *unicos*)
1491 echo "$ac_t""disabling const" 1>&6
1492 CPPFLAGS="$CPPFLAGS -Dconst="
1496 # AIX4.x doesn't even admit to having large
1497 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1499 *aix4*)
1500 echo "$ac_t""enabling large file support" 1>&6
1501 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1502 cat >> confdefs.h <<\EOF
1503 #define _LARGE_FILES 1
1508 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1509 # to the existance of large files..
1510 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1511 # recommendations on large file support, however it makes the
1512 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1513 # recommendation makes the compile fail on gcc2.7. JRA.
1515 *solaris*)
1516 case `uname -r` in
1517 5.0*|5.1*|5.2*|5.3*|5.5*)
1518 echo "$ac_t""no large file support" 1>&6
1520 5.*)
1521 echo "$ac_t""enabling large file support" 1>&6
1522 if test "$ac_cv_prog_gcc" = yes; then
1523 ${CC-cc} -v >conftest.c 2>&1
1524 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1525 rm -fr conftest.c
1526 case "$ac_cv_gcc_compiler_version_number" in
1527 *"gcc version 2.6"*|*"gcc version 2.7"*)
1528 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1529 cat >> confdefs.h <<\EOF
1530 #define _LARGEFILE64_SOURCE 1
1535 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1536 cat >> confdefs.h <<\EOF
1537 #define _LARGEFILE64_SOURCE 1
1540 cat >> confdefs.h <<\EOF
1541 #define _FILE_OFFSET_BITS 64
1545 esac
1546 else
1547 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1548 cat >> confdefs.h <<\EOF
1549 #define _LARGEFILE64_SOURCE 1
1552 cat >> confdefs.h <<\EOF
1553 #define _FILE_OFFSET_BITS 64
1558 esac
1561 # Tests needed for SINIX large file support.
1563 *sysv4*)
1564 if test $host = mips-sni-sysv4 ; then
1565 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1566 echo "configure:1567: checking for LFS support" >&5
1567 old_CPPFLAGS="$CPPFLAGS"
1568 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1569 if test "$cross_compiling" = yes; then
1570 SINIX_LFS_SUPPORT=cross
1571 else
1572 cat > conftest.$ac_ext <<EOF
1573 #line 1574 "configure"
1574 #include "confdefs.h"
1576 #include <unistd.h>
1577 main () {
1578 #if _LFS64_LARGEFILE == 1
1579 exit(0);
1580 #else
1581 exit(1);
1582 #endif
1585 if { (eval echo configure:1586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1586 then
1587 SINIX_LFS_SUPPORT=yes
1588 else
1589 echo "configure: failed program was:" >&5
1590 cat conftest.$ac_ext >&5
1591 rm -fr conftest*
1592 SINIX_LFS_SUPPORT=no
1594 rm -fr conftest*
1597 CPPFLAGS="$old_CPPFLAGS"
1598 if test x$SINIX_LFS_SUPPORT = xyes ; then
1599 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1600 cat >> confdefs.h <<\EOF
1601 #define _LARGEFILE64_SOURCE 1
1604 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1605 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1606 LIBS="`getconf LFS64_LIBS` $LIBS"
1608 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1612 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1614 *linux*)
1615 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1616 echo "configure:1617: checking for LFS support" >&5
1617 old_CPPFLAGS="$CPPFLAGS"
1618 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1619 if test "$cross_compiling" = yes; then
1620 LINUX_LFS_SUPPORT=cross
1621 else
1622 cat > conftest.$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1626 #include <unistd.h>
1627 #include <sys/utsname.h>
1628 main() {
1629 #if _LFS64_LARGEFILE == 1
1630 struct utsname uts;
1631 char *release;
1632 int major, minor;
1634 /* Ensure this is glibc 2.2 or higher */
1635 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1636 int libc_major = __GLIBC__;
1637 int libc_minor = __GLIBC_MINOR__;
1639 if (libc_major < 2)
1640 exit(1);
1641 if (libc_minor < 2)
1642 exit(1);
1643 #endif
1645 /* Ensure this is kernel 2.4 or higher */
1647 uname(&uts);
1648 release = uts.release;
1649 major = atoi(strsep(&release, "."));
1650 minor = atoi(strsep(&release, "."));
1652 if (major > 2 || (major == 2 && minor > 3))
1653 exit(0);
1654 exit(1);
1655 #else
1656 exit(1);
1657 #endif
1661 if { (eval echo configure:1662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1662 then
1663 LINUX_LFS_SUPPORT=yes
1664 else
1665 echo "configure: failed program was:" >&5
1666 cat conftest.$ac_ext >&5
1667 rm -fr conftest*
1668 LINUX_LFS_SUPPORT=no
1670 rm -fr conftest*
1673 CPPFLAGS="$old_CPPFLAGS"
1674 if test x$LINUX_LFS_SUPPORT = xyes ; then
1675 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1676 cat >> confdefs.h <<\EOF
1677 #define _LARGEFILE64_SOURCE 1
1680 cat >> confdefs.h <<\EOF
1681 #define _FILE_OFFSET_BITS 64
1684 cat >> confdefs.h <<\EOF
1685 #define _GNU_SOURCE 1
1689 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1692 *hurd*)
1693 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1694 echo "configure:1695: checking for LFS support" >&5
1695 old_CPPFLAGS="$CPPFLAGS"
1696 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1697 if test "$cross_compiling" = yes; then
1698 GLIBC_LFS_SUPPORT=cross
1699 else
1700 cat > conftest.$ac_ext <<EOF
1701 #line 1702 "configure"
1702 #include "confdefs.h"
1704 #include <unistd.h>
1705 main () {
1706 #if _LFS64_LARGEFILE == 1
1707 exit(0);
1708 #else
1709 exit(1);
1710 #endif
1713 if { (eval echo configure:1714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1714 then
1715 GLIBC_LFS_SUPPORT=yes
1716 else
1717 echo "configure: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1719 rm -fr conftest*
1720 GLIBC_LFS_SUPPORT=no
1722 rm -fr conftest*
1725 CPPFLAGS="$old_CPPFLAGS"
1726 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1727 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1728 cat >> confdefs.h <<\EOF
1729 #define _LARGEFILE64_SOURCE 1
1732 cat >> confdefs.h <<\EOF
1733 #define _GNU_SOURCE 1
1737 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1740 esac
1742 echo $ac_n "checking for inline""... $ac_c" 1>&6
1743 echo "configure:1744: checking for inline" >&5
1744 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1745 echo $ac_n "(cached) $ac_c" 1>&6
1746 else
1747 ac_cv_c_inline=no
1748 for ac_kw in inline __inline__ __inline; do
1749 cat > conftest.$ac_ext <<EOF
1750 #line 1751 "configure"
1751 #include "confdefs.h"
1753 int main() {
1754 } $ac_kw foo() {
1755 ; return 0; }
1757 if { (eval echo configure:1758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1758 rm -rf conftest*
1759 ac_cv_c_inline=$ac_kw; break
1760 else
1761 echo "configure: failed program was:" >&5
1762 cat conftest.$ac_ext >&5
1764 rm -f conftest*
1765 done
1769 echo "$ac_t""$ac_cv_c_inline" 1>&6
1770 case "$ac_cv_c_inline" in
1771 inline | yes) ;;
1772 no) cat >> confdefs.h <<\EOF
1773 #define inline
1776 *) cat >> confdefs.h <<EOF
1777 #define inline $ac_cv_c_inline
1780 esac
1782 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1783 echo "configure:1784: checking how to run the C preprocessor" >&5
1784 # On Suns, sometimes $CPP names a directory.
1785 if test -n "$CPP" && test -d "$CPP"; then
1786 CPP=
1788 if test -z "$CPP"; then
1789 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1791 else
1792 # This must be in double quotes, not single quotes, because CPP may get
1793 # substituted into the Makefile and "${CC-cc}" will confuse make.
1794 CPP="${CC-cc} -E"
1795 # On the NeXT, cc -E runs the code through the compiler's parser,
1796 # not just through cpp.
1797 cat > conftest.$ac_ext <<EOF
1798 #line 1799 "configure"
1799 #include "confdefs.h"
1800 #include <assert.h>
1801 Syntax Error
1803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1804 { (eval echo configure:1805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1806 if test -z "$ac_err"; then
1808 else
1809 echo "$ac_err" >&5
1810 echo "configure: failed program was:" >&5
1811 cat conftest.$ac_ext >&5
1812 rm -rf conftest*
1813 CPP="${CC-cc} -E -traditional-cpp"
1814 cat > conftest.$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1817 #include <assert.h>
1818 Syntax Error
1820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1821 { (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1823 if test -z "$ac_err"; then
1825 else
1826 echo "$ac_err" >&5
1827 echo "configure: failed program was:" >&5
1828 cat conftest.$ac_ext >&5
1829 rm -rf conftest*
1830 CPP="${CC-cc} -nologo -E"
1831 cat > conftest.$ac_ext <<EOF
1832 #line 1833 "configure"
1833 #include "confdefs.h"
1834 #include <assert.h>
1835 Syntax Error
1837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1838 { (eval echo configure:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1840 if test -z "$ac_err"; then
1842 else
1843 echo "$ac_err" >&5
1844 echo "configure: failed program was:" >&5
1845 cat conftest.$ac_ext >&5
1846 rm -rf conftest*
1847 CPP=/lib/cpp
1849 rm -f conftest*
1851 rm -f conftest*
1853 rm -f conftest*
1854 ac_cv_prog_CPP="$CPP"
1856 CPP="$ac_cv_prog_CPP"
1857 else
1858 ac_cv_prog_CPP="$CPP"
1860 echo "$ac_t""$CPP" 1>&6
1862 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1863 echo "configure:1864: checking for ANSI C header files" >&5
1864 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1866 else
1867 cat > conftest.$ac_ext <<EOF
1868 #line 1869 "configure"
1869 #include "confdefs.h"
1870 #include <stdlib.h>
1871 #include <stdarg.h>
1872 #include <string.h>
1873 #include <float.h>
1875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1876 { (eval echo configure:1877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1878 if test -z "$ac_err"; then
1879 rm -rf conftest*
1880 ac_cv_header_stdc=yes
1881 else
1882 echo "$ac_err" >&5
1883 echo "configure: failed program was:" >&5
1884 cat conftest.$ac_ext >&5
1885 rm -rf conftest*
1886 ac_cv_header_stdc=no
1888 rm -f conftest*
1890 if test $ac_cv_header_stdc = yes; then
1891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1892 cat > conftest.$ac_ext <<EOF
1893 #line 1894 "configure"
1894 #include "confdefs.h"
1895 #include <string.h>
1897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1898 egrep "memchr" >/dev/null 2>&1; then
1900 else
1901 rm -rf conftest*
1902 ac_cv_header_stdc=no
1904 rm -f conftest*
1908 if test $ac_cv_header_stdc = yes; then
1909 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1910 cat > conftest.$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1913 #include <stdlib.h>
1915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1916 egrep "free" >/dev/null 2>&1; then
1918 else
1919 rm -rf conftest*
1920 ac_cv_header_stdc=no
1922 rm -f conftest*
1926 if test $ac_cv_header_stdc = yes; then
1927 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1928 if test "$cross_compiling" = yes; then
1930 else
1931 cat > conftest.$ac_ext <<EOF
1932 #line 1933 "configure"
1933 #include "confdefs.h"
1934 #include <ctype.h>
1935 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1936 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1937 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1938 int main () { int i; for (i = 0; i < 256; i++)
1939 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1940 exit (0); }
1943 if { (eval echo configure:1944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1944 then
1946 else
1947 echo "configure: failed program was:" >&5
1948 cat conftest.$ac_ext >&5
1949 rm -fr conftest*
1950 ac_cv_header_stdc=no
1952 rm -fr conftest*
1958 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1959 if test $ac_cv_header_stdc = yes; then
1960 cat >> confdefs.h <<\EOF
1961 #define STDC_HEADERS 1
1966 ac_header_dirent=no
1967 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1969 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1970 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1971 echo "configure:1972: checking for $ac_hdr that defines DIR" >&5
1972 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1973 echo $ac_n "(cached) $ac_c" 1>&6
1974 else
1975 cat > conftest.$ac_ext <<EOF
1976 #line 1977 "configure"
1977 #include "confdefs.h"
1978 #include <sys/types.h>
1979 #include <$ac_hdr>
1980 int main() {
1981 DIR *dirp = 0;
1982 ; return 0; }
1984 if { (eval echo configure:1985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1985 rm -rf conftest*
1986 eval "ac_cv_header_dirent_$ac_safe=yes"
1987 else
1988 echo "configure: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 rm -rf conftest*
1991 eval "ac_cv_header_dirent_$ac_safe=no"
1993 rm -f conftest*
1995 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1996 echo "$ac_t""yes" 1>&6
1997 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1998 cat >> confdefs.h <<EOF
1999 #define $ac_tr_hdr 1
2001 ac_header_dirent=$ac_hdr; break
2002 else
2003 echo "$ac_t""no" 1>&6
2005 done
2006 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2007 if test $ac_header_dirent = dirent.h; then
2008 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2009 echo "configure:2010: checking for opendir in -ldir" >&5
2010 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2011 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2013 else
2014 ac_save_LIBS="$LIBS"
2015 LIBS="-ldir $LIBS"
2016 cat > conftest.$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2019 /* Override any gcc2 internal prototype to avoid an error. */
2020 /* We use char because int might match the return type of a gcc2
2021 builtin and then its argument prototype would still apply. */
2022 char opendir();
2024 int main() {
2025 opendir()
2026 ; return 0; }
2028 if { (eval echo configure:2029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2029 rm -rf conftest*
2030 eval "ac_cv_lib_$ac_lib_var=yes"
2031 else
2032 echo "configure: failed program was:" >&5
2033 cat conftest.$ac_ext >&5
2034 rm -rf conftest*
2035 eval "ac_cv_lib_$ac_lib_var=no"
2037 rm -f conftest*
2038 LIBS="$ac_save_LIBS"
2041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2042 echo "$ac_t""yes" 1>&6
2043 LIBS="$LIBS -ldir"
2044 else
2045 echo "$ac_t""no" 1>&6
2048 else
2049 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2050 echo "configure:2051: checking for opendir in -lx" >&5
2051 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2052 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
2054 else
2055 ac_save_LIBS="$LIBS"
2056 LIBS="-lx $LIBS"
2057 cat > conftest.$ac_ext <<EOF
2058 #line 2059 "configure"
2059 #include "confdefs.h"
2060 /* Override any gcc2 internal prototype to avoid an error. */
2061 /* We use char because int might match the return type of a gcc2
2062 builtin and then its argument prototype would still apply. */
2063 char opendir();
2065 int main() {
2066 opendir()
2067 ; return 0; }
2069 if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2070 rm -rf conftest*
2071 eval "ac_cv_lib_$ac_lib_var=yes"
2072 else
2073 echo "configure: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2075 rm -rf conftest*
2076 eval "ac_cv_lib_$ac_lib_var=no"
2078 rm -f conftest*
2079 LIBS="$ac_save_LIBS"
2082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2083 echo "$ac_t""yes" 1>&6
2084 LIBS="$LIBS -lx"
2085 else
2086 echo "$ac_t""no" 1>&6
2091 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2092 echo "configure:2093: checking whether time.h and sys/time.h may both be included" >&5
2093 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2095 else
2096 cat > conftest.$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2099 #include <sys/types.h>
2100 #include <sys/time.h>
2101 #include <time.h>
2102 int main() {
2103 struct tm *tp;
2104 ; return 0; }
2106 if { (eval echo configure:2107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2107 rm -rf conftest*
2108 ac_cv_header_time=yes
2109 else
2110 echo "configure: failed program was:" >&5
2111 cat conftest.$ac_ext >&5
2112 rm -rf conftest*
2113 ac_cv_header_time=no
2115 rm -f conftest*
2118 echo "$ac_t""$ac_cv_header_time" 1>&6
2119 if test $ac_cv_header_time = yes; then
2120 cat >> confdefs.h <<\EOF
2121 #define TIME_WITH_SYS_TIME 1
2126 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2127 echo "configure:2128: checking for sys/wait.h that is POSIX.1 compatible" >&5
2128 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2130 else
2131 cat > conftest.$ac_ext <<EOF
2132 #line 2133 "configure"
2133 #include "confdefs.h"
2134 #include <sys/types.h>
2135 #include <sys/wait.h>
2136 #ifndef WEXITSTATUS
2137 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2138 #endif
2139 #ifndef WIFEXITED
2140 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2141 #endif
2142 int main() {
2143 int s;
2144 wait (&s);
2145 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2146 ; return 0; }
2148 if { (eval echo configure:2149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2149 rm -rf conftest*
2150 ac_cv_header_sys_wait_h=yes
2151 else
2152 echo "configure: failed program was:" >&5
2153 cat conftest.$ac_ext >&5
2154 rm -rf conftest*
2155 ac_cv_header_sys_wait_h=no
2157 rm -f conftest*
2160 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2161 if test $ac_cv_header_sys_wait_h = yes; then
2162 cat >> confdefs.h <<\EOF
2163 #define HAVE_SYS_WAIT_H 1
2168 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2170 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2171 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2172 echo "configure:2173: checking for $ac_hdr" >&5
2173 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2175 else
2176 cat > conftest.$ac_ext <<EOF
2177 #line 2178 "configure"
2178 #include "confdefs.h"
2179 #include <$ac_hdr>
2181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2182 { (eval echo configure:2183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2183 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2184 if test -z "$ac_err"; then
2185 rm -rf conftest*
2186 eval "ac_cv_header_$ac_safe=yes"
2187 else
2188 echo "$ac_err" >&5
2189 echo "configure: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2191 rm -rf conftest*
2192 eval "ac_cv_header_$ac_safe=no"
2194 rm -f conftest*
2196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2197 echo "$ac_t""yes" 1>&6
2198 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2199 cat >> confdefs.h <<EOF
2200 #define $ac_tr_hdr 1
2203 else
2204 echo "$ac_t""no" 1>&6
2206 done
2208 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2210 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2211 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2212 echo "configure:2213: checking for $ac_hdr" >&5
2213 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2215 else
2216 cat > conftest.$ac_ext <<EOF
2217 #line 2218 "configure"
2218 #include "confdefs.h"
2219 #include <$ac_hdr>
2221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2222 { (eval echo configure:2223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2224 if test -z "$ac_err"; then
2225 rm -rf conftest*
2226 eval "ac_cv_header_$ac_safe=yes"
2227 else
2228 echo "$ac_err" >&5
2229 echo "configure: failed program was:" >&5
2230 cat conftest.$ac_ext >&5
2231 rm -rf conftest*
2232 eval "ac_cv_header_$ac_safe=no"
2234 rm -f conftest*
2236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2237 echo "$ac_t""yes" 1>&6
2238 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2239 cat >> confdefs.h <<EOF
2240 #define $ac_tr_hdr 1
2243 else
2244 echo "$ac_t""no" 1>&6
2246 done
2248 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2250 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2251 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2252 echo "configure:2253: checking for $ac_hdr" >&5
2253 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2255 else
2256 cat > conftest.$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2259 #include <$ac_hdr>
2261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2262 { (eval echo configure:2263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2264 if test -z "$ac_err"; then
2265 rm -rf conftest*
2266 eval "ac_cv_header_$ac_safe=yes"
2267 else
2268 echo "$ac_err" >&5
2269 echo "configure: failed program was:" >&5
2270 cat conftest.$ac_ext >&5
2271 rm -rf conftest*
2272 eval "ac_cv_header_$ac_safe=no"
2274 rm -f conftest*
2276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2277 echo "$ac_t""yes" 1>&6
2278 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2279 cat >> confdefs.h <<EOF
2280 #define $ac_tr_hdr 1
2283 else
2284 echo "$ac_t""no" 1>&6
2286 done
2288 for ac_hdr in stdlib.h string.h strings.h syslog.h sys/file.h
2290 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2291 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2292 echo "configure:2293: checking for $ac_hdr" >&5
2293 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2294 echo $ac_n "(cached) $ac_c" 1>&6
2295 else
2296 cat > conftest.$ac_ext <<EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2299 #include <$ac_hdr>
2301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2302 { (eval echo configure:2303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2304 if test -z "$ac_err"; then
2305 rm -rf conftest*
2306 eval "ac_cv_header_$ac_safe=yes"
2307 else
2308 echo "$ac_err" >&5
2309 echo "configure: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2311 rm -rf conftest*
2312 eval "ac_cv_header_$ac_safe=no"
2314 rm -f conftest*
2316 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2317 echo "$ac_t""yes" 1>&6
2318 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2319 cat >> confdefs.h <<EOF
2320 #define $ac_tr_hdr 1
2323 else
2324 echo "$ac_t""no" 1>&6
2326 done
2328 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2330 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2332 echo "configure:2333: checking for $ac_hdr" >&5
2333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2335 else
2336 cat > conftest.$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2339 #include <$ac_hdr>
2341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2342 { (eval echo configure:2343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2344 if test -z "$ac_err"; then
2345 rm -rf conftest*
2346 eval "ac_cv_header_$ac_safe=yes"
2347 else
2348 echo "$ac_err" >&5
2349 echo "configure: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2351 rm -rf conftest*
2352 eval "ac_cv_header_$ac_safe=no"
2354 rm -f conftest*
2356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2357 echo "$ac_t""yes" 1>&6
2358 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2359 cat >> confdefs.h <<EOF
2360 #define $ac_tr_hdr 1
2363 else
2364 echo "$ac_t""no" 1>&6
2366 done
2368 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h sys/socket.h
2370 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2372 echo "configure:2373: checking for $ac_hdr" >&5
2373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2375 else
2376 cat > conftest.$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 #include <$ac_hdr>
2381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2382 { (eval echo configure:2383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2384 if test -z "$ac_err"; then
2385 rm -rf conftest*
2386 eval "ac_cv_header_$ac_safe=yes"
2387 else
2388 echo "$ac_err" >&5
2389 echo "configure: failed program was:" >&5
2390 cat conftest.$ac_ext >&5
2391 rm -rf conftest*
2392 eval "ac_cv_header_$ac_safe=no"
2394 rm -f conftest*
2396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2397 echo "$ac_t""yes" 1>&6
2398 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2399 cat >> confdefs.h <<EOF
2400 #define $ac_tr_hdr 1
2403 else
2404 echo "$ac_t""no" 1>&6
2406 done
2408 for ac_hdr in syslog.h sys/syslog.h sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2410 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2411 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2412 echo "configure:2413: checking for $ac_hdr" >&5
2413 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2415 else
2416 cat > conftest.$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2419 #include <$ac_hdr>
2421 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2422 { (eval echo configure:2423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2423 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2424 if test -z "$ac_err"; then
2425 rm -rf conftest*
2426 eval "ac_cv_header_$ac_safe=yes"
2427 else
2428 echo "$ac_err" >&5
2429 echo "configure: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
2431 rm -rf conftest*
2432 eval "ac_cv_header_$ac_safe=no"
2434 rm -f conftest*
2436 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2437 echo "$ac_t""yes" 1>&6
2438 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2439 cat >> confdefs.h <<EOF
2440 #define $ac_tr_hdr 1
2443 else
2444 echo "$ac_t""no" 1>&6
2446 done
2448 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2450 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2452 echo "configure:2453: checking for $ac_hdr" >&5
2453 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2454 echo $ac_n "(cached) $ac_c" 1>&6
2455 else
2456 cat > conftest.$ac_ext <<EOF
2457 #line 2458 "configure"
2458 #include "confdefs.h"
2459 #include <$ac_hdr>
2461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2462 { (eval echo configure:2463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2464 if test -z "$ac_err"; then
2465 rm -rf conftest*
2466 eval "ac_cv_header_$ac_safe=yes"
2467 else
2468 echo "$ac_err" >&5
2469 echo "configure: failed program was:" >&5
2470 cat conftest.$ac_ext >&5
2471 rm -rf conftest*
2472 eval "ac_cv_header_$ac_safe=no"
2474 rm -f conftest*
2476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2477 echo "$ac_t""yes" 1>&6
2478 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2479 cat >> confdefs.h <<EOF
2480 #define $ac_tr_hdr 1
2483 else
2484 echo "$ac_t""no" 1>&6
2486 done
2488 for ac_hdr in security/pam_modules.h security/_pam_macros.h dlfcn.h synch.h pthread.h nsswitch.h
2490 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2491 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2492 echo "configure:2493: checking for $ac_hdr" >&5
2493 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2495 else
2496 cat > conftest.$ac_ext <<EOF
2497 #line 2498 "configure"
2498 #include "confdefs.h"
2499 #include <$ac_hdr>
2501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2502 { (eval echo configure:2503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2504 if test -z "$ac_err"; then
2505 rm -rf conftest*
2506 eval "ac_cv_header_$ac_safe=yes"
2507 else
2508 echo "$ac_err" >&5
2509 echo "configure: failed program was:" >&5
2510 cat conftest.$ac_ext >&5
2511 rm -rf conftest*
2512 eval "ac_cv_header_$ac_safe=no"
2514 rm -f conftest*
2516 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2517 echo "$ac_t""yes" 1>&6
2518 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2519 cat >> confdefs.h <<EOF
2520 #define $ac_tr_hdr 1
2523 else
2524 echo "$ac_t""no" 1>&6
2526 done
2530 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2531 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2533 case "$host_os" in
2534 *hpux*)
2535 cat > conftest.$ac_ext <<EOF
2536 #line 2537 "configure"
2537 #include "confdefs.h"
2538 #include <shadow.h>
2539 int main() {
2540 struct spwd testme
2541 ; return 0; }
2543 if { (eval echo configure:2544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2544 rm -rf conftest*
2545 ac_cv_header_shadow_h=yes
2546 else
2547 echo "configure: failed program was:" >&5
2548 cat conftest.$ac_ext >&5
2549 rm -rf conftest*
2550 ac_cv_header_shadow_h=no
2552 rm -f conftest*
2553 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2554 cat >> confdefs.h <<\EOF
2555 #define HAVE_SHADOW_H 1
2560 esac
2561 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2563 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2564 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2565 echo "configure:2566: checking for $ac_hdr" >&5
2566 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2567 echo $ac_n "(cached) $ac_c" 1>&6
2568 else
2569 cat > conftest.$ac_ext <<EOF
2570 #line 2571 "configure"
2571 #include "confdefs.h"
2572 #include <$ac_hdr>
2574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2575 { (eval echo configure:2576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2577 if test -z "$ac_err"; then
2578 rm -rf conftest*
2579 eval "ac_cv_header_$ac_safe=yes"
2580 else
2581 echo "$ac_err" >&5
2582 echo "configure: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2584 rm -rf conftest*
2585 eval "ac_cv_header_$ac_safe=no"
2587 rm -f conftest*
2589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2590 echo "$ac_t""yes" 1>&6
2591 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2592 cat >> confdefs.h <<EOF
2593 #define $ac_tr_hdr 1
2596 else
2597 echo "$ac_t""no" 1>&6
2599 done
2601 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2603 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2605 echo "configure:2606: checking for $ac_hdr" >&5
2606 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2608 else
2609 cat > conftest.$ac_ext <<EOF
2610 #line 2611 "configure"
2611 #include "confdefs.h"
2612 #include <$ac_hdr>
2614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2615 { (eval echo configure:2616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2617 if test -z "$ac_err"; then
2618 rm -rf conftest*
2619 eval "ac_cv_header_$ac_safe=yes"
2620 else
2621 echo "$ac_err" >&5
2622 echo "configure: failed program was:" >&5
2623 cat conftest.$ac_ext >&5
2624 rm -rf conftest*
2625 eval "ac_cv_header_$ac_safe=no"
2627 rm -f conftest*
2629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2630 echo "$ac_t""yes" 1>&6
2631 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2632 cat >> confdefs.h <<EOF
2633 #define $ac_tr_hdr 1
2636 else
2637 echo "$ac_t""no" 1>&6
2639 done
2641 for ac_hdr in stropts.h poll.h
2643 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2644 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2645 echo "configure:2646: checking for $ac_hdr" >&5
2646 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2648 else
2649 cat > conftest.$ac_ext <<EOF
2650 #line 2651 "configure"
2651 #include "confdefs.h"
2652 #include <$ac_hdr>
2654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2655 { (eval echo configure:2656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2657 if test -z "$ac_err"; then
2658 rm -rf conftest*
2659 eval "ac_cv_header_$ac_safe=yes"
2660 else
2661 echo "$ac_err" >&5
2662 echo "configure: failed program was:" >&5
2663 cat conftest.$ac_ext >&5
2664 rm -rf conftest*
2665 eval "ac_cv_header_$ac_safe=no"
2667 rm -f conftest*
2669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2670 echo "$ac_t""yes" 1>&6
2671 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2672 cat >> confdefs.h <<EOF
2673 #define $ac_tr_hdr 1
2676 else
2677 echo "$ac_t""no" 1>&6
2679 done
2681 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2683 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2684 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2685 echo "configure:2686: checking for $ac_hdr" >&5
2686 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2687 echo $ac_n "(cached) $ac_c" 1>&6
2688 else
2689 cat > conftest.$ac_ext <<EOF
2690 #line 2691 "configure"
2691 #include "confdefs.h"
2692 #include <$ac_hdr>
2694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2695 { (eval echo configure:2696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2697 if test -z "$ac_err"; then
2698 rm -rf conftest*
2699 eval "ac_cv_header_$ac_safe=yes"
2700 else
2701 echo "$ac_err" >&5
2702 echo "configure: failed program was:" >&5
2703 cat conftest.$ac_ext >&5
2704 rm -rf conftest*
2705 eval "ac_cv_header_$ac_safe=no"
2707 rm -f conftest*
2709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2710 echo "$ac_t""yes" 1>&6
2711 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2712 cat >> confdefs.h <<EOF
2713 #define $ac_tr_hdr 1
2716 else
2717 echo "$ac_t""no" 1>&6
2719 done
2721 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2723 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2724 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2725 echo "configure:2726: checking for $ac_hdr" >&5
2726 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&6
2728 else
2729 cat > conftest.$ac_ext <<EOF
2730 #line 2731 "configure"
2731 #include "confdefs.h"
2732 #include <$ac_hdr>
2734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2735 { (eval echo configure:2736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2737 if test -z "$ac_err"; then
2738 rm -rf conftest*
2739 eval "ac_cv_header_$ac_safe=yes"
2740 else
2741 echo "$ac_err" >&5
2742 echo "configure: failed program was:" >&5
2743 cat conftest.$ac_ext >&5
2744 rm -rf conftest*
2745 eval "ac_cv_header_$ac_safe=no"
2747 rm -f conftest*
2749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2750 echo "$ac_t""yes" 1>&6
2751 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2752 cat >> confdefs.h <<EOF
2753 #define $ac_tr_hdr 1
2756 else
2757 echo "$ac_t""no" 1>&6
2759 done
2762 # For experimental utmp support (lastlog on some BSD-like systems)
2763 for ac_hdr in utmp.h utmpx.h lastlog.h
2765 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2766 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2767 echo "configure:2768: checking for $ac_hdr" >&5
2768 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2769 echo $ac_n "(cached) $ac_c" 1>&6
2770 else
2771 cat > conftest.$ac_ext <<EOF
2772 #line 2773 "configure"
2773 #include "confdefs.h"
2774 #include <$ac_hdr>
2776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2777 { (eval echo configure:2778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2779 if test -z "$ac_err"; then
2780 rm -rf conftest*
2781 eval "ac_cv_header_$ac_safe=yes"
2782 else
2783 echo "$ac_err" >&5
2784 echo "configure: failed program was:" >&5
2785 cat conftest.$ac_ext >&5
2786 rm -rf conftest*
2787 eval "ac_cv_header_$ac_safe=no"
2789 rm -f conftest*
2791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2792 echo "$ac_t""yes" 1>&6
2793 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2794 cat >> confdefs.h <<EOF
2795 #define $ac_tr_hdr 1
2798 else
2799 echo "$ac_t""no" 1>&6
2801 done
2804 # For quotas on Veritas VxFS filesystems
2805 for ac_hdr in sys/fs/vx_quota.h
2807 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2809 echo "configure:2810: checking for $ac_hdr" >&5
2810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2812 else
2813 cat > conftest.$ac_ext <<EOF
2814 #line 2815 "configure"
2815 #include "confdefs.h"
2816 #include <$ac_hdr>
2818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2819 { (eval echo configure:2820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2821 if test -z "$ac_err"; then
2822 rm -rf conftest*
2823 eval "ac_cv_header_$ac_safe=yes"
2824 else
2825 echo "$ac_err" >&5
2826 echo "configure: failed program was:" >&5
2827 cat conftest.$ac_ext >&5
2828 rm -rf conftest*
2829 eval "ac_cv_header_$ac_safe=no"
2831 rm -f conftest*
2833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2834 echo "$ac_t""yes" 1>&6
2835 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2836 cat >> confdefs.h <<EOF
2837 #define $ac_tr_hdr 1
2840 else
2841 echo "$ac_t""no" 1>&6
2843 done
2846 # For quotas on Linux XFS filesystems
2847 for ac_hdr in linux/xqm.h
2849 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2850 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2851 echo "configure:2852: checking for $ac_hdr" >&5
2852 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2854 else
2855 cat > conftest.$ac_ext <<EOF
2856 #line 2857 "configure"
2857 #include "confdefs.h"
2858 #include <$ac_hdr>
2860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2861 { (eval echo configure:2862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2863 if test -z "$ac_err"; then
2864 rm -rf conftest*
2865 eval "ac_cv_header_$ac_safe=yes"
2866 else
2867 echo "$ac_err" >&5
2868 echo "configure: failed program was:" >&5
2869 cat conftest.$ac_ext >&5
2870 rm -rf conftest*
2871 eval "ac_cv_header_$ac_safe=no"
2873 rm -f conftest*
2875 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2876 echo "$ac_t""yes" 1>&6
2877 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2878 cat >> confdefs.h <<EOF
2879 #define $ac_tr_hdr 1
2882 else
2883 echo "$ac_t""no" 1>&6
2885 done
2888 echo $ac_n "checking size of int""... $ac_c" 1>&6
2889 echo "configure:2890: checking size of int" >&5
2890 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2892 else
2893 if test "$cross_compiling" = yes; then
2894 ac_cv_sizeof_int=cross
2895 else
2896 cat > conftest.$ac_ext <<EOF
2897 #line 2898 "configure"
2898 #include "confdefs.h"
2899 #include <stdio.h>
2900 main()
2902 FILE *f=fopen("conftestval", "w");
2903 if (!f) exit(1);
2904 fprintf(f, "%d\n", sizeof(int));
2905 exit(0);
2908 if { (eval echo configure:2909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2909 then
2910 ac_cv_sizeof_int=`cat conftestval`
2911 else
2912 echo "configure: failed program was:" >&5
2913 cat conftest.$ac_ext >&5
2914 rm -fr conftest*
2915 ac_cv_sizeof_int=0
2917 rm -fr conftest*
2921 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2922 cat >> confdefs.h <<EOF
2923 #define SIZEOF_INT $ac_cv_sizeof_int
2927 echo $ac_n "checking size of long""... $ac_c" 1>&6
2928 echo "configure:2929: checking size of long" >&5
2929 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2931 else
2932 if test "$cross_compiling" = yes; then
2933 ac_cv_sizeof_long=cross
2934 else
2935 cat > conftest.$ac_ext <<EOF
2936 #line 2937 "configure"
2937 #include "confdefs.h"
2938 #include <stdio.h>
2939 main()
2941 FILE *f=fopen("conftestval", "w");
2942 if (!f) exit(1);
2943 fprintf(f, "%d\n", sizeof(long));
2944 exit(0);
2947 if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2948 then
2949 ac_cv_sizeof_long=`cat conftestval`
2950 else
2951 echo "configure: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2953 rm -fr conftest*
2954 ac_cv_sizeof_long=0
2956 rm -fr conftest*
2960 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2961 cat >> confdefs.h <<EOF
2962 #define SIZEOF_LONG $ac_cv_sizeof_long
2966 echo $ac_n "checking size of short""... $ac_c" 1>&6
2967 echo "configure:2968: checking size of short" >&5
2968 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2969 echo $ac_n "(cached) $ac_c" 1>&6
2970 else
2971 if test "$cross_compiling" = yes; then
2972 ac_cv_sizeof_short=cross
2973 else
2974 cat > conftest.$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2977 #include <stdio.h>
2978 main()
2980 FILE *f=fopen("conftestval", "w");
2981 if (!f) exit(1);
2982 fprintf(f, "%d\n", sizeof(short));
2983 exit(0);
2986 if { (eval echo configure:2987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2987 then
2988 ac_cv_sizeof_short=`cat conftestval`
2989 else
2990 echo "configure: failed program was:" >&5
2991 cat conftest.$ac_ext >&5
2992 rm -fr conftest*
2993 ac_cv_sizeof_short=0
2995 rm -fr conftest*
2999 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3000 cat >> confdefs.h <<EOF
3001 #define SIZEOF_SHORT $ac_cv_sizeof_short
3006 echo $ac_n "checking for working const""... $ac_c" 1>&6
3007 echo "configure:3008: checking for working const" >&5
3008 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3009 echo $ac_n "(cached) $ac_c" 1>&6
3010 else
3011 cat > conftest.$ac_ext <<EOF
3012 #line 3013 "configure"
3013 #include "confdefs.h"
3015 int main() {
3017 /* Ultrix mips cc rejects this. */
3018 typedef int charset[2]; const charset x;
3019 /* SunOS 4.1.1 cc rejects this. */
3020 char const *const *ccp;
3021 char **p;
3022 /* NEC SVR4.0.2 mips cc rejects this. */
3023 struct point {int x, y;};
3024 static struct point const zero = {0,0};
3025 /* AIX XL C 1.02.0.0 rejects this.
3026 It does not let you subtract one const X* pointer from another in an arm
3027 of an if-expression whose if-part is not a constant expression */
3028 const char *g = "string";
3029 ccp = &g + (g ? g-g : 0);
3030 /* HPUX 7.0 cc rejects these. */
3031 ++ccp;
3032 p = (char**) ccp;
3033 ccp = (char const *const *) p;
3034 { /* SCO 3.2v4 cc rejects this. */
3035 char *t;
3036 char const *s = 0 ? (char *) 0 : (char const *) 0;
3038 *t++ = 0;
3040 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3041 int x[] = {25, 17};
3042 const int *foo = &x[0];
3043 ++foo;
3045 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3046 typedef const int *iptr;
3047 iptr p = 0;
3048 ++p;
3050 { /* AIX XL C 1.02.0.0 rejects this saying
3051 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3052 struct s { int j; const int *ap[3]; };
3053 struct s *b; b->j = 5;
3055 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3056 const int foo = 10;
3059 ; return 0; }
3061 if { (eval echo configure:3062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3062 rm -rf conftest*
3063 ac_cv_c_const=yes
3064 else
3065 echo "configure: failed program was:" >&5
3066 cat conftest.$ac_ext >&5
3067 rm -rf conftest*
3068 ac_cv_c_const=no
3070 rm -f conftest*
3073 echo "$ac_t""$ac_cv_c_const" 1>&6
3074 if test $ac_cv_c_const = no; then
3075 cat >> confdefs.h <<\EOF
3076 #define const
3081 echo $ac_n "checking for inline""... $ac_c" 1>&6
3082 echo "configure:3083: checking for inline" >&5
3083 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3084 echo $ac_n "(cached) $ac_c" 1>&6
3085 else
3086 ac_cv_c_inline=no
3087 for ac_kw in inline __inline__ __inline; do
3088 cat > conftest.$ac_ext <<EOF
3089 #line 3090 "configure"
3090 #include "confdefs.h"
3092 int main() {
3093 } $ac_kw foo() {
3094 ; return 0; }
3096 if { (eval echo configure:3097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3097 rm -rf conftest*
3098 ac_cv_c_inline=$ac_kw; break
3099 else
3100 echo "configure: failed program was:" >&5
3101 cat conftest.$ac_ext >&5
3103 rm -f conftest*
3104 done
3108 echo "$ac_t""$ac_cv_c_inline" 1>&6
3109 case "$ac_cv_c_inline" in
3110 inline | yes) ;;
3111 no) cat >> confdefs.h <<\EOF
3112 #define inline
3115 *) cat >> confdefs.h <<EOF
3116 #define inline $ac_cv_c_inline
3119 esac
3121 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3122 echo "configure:3123: checking whether byte ordering is bigendian" >&5
3123 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3125 else
3126 ac_cv_c_bigendian=unknown
3127 # See if sys/param.h defines the BYTE_ORDER macro.
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 #include <sys/types.h>
3132 #include <sys/param.h>
3133 int main() {
3135 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3136 bogus endian macros
3137 #endif
3138 ; return 0; }
3140 if { (eval echo configure:3141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3141 rm -rf conftest*
3142 # It does; now see whether it defined to BIG_ENDIAN or not.
3143 cat > conftest.$ac_ext <<EOF
3144 #line 3145 "configure"
3145 #include "confdefs.h"
3146 #include <sys/types.h>
3147 #include <sys/param.h>
3148 int main() {
3150 #if BYTE_ORDER != BIG_ENDIAN
3151 not big endian
3152 #endif
3153 ; return 0; }
3155 if { (eval echo configure:3156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3156 rm -rf conftest*
3157 ac_cv_c_bigendian=yes
3158 else
3159 echo "configure: failed program was:" >&5
3160 cat conftest.$ac_ext >&5
3161 rm -rf conftest*
3162 ac_cv_c_bigendian=no
3164 rm -f conftest*
3165 else
3166 echo "configure: failed program was:" >&5
3167 cat conftest.$ac_ext >&5
3169 rm -f conftest*
3170 if test $ac_cv_c_bigendian = unknown; then
3171 if test "$cross_compiling" = yes; then
3172 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3173 else
3174 cat > conftest.$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3177 main () {
3178 /* Are we little or big endian? From Harbison&Steele. */
3179 union
3181 long l;
3182 char c[sizeof (long)];
3183 } u;
3184 u.l = 1;
3185 exit (u.c[sizeof (long) - 1] == 1);
3188 if { (eval echo configure:3189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3189 then
3190 ac_cv_c_bigendian=no
3191 else
3192 echo "configure: failed program was:" >&5
3193 cat conftest.$ac_ext >&5
3194 rm -fr conftest*
3195 ac_cv_c_bigendian=yes
3197 rm -fr conftest*
3203 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3204 if test $ac_cv_c_bigendian = yes; then
3205 cat >> confdefs.h <<\EOF
3206 #define WORDS_BIGENDIAN 1
3211 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3212 echo "configure:3213: checking whether char is unsigned" >&5
3213 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3215 else
3216 if test "$GCC" = yes; then
3217 # GCC predefines this symbol on systems where it applies.
3218 cat > conftest.$ac_ext <<EOF
3219 #line 3220 "configure"
3220 #include "confdefs.h"
3221 #ifdef __CHAR_UNSIGNED__
3223 #endif
3226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3227 egrep "yes" >/dev/null 2>&1; then
3228 rm -rf conftest*
3229 ac_cv_c_char_unsigned=yes
3230 else
3231 rm -rf conftest*
3232 ac_cv_c_char_unsigned=no
3234 rm -f conftest*
3236 else
3237 if test "$cross_compiling" = yes; then
3238 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3239 else
3240 cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3243 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3244 #if !defined(__STDC__) || __STDC__ != 1
3245 #define volatile
3246 #endif
3247 main() {
3248 volatile char c = 255; exit(c < 0);
3251 if { (eval echo configure:3252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3252 then
3253 ac_cv_c_char_unsigned=yes
3254 else
3255 echo "configure: failed program was:" >&5
3256 cat conftest.$ac_ext >&5
3257 rm -fr conftest*
3258 ac_cv_c_char_unsigned=no
3260 rm -fr conftest*
3266 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3267 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3268 cat >> confdefs.h <<\EOF
3269 #define __CHAR_UNSIGNED__ 1
3275 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3276 echo "configure:3277: checking return type of signal handlers" >&5
3277 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3279 else
3280 cat > conftest.$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3283 #include <sys/types.h>
3284 #include <signal.h>
3285 #ifdef signal
3286 #undef signal
3287 #endif
3288 #ifdef __cplusplus
3289 extern "C" void (*signal (int, void (*)(int)))(int);
3290 #else
3291 void (*signal ()) ();
3292 #endif
3294 int main() {
3295 int i;
3296 ; return 0; }
3298 if { (eval echo configure:3299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3299 rm -rf conftest*
3300 ac_cv_type_signal=void
3301 else
3302 echo "configure: failed program was:" >&5
3303 cat conftest.$ac_ext >&5
3304 rm -rf conftest*
3305 ac_cv_type_signal=int
3307 rm -f conftest*
3310 echo "$ac_t""$ac_cv_type_signal" 1>&6
3311 cat >> confdefs.h <<EOF
3312 #define RETSIGTYPE $ac_cv_type_signal
3316 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3317 echo "configure:3318: checking for uid_t in sys/types.h" >&5
3318 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3319 echo $ac_n "(cached) $ac_c" 1>&6
3320 else
3321 cat > conftest.$ac_ext <<EOF
3322 #line 3323 "configure"
3323 #include "confdefs.h"
3324 #include <sys/types.h>
3326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3327 egrep "uid_t" >/dev/null 2>&1; then
3328 rm -rf conftest*
3329 ac_cv_type_uid_t=yes
3330 else
3331 rm -rf conftest*
3332 ac_cv_type_uid_t=no
3334 rm -f conftest*
3338 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3339 if test $ac_cv_type_uid_t = no; then
3340 cat >> confdefs.h <<\EOF
3341 #define uid_t int
3344 cat >> confdefs.h <<\EOF
3345 #define gid_t int
3350 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3351 echo "configure:3352: checking for mode_t" >&5
3352 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3354 else
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 #include <sys/types.h>
3359 #if STDC_HEADERS
3360 #include <stdlib.h>
3361 #include <stddef.h>
3362 #endif
3364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3365 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3366 rm -rf conftest*
3367 ac_cv_type_mode_t=yes
3368 else
3369 rm -rf conftest*
3370 ac_cv_type_mode_t=no
3372 rm -f conftest*
3375 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3376 if test $ac_cv_type_mode_t = no; then
3377 cat >> confdefs.h <<\EOF
3378 #define mode_t int
3383 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3384 echo "configure:3385: checking for off_t" >&5
3385 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3387 else
3388 cat > conftest.$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3391 #include <sys/types.h>
3392 #if STDC_HEADERS
3393 #include <stdlib.h>
3394 #include <stddef.h>
3395 #endif
3397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3398 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3399 rm -rf conftest*
3400 ac_cv_type_off_t=yes
3401 else
3402 rm -rf conftest*
3403 ac_cv_type_off_t=no
3405 rm -f conftest*
3408 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3409 if test $ac_cv_type_off_t = no; then
3410 cat >> confdefs.h <<\EOF
3411 #define off_t long
3416 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3417 echo "configure:3418: checking for size_t" >&5
3418 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3420 else
3421 cat > conftest.$ac_ext <<EOF
3422 #line 3423 "configure"
3423 #include "confdefs.h"
3424 #include <sys/types.h>
3425 #if STDC_HEADERS
3426 #include <stdlib.h>
3427 #include <stddef.h>
3428 #endif
3430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3431 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3432 rm -rf conftest*
3433 ac_cv_type_size_t=yes
3434 else
3435 rm -rf conftest*
3436 ac_cv_type_size_t=no
3438 rm -f conftest*
3441 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3442 if test $ac_cv_type_size_t = no; then
3443 cat >> confdefs.h <<\EOF
3444 #define size_t unsigned
3449 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3450 echo "configure:3451: checking for pid_t" >&5
3451 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3452 echo $ac_n "(cached) $ac_c" 1>&6
3453 else
3454 cat > conftest.$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3457 #include <sys/types.h>
3458 #if STDC_HEADERS
3459 #include <stdlib.h>
3460 #include <stddef.h>
3461 #endif
3463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3464 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3465 rm -rf conftest*
3466 ac_cv_type_pid_t=yes
3467 else
3468 rm -rf conftest*
3469 ac_cv_type_pid_t=no
3471 rm -f conftest*
3474 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3475 if test $ac_cv_type_pid_t = no; then
3476 cat >> confdefs.h <<\EOF
3477 #define pid_t int
3482 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3483 echo "configure:3484: checking for st_rdev in struct stat" >&5
3484 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3486 else
3487 cat > conftest.$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3490 #include <sys/types.h>
3491 #include <sys/stat.h>
3492 int main() {
3493 struct stat s; s.st_rdev;
3494 ; return 0; }
3496 if { (eval echo configure:3497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3497 rm -rf conftest*
3498 ac_cv_struct_st_rdev=yes
3499 else
3500 echo "configure: failed program was:" >&5
3501 cat conftest.$ac_ext >&5
3502 rm -rf conftest*
3503 ac_cv_struct_st_rdev=no
3505 rm -f conftest*
3508 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3509 if test $ac_cv_struct_st_rdev = yes; then
3510 cat >> confdefs.h <<\EOF
3511 #define HAVE_ST_RDEV 1
3516 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3517 echo "configure:3518: checking for d_off in dirent" >&5
3518 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3519 echo $ac_n "(cached) $ac_c" 1>&6
3520 else
3521 cat > conftest.$ac_ext <<EOF
3522 #line 3523 "configure"
3523 #include "confdefs.h"
3525 #include <unistd.h>
3526 #include <sys/types.h>
3527 #include <dirent.h>
3528 int main() {
3529 struct dirent d; d.d_off;
3530 ; return 0; }
3532 if { (eval echo configure:3533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3533 rm -rf conftest*
3534 ac_cv_dirent_d_off=yes
3535 else
3536 echo "configure: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3538 rm -rf conftest*
3539 ac_cv_dirent_d_off=no
3541 rm -f conftest*
3544 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3545 if test $ac_cv_dirent_d_off = yes; then
3546 cat >> confdefs.h <<\EOF
3547 #define HAVE_DIRENT_D_OFF 1
3552 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3553 echo "configure:3554: checking for ino_t" >&5
3554 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3556 else
3557 cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 #include <sys/types.h>
3561 #if STDC_HEADERS
3562 #include <stdlib.h>
3563 #include <stddef.h>
3564 #endif
3566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3567 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3568 rm -rf conftest*
3569 ac_cv_type_ino_t=yes
3570 else
3571 rm -rf conftest*
3572 ac_cv_type_ino_t=no
3574 rm -f conftest*
3577 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3578 if test $ac_cv_type_ino_t = no; then
3579 cat >> confdefs.h <<\EOF
3580 #define ino_t unsigned
3585 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3586 echo "configure:3587: checking for loff_t" >&5
3587 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3588 echo $ac_n "(cached) $ac_c" 1>&6
3589 else
3590 cat > conftest.$ac_ext <<EOF
3591 #line 3592 "configure"
3592 #include "confdefs.h"
3593 #include <sys/types.h>
3594 #if STDC_HEADERS
3595 #include <stdlib.h>
3596 #include <stddef.h>
3597 #endif
3599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3600 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3601 rm -rf conftest*
3602 ac_cv_type_loff_t=yes
3603 else
3604 rm -rf conftest*
3605 ac_cv_type_loff_t=no
3607 rm -f conftest*
3610 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3611 if test $ac_cv_type_loff_t = no; then
3612 cat >> confdefs.h <<\EOF
3613 #define loff_t off_t
3618 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3619 echo "configure:3620: checking for offset_t" >&5
3620 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3621 echo $ac_n "(cached) $ac_c" 1>&6
3622 else
3623 cat > conftest.$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3626 #include <sys/types.h>
3627 #if STDC_HEADERS
3628 #include <stdlib.h>
3629 #include <stddef.h>
3630 #endif
3632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3633 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3634 rm -rf conftest*
3635 ac_cv_type_offset_t=yes
3636 else
3637 rm -rf conftest*
3638 ac_cv_type_offset_t=no
3640 rm -f conftest*
3643 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3644 if test $ac_cv_type_offset_t = no; then
3645 cat >> confdefs.h <<\EOF
3646 #define offset_t loff_t
3651 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3652 echo "configure:3653: checking for ssize_t" >&5
3653 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3654 echo $ac_n "(cached) $ac_c" 1>&6
3655 else
3656 cat > conftest.$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3659 #include <sys/types.h>
3660 #if STDC_HEADERS
3661 #include <stdlib.h>
3662 #include <stddef.h>
3663 #endif
3665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3666 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3667 rm -rf conftest*
3668 ac_cv_type_ssize_t=yes
3669 else
3670 rm -rf conftest*
3671 ac_cv_type_ssize_t=no
3673 rm -f conftest*
3676 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3677 if test $ac_cv_type_ssize_t = no; then
3678 cat >> confdefs.h <<\EOF
3679 #define ssize_t int
3684 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3685 echo "configure:3686: checking for wchar_t" >&5
3686 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6
3688 else
3689 cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3692 #include <sys/types.h>
3693 #if STDC_HEADERS
3694 #include <stdlib.h>
3695 #include <stddef.h>
3696 #endif
3698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3699 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3700 rm -rf conftest*
3701 ac_cv_type_wchar_t=yes
3702 else
3703 rm -rf conftest*
3704 ac_cv_type_wchar_t=no
3706 rm -f conftest*
3709 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3710 if test $ac_cv_type_wchar_t = no; then
3711 cat >> confdefs.h <<\EOF
3712 #define wchar_t unsigned short
3718 ############################################
3719 # for cups support we need libcups, and a handful of header files
3721 # Check whether --enable-cups or --disable-cups was given.
3722 if test "${enable_cups+set}" = set; then
3723 enableval="$enable_cups"
3728 if test x$enable_cups != xno; then
3729 # Extract the first word of "cups-config", so it can be a program name with args.
3730 set dummy cups-config; ac_word=$2
3731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3732 echo "configure:3733: checking for $ac_word" >&5
3733 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3734 echo $ac_n "(cached) $ac_c" 1>&6
3735 else
3736 case "$CUPS_CONFIG" in
3738 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
3740 ?:/*)
3741 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
3744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3745 ac_dummy="$PATH"
3746 for ac_dir in $ac_dummy; do
3747 test -z "$ac_dir" && ac_dir=.
3748 if test -f $ac_dir/$ac_word; then
3749 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
3750 break
3752 done
3753 IFS="$ac_save_ifs"
3755 esac
3757 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
3758 if test -n "$CUPS_CONFIG"; then
3759 echo "$ac_t""$CUPS_CONFIG" 1>&6
3760 else
3761 echo "$ac_t""no" 1>&6
3765 if test "x$CUPS_CONFIG" != x; then
3766 cat >> confdefs.h <<\EOF
3767 #define HAVE_CUPS 1
3770 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
3771 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3772 LIBS="$LIBS `$CUPS_CONFIG --libs`"
3776 ############################################
3777 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3778 for ac_func in dlopen
3780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3781 echo "configure:3782: checking for $ac_func" >&5
3782 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3783 echo $ac_n "(cached) $ac_c" 1>&6
3784 else
3785 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3788 /* System header to define __stub macros and hopefully few prototypes,
3789 which can conflict with char $ac_func(); below. */
3790 #include <assert.h>
3791 /* Override any gcc2 internal prototype to avoid an error. */
3792 /* We use char because int might match the return type of a gcc2
3793 builtin and then its argument prototype would still apply. */
3794 char $ac_func();
3796 int main() {
3798 /* The GNU C library defines this for functions which it implements
3799 to always fail with ENOSYS. Some functions are actually named
3800 something starting with __ and the normal name is an alias. */
3801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3802 choke me
3803 #else
3804 $ac_func();
3805 #endif
3807 ; return 0; }
3809 if { (eval echo configure:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3810 rm -rf conftest*
3811 eval "ac_cv_func_$ac_func=yes"
3812 else
3813 echo "configure: failed program was:" >&5
3814 cat conftest.$ac_ext >&5
3815 rm -rf conftest*
3816 eval "ac_cv_func_$ac_func=no"
3818 rm -f conftest*
3821 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3822 echo "$ac_t""yes" 1>&6
3823 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3824 cat >> confdefs.h <<EOF
3825 #define $ac_tr_func 1
3828 else
3829 echo "$ac_t""no" 1>&6
3831 done
3833 if test x"$ac_cv_func_dlopen" = x"no"; then
3834 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3835 echo "configure:3836: checking for dlopen in -ldl" >&5
3836 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3837 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3839 else
3840 ac_save_LIBS="$LIBS"
3841 LIBS="-ldl $LIBS"
3842 cat > conftest.$ac_ext <<EOF
3843 #line 3844 "configure"
3844 #include "confdefs.h"
3845 /* Override any gcc2 internal prototype to avoid an error. */
3846 /* We use char because int might match the return type of a gcc2
3847 builtin and then its argument prototype would still apply. */
3848 char dlopen();
3850 int main() {
3851 dlopen()
3852 ; return 0; }
3854 if { (eval echo configure:3855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3855 rm -rf conftest*
3856 eval "ac_cv_lib_$ac_lib_var=yes"
3857 else
3858 echo "configure: failed program was:" >&5
3859 cat conftest.$ac_ext >&5
3860 rm -rf conftest*
3861 eval "ac_cv_lib_$ac_lib_var=no"
3863 rm -f conftest*
3864 LIBS="$ac_save_LIBS"
3867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3868 echo "$ac_t""yes" 1>&6
3869 LIBS="$LIBS -ldl";
3870 cat >> confdefs.h <<\EOF
3871 #define HAVE_DLOPEN 1
3874 else
3875 echo "$ac_t""no" 1>&6
3879 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3881 ############################################
3882 # check if the compiler can do immediate structures
3883 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3884 echo "configure:3885: checking for immediate structures" >&5
3885 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3887 else
3889 cat > conftest.$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3893 #include <stdio.h>
3894 int main() {
3896 typedef struct {unsigned x;} FOOBAR;
3897 #define X_FOOBAR(x) ((FOOBAR) { x })
3898 #define FOO_ONE X_FOOBAR(1)
3899 FOOBAR f = FOO_ONE;
3900 static struct {
3901 FOOBAR y;
3902 } f2[] = {
3903 {FOO_ONE}
3906 ; return 0; }
3908 if { (eval echo configure:3909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3909 rm -rf conftest*
3910 samba_cv_immediate_structures=yes
3911 else
3912 echo "configure: failed program was:" >&5
3913 cat conftest.$ac_ext >&5
3914 rm -rf conftest*
3915 samba_cv_immediate_structures=no
3917 rm -f conftest*
3920 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3921 if test x"$samba_cv_immediate_structures" = x"yes"; then
3922 cat >> confdefs.h <<\EOF
3923 #define HAVE_IMMEDIATE_STRUCTURES 1
3928 ############################################
3929 # check for unix domain sockets
3930 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3931 echo "configure:3932: checking for unix domain sockets" >&5
3932 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3933 echo $ac_n "(cached) $ac_c" 1>&6
3934 else
3936 cat > conftest.$ac_ext <<EOF
3937 #line 3938 "configure"
3938 #include "confdefs.h"
3940 #include <sys/types.h>
3941 #include <stdlib.h>
3942 #include <stddef.h>
3943 #include <sys/socket.h>
3944 #include <sys/un.h>
3945 int main() {
3947 struct sockaddr_un sunaddr;
3948 sunaddr.sun_family = AF_UNIX;
3950 ; return 0; }
3952 if { (eval echo configure:3953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3953 rm -rf conftest*
3954 samba_cv_unixsocket=yes
3955 else
3956 echo "configure: failed program was:" >&5
3957 cat conftest.$ac_ext >&5
3958 rm -rf conftest*
3959 samba_cv_unixsocket=no
3961 rm -f conftest*
3964 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3965 if test x"$samba_cv_unixsocket" = x"yes"; then
3966 cat >> confdefs.h <<\EOF
3967 #define HAVE_UNIXSOCKET 1
3972 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3973 echo "configure:3974: checking for socklen_t type" >&5
3974 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3976 else
3978 cat > conftest.$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3982 #include <sys/types.h>
3983 #if STDC_HEADERS
3984 #include <stdlib.h>
3985 #include <stddef.h>
3986 #endif
3987 #include <sys/socket.h>
3988 int main() {
3989 socklen_t i = 0
3990 ; return 0; }
3992 if { (eval echo configure:3993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3993 rm -rf conftest*
3994 samba_cv_socklen_t=yes
3995 else
3996 echo "configure: failed program was:" >&5
3997 cat conftest.$ac_ext >&5
3998 rm -rf conftest*
3999 samba_cv_socklen_t=no
4001 rm -f conftest*
4004 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4005 if test x"$samba_cv_socklen_t" = x"yes"; then
4006 cat >> confdefs.h <<\EOF
4007 #define HAVE_SOCKLEN_T_TYPE 1
4012 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4013 echo "configure:4014: checking for sig_atomic_t type" >&5
4014 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4016 else
4018 cat > conftest.$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4022 #include <sys/types.h>
4023 #if STDC_HEADERS
4024 #include <stdlib.h>
4025 #include <stddef.h>
4026 #endif
4027 #include <signal.h>
4028 int main() {
4029 sig_atomic_t i = 0
4030 ; return 0; }
4032 if { (eval echo configure:4033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4033 rm -rf conftest*
4034 samba_cv_sig_atomic_t=yes
4035 else
4036 echo "configure: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4038 rm -rf conftest*
4039 samba_cv_sig_atomic_t=no
4041 rm -f conftest*
4044 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4045 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4046 cat >> confdefs.h <<\EOF
4047 #define HAVE_SIG_ATOMIC_T_TYPE 1
4052 # stupid headers have the functions but no declaration. grrrr.
4054 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4055 echo "configure:4056: checking for errno declaration" >&5
4056 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4057 echo $ac_n "(cached) $ac_c" 1>&6
4058 else
4060 cat > conftest.$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4063 #include <errno.h>
4064 int main() {
4065 int i = (int)errno
4066 ; return 0; }
4068 if { (eval echo configure:4069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4069 rm -rf conftest*
4070 ac_cv_have_errno_decl=yes
4071 else
4072 echo "configure: failed program was:" >&5
4073 cat conftest.$ac_ext >&5
4074 rm -rf conftest*
4075 ac_cv_have_errno_decl=no
4077 rm -f conftest*
4080 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4081 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4082 cat >> confdefs.h <<\EOF
4083 #define HAVE_ERRNO_DECL 1
4089 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4090 echo "configure:4091: checking for setresuid declaration" >&5
4091 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4092 echo $ac_n "(cached) $ac_c" 1>&6
4093 else
4095 cat > conftest.$ac_ext <<EOF
4096 #line 4097 "configure"
4097 #include "confdefs.h"
4098 #include <unistd.h>
4099 int main() {
4100 int i = (int)setresuid
4101 ; return 0; }
4103 if { (eval echo configure:4104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4104 rm -rf conftest*
4105 ac_cv_have_setresuid_decl=yes
4106 else
4107 echo "configure: failed program was:" >&5
4108 cat conftest.$ac_ext >&5
4109 rm -rf conftest*
4110 ac_cv_have_setresuid_decl=no
4112 rm -f conftest*
4115 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4116 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4117 cat >> confdefs.h <<\EOF
4118 #define HAVE_SETRESUID_DECL 1
4124 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4125 echo "configure:4126: checking for setresgid declaration" >&5
4126 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4127 echo $ac_n "(cached) $ac_c" 1>&6
4128 else
4130 cat > conftest.$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4133 #include <unistd.h>
4134 int main() {
4135 int i = (int)setresgid
4136 ; return 0; }
4138 if { (eval echo configure:4139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4139 rm -rf conftest*
4140 ac_cv_have_setresgid_decl=yes
4141 else
4142 echo "configure: failed program was:" >&5
4143 cat conftest.$ac_ext >&5
4144 rm -rf conftest*
4145 ac_cv_have_setresgid_decl=no
4147 rm -f conftest*
4150 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4151 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4152 cat >> confdefs.h <<\EOF
4153 #define HAVE_SETRESGID_DECL 1
4159 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4160 echo "configure:4161: checking for asprintf declaration" >&5
4161 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4163 else
4165 cat > conftest.$ac_ext <<EOF
4166 #line 4167 "configure"
4167 #include "confdefs.h"
4168 #include <stdio.h>
4169 int main() {
4170 int i = (int)asprintf
4171 ; return 0; }
4173 if { (eval echo configure:4174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4174 rm -rf conftest*
4175 ac_cv_have_asprintf_decl=yes
4176 else
4177 echo "configure: failed program was:" >&5
4178 cat conftest.$ac_ext >&5
4179 rm -rf conftest*
4180 ac_cv_have_asprintf_decl=no
4182 rm -f conftest*
4185 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4186 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4187 cat >> confdefs.h <<\EOF
4188 #define HAVE_ASPRINTF_DECL 1
4194 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4195 echo "configure:4196: checking for vasprintf declaration" >&5
4196 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4197 echo $ac_n "(cached) $ac_c" 1>&6
4198 else
4200 cat > conftest.$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4203 #include <stdio.h>
4204 int main() {
4205 int i = (int)vasprintf
4206 ; return 0; }
4208 if { (eval echo configure:4209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4209 rm -rf conftest*
4210 ac_cv_have_vasprintf_decl=yes
4211 else
4212 echo "configure: failed program was:" >&5
4213 cat conftest.$ac_ext >&5
4214 rm -rf conftest*
4215 ac_cv_have_vasprintf_decl=no
4217 rm -f conftest*
4220 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4221 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4222 cat >> confdefs.h <<\EOF
4223 #define HAVE_VASPRINTF_DECL 1
4229 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4230 echo "configure:4231: checking for vsnprintf declaration" >&5
4231 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4233 else
4235 cat > conftest.$ac_ext <<EOF
4236 #line 4237 "configure"
4237 #include "confdefs.h"
4238 #include <stdio.h>
4239 int main() {
4240 int i = (int)vsnprintf
4241 ; return 0; }
4243 if { (eval echo configure:4244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4244 rm -rf conftest*
4245 ac_cv_have_vsnprintf_decl=yes
4246 else
4247 echo "configure: failed program was:" >&5
4248 cat conftest.$ac_ext >&5
4249 rm -rf conftest*
4250 ac_cv_have_vsnprintf_decl=no
4252 rm -f conftest*
4255 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4256 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4257 cat >> confdefs.h <<\EOF
4258 #define HAVE_VSNPRINTF_DECL 1
4264 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4265 echo "configure:4266: checking for snprintf declaration" >&5
4266 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4267 echo $ac_n "(cached) $ac_c" 1>&6
4268 else
4270 cat > conftest.$ac_ext <<EOF
4271 #line 4272 "configure"
4272 #include "confdefs.h"
4273 #include <stdio.h>
4274 int main() {
4275 int i = (int)snprintf
4276 ; return 0; }
4278 if { (eval echo configure:4279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4279 rm -rf conftest*
4280 ac_cv_have_snprintf_decl=yes
4281 else
4282 echo "configure: failed program was:" >&5
4283 cat conftest.$ac_ext >&5
4284 rm -rf conftest*
4285 ac_cv_have_snprintf_decl=no
4287 rm -f conftest*
4290 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4291 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4292 cat >> confdefs.h <<\EOF
4293 #define HAVE_SNPRINTF_DECL 1
4299 # and glibc has setresuid under linux but the function does
4300 # nothing until kernel 2.1.44! very dumb.
4301 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4302 echo "configure:4303: checking for real setresuid" >&5
4303 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4304 echo $ac_n "(cached) $ac_c" 1>&6
4305 else
4307 if test "$cross_compiling" = yes; then
4308 samba_cv_have_setresuid=cross
4309 else
4310 cat > conftest.$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4313 #include <errno.h>
4314 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4316 if { (eval echo configure:4317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4317 then
4318 samba_cv_have_setresuid=yes
4319 else
4320 echo "configure: failed program was:" >&5
4321 cat conftest.$ac_ext >&5
4322 rm -fr conftest*
4323 samba_cv_have_setresuid=no
4325 rm -fr conftest*
4330 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4331 if test x"$samba_cv_have_setresuid" = x"yes"; then
4332 cat >> confdefs.h <<\EOF
4333 #define HAVE_SETRESUID 1
4338 # Do the same check for setresguid...
4340 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4341 echo "configure:4342: checking for real setresgid" >&5
4342 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4343 echo $ac_n "(cached) $ac_c" 1>&6
4344 else
4346 if test "$cross_compiling" = yes; then
4347 samba_cv_have_setresgid=cross
4348 else
4349 cat > conftest.$ac_ext <<EOF
4350 #line 4351 "configure"
4351 #include "confdefs.h"
4352 #include <unistd.h>
4353 #include <errno.h>
4354 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4356 if { (eval echo configure:4357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4357 then
4358 samba_cv_have_setresgid=yes
4359 else
4360 echo "configure: failed program was:" >&5
4361 cat conftest.$ac_ext >&5
4362 rm -fr conftest*
4363 samba_cv_have_setresgid=no
4365 rm -fr conftest*
4370 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4371 if test x"$samba_cv_have_setresgid" = x"yes"; then
4372 cat >> confdefs.h <<\EOF
4373 #define HAVE_SETRESGID 1
4378 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4379 echo "configure:4380: checking for 8-bit clean memcmp" >&5
4380 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4381 echo $ac_n "(cached) $ac_c" 1>&6
4382 else
4383 if test "$cross_compiling" = yes; then
4384 ac_cv_func_memcmp_clean=no
4385 else
4386 cat > conftest.$ac_ext <<EOF
4387 #line 4388 "configure"
4388 #include "confdefs.h"
4390 main()
4392 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4393 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4397 if { (eval echo configure:4398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4398 then
4399 ac_cv_func_memcmp_clean=yes
4400 else
4401 echo "configure: failed program was:" >&5
4402 cat conftest.$ac_ext >&5
4403 rm -fr conftest*
4404 ac_cv_func_memcmp_clean=no
4406 rm -fr conftest*
4411 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4412 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4415 ###############################################
4416 # Readline included by default unless explicitly asked not to
4417 test "${with_readline+set}" != "set" && with_readline=yes
4419 # test for where we get readline() from
4420 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4421 echo "configure:4422: checking whether to use readline" >&5
4422 # Check whether --with-readline or --without-readline was given.
4423 if test "${with_readline+set}" = set; then
4424 withval="$with_readline"
4425 case "$with_readline" in
4426 yes)
4427 echo "$ac_t""yes" 1>&6
4429 for ac_hdr in readline.h history.h readline/readline.h
4431 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4432 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4433 echo "configure:4434: checking for $ac_hdr" >&5
4434 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4435 echo $ac_n "(cached) $ac_c" 1>&6
4436 else
4437 cat > conftest.$ac_ext <<EOF
4438 #line 4439 "configure"
4439 #include "confdefs.h"
4440 #include <$ac_hdr>
4442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4443 { (eval echo configure:4444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4445 if test -z "$ac_err"; then
4446 rm -rf conftest*
4447 eval "ac_cv_header_$ac_safe=yes"
4448 else
4449 echo "$ac_err" >&5
4450 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4452 rm -rf conftest*
4453 eval "ac_cv_header_$ac_safe=no"
4455 rm -f conftest*
4457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4458 echo "$ac_t""yes" 1>&6
4459 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4460 cat >> confdefs.h <<EOF
4461 #define $ac_tr_hdr 1
4464 else
4465 echo "$ac_t""no" 1>&6
4467 done
4469 for ac_hdr in readline/history.h
4471 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4472 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4473 echo "configure:4474: checking for $ac_hdr" >&5
4474 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4475 echo $ac_n "(cached) $ac_c" 1>&6
4476 else
4477 cat > conftest.$ac_ext <<EOF
4478 #line 4479 "configure"
4479 #include "confdefs.h"
4480 #include <$ac_hdr>
4482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4483 { (eval echo configure:4484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4485 if test -z "$ac_err"; then
4486 rm -rf conftest*
4487 eval "ac_cv_header_$ac_safe=yes"
4488 else
4489 echo "$ac_err" >&5
4490 echo "configure: failed program was:" >&5
4491 cat conftest.$ac_ext >&5
4492 rm -rf conftest*
4493 eval "ac_cv_header_$ac_safe=no"
4495 rm -f conftest*
4497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4498 echo "$ac_t""yes" 1>&6
4499 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4500 cat >> confdefs.h <<EOF
4501 #define $ac_tr_hdr 1
4504 else
4505 echo "$ac_t""no" 1>&6
4507 done
4510 for ac_hdr in readline.h readline/readline.h
4512 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4513 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4514 echo "configure:4515: checking for $ac_hdr" >&5
4515 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4516 echo $ac_n "(cached) $ac_c" 1>&6
4517 else
4518 cat > conftest.$ac_ext <<EOF
4519 #line 4520 "configure"
4520 #include "confdefs.h"
4521 #include <$ac_hdr>
4523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4524 { (eval echo configure:4525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4525 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4526 if test -z "$ac_err"; then
4527 rm -rf conftest*
4528 eval "ac_cv_header_$ac_safe=yes"
4529 else
4530 echo "$ac_err" >&5
4531 echo "configure: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4533 rm -rf conftest*
4534 eval "ac_cv_header_$ac_safe=no"
4536 rm -f conftest*
4538 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4539 echo "$ac_t""yes" 1>&6
4540 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4541 cat >> confdefs.h <<EOF
4542 #define $ac_tr_hdr 1
4545 for termlib in ncurses curses termcap terminfo termlib; do
4546 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4547 echo "configure:4548: checking for tgetent in -l${termlib}" >&5
4548 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4549 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4550 echo $ac_n "(cached) $ac_c" 1>&6
4551 else
4552 ac_save_LIBS="$LIBS"
4553 LIBS="-l${termlib} $LIBS"
4554 cat > conftest.$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4557 /* Override any gcc2 internal prototype to avoid an error. */
4558 /* We use char because int might match the return type of a gcc2
4559 builtin and then its argument prototype would still apply. */
4560 char tgetent();
4562 int main() {
4563 tgetent()
4564 ; return 0; }
4566 if { (eval echo configure:4567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4567 rm -rf conftest*
4568 eval "ac_cv_lib_$ac_lib_var=yes"
4569 else
4570 echo "configure: failed program was:" >&5
4571 cat conftest.$ac_ext >&5
4572 rm -rf conftest*
4573 eval "ac_cv_lib_$ac_lib_var=no"
4575 rm -f conftest*
4576 LIBS="$ac_save_LIBS"
4579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4580 echo "$ac_t""yes" 1>&6
4581 TERMLIBS="-l${termlib}"; break
4582 else
4583 echo "$ac_t""no" 1>&6
4586 done
4587 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4588 echo "configure:4589: checking for rl_callback_handler_install in -lreadline" >&5
4589 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4591 echo $ac_n "(cached) $ac_c" 1>&6
4592 else
4593 ac_save_LIBS="$LIBS"
4594 LIBS="-lreadline $TERMLIBS $LIBS"
4595 cat > conftest.$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
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. */
4601 char rl_callback_handler_install();
4603 int main() {
4604 rl_callback_handler_install()
4605 ; return 0; }
4607 if { (eval echo configure:4608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4608 rm -rf conftest*
4609 eval "ac_cv_lib_$ac_lib_var=yes"
4610 else
4611 echo "configure: failed program was:" >&5
4612 cat conftest.$ac_ext >&5
4613 rm -rf conftest*
4614 eval "ac_cv_lib_$ac_lib_var=no"
4616 rm -f conftest*
4617 LIBS="$ac_save_LIBS"
4620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4621 echo "$ac_t""yes" 1>&6
4622 TERMLIBS="-lreadline $TERMLIBS"
4623 cat >> confdefs.h <<\EOF
4624 #define HAVE_LIBREADLINE 1
4627 break
4628 else
4629 echo "$ac_t""no" 1>&6
4630 TERMLIBS=
4633 else
4634 echo "$ac_t""no" 1>&6
4636 done
4640 echo "$ac_t""no" 1>&6
4643 echo "$ac_t""yes" 1>&6
4645 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4646 # alternate readline path
4647 _ldflags=${LDFLAGS}
4648 _cppflags=${CPPFLAGS}
4650 # Add additional search path
4651 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4652 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4654 for ac_hdr in readline.h history.h readline/readline.h
4656 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4657 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4658 echo "configure:4659: checking for $ac_hdr" >&5
4659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4660 echo $ac_n "(cached) $ac_c" 1>&6
4661 else
4662 cat > conftest.$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4665 #include <$ac_hdr>
4667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4668 { (eval echo configure:4669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4669 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4670 if test -z "$ac_err"; then
4671 rm -rf conftest*
4672 eval "ac_cv_header_$ac_safe=yes"
4673 else
4674 echo "$ac_err" >&5
4675 echo "configure: failed program was:" >&5
4676 cat conftest.$ac_ext >&5
4677 rm -rf conftest*
4678 eval "ac_cv_header_$ac_safe=no"
4680 rm -f conftest*
4682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4683 echo "$ac_t""yes" 1>&6
4684 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4685 cat >> confdefs.h <<EOF
4686 #define $ac_tr_hdr 1
4689 else
4690 echo "$ac_t""no" 1>&6
4692 done
4694 for ac_hdr in readline/history.h
4696 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4697 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4698 echo "configure:4699: checking for $ac_hdr" >&5
4699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4701 else
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 #include <$ac_hdr>
4707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4708 { (eval echo configure:4709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4710 if test -z "$ac_err"; then
4711 rm -rf conftest*
4712 eval "ac_cv_header_$ac_safe=yes"
4713 else
4714 echo "$ac_err" >&5
4715 echo "configure: failed program was:" >&5
4716 cat conftest.$ac_ext >&5
4717 rm -rf conftest*
4718 eval "ac_cv_header_$ac_safe=no"
4720 rm -f conftest*
4722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4723 echo "$ac_t""yes" 1>&6
4724 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4725 cat >> confdefs.h <<EOF
4726 #define $ac_tr_hdr 1
4729 else
4730 echo "$ac_t""no" 1>&6
4732 done
4735 for ac_hdr in readline.h readline/readline.h
4737 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4739 echo "configure:4740: checking for $ac_hdr" >&5
4740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4741 echo $ac_n "(cached) $ac_c" 1>&6
4742 else
4743 cat > conftest.$ac_ext <<EOF
4744 #line 4745 "configure"
4745 #include "confdefs.h"
4746 #include <$ac_hdr>
4748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4749 { (eval echo configure:4750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4751 if test -z "$ac_err"; then
4752 rm -rf conftest*
4753 eval "ac_cv_header_$ac_safe=yes"
4754 else
4755 echo "$ac_err" >&5
4756 echo "configure: failed program was:" >&5
4757 cat conftest.$ac_ext >&5
4758 rm -rf conftest*
4759 eval "ac_cv_header_$ac_safe=no"
4761 rm -f conftest*
4763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4764 echo "$ac_t""yes" 1>&6
4765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4766 cat >> confdefs.h <<EOF
4767 #define $ac_tr_hdr 1
4770 for termlib in ncurses curses termcap terminfo termlib; do
4771 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4772 echo "configure:4773: checking for tgetent in -l${termlib}" >&5
4773 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4775 echo $ac_n "(cached) $ac_c" 1>&6
4776 else
4777 ac_save_LIBS="$LIBS"
4778 LIBS="-l${termlib} $LIBS"
4779 cat > conftest.$ac_ext <<EOF
4780 #line 4781 "configure"
4781 #include "confdefs.h"
4782 /* Override any gcc2 internal prototype to avoid an error. */
4783 /* We use char because int might match the return type of a gcc2
4784 builtin and then its argument prototype would still apply. */
4785 char tgetent();
4787 int main() {
4788 tgetent()
4789 ; return 0; }
4791 if { (eval echo configure:4792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4792 rm -rf conftest*
4793 eval "ac_cv_lib_$ac_lib_var=yes"
4794 else
4795 echo "configure: failed program was:" >&5
4796 cat conftest.$ac_ext >&5
4797 rm -rf conftest*
4798 eval "ac_cv_lib_$ac_lib_var=no"
4800 rm -f conftest*
4801 LIBS="$ac_save_LIBS"
4804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4805 echo "$ac_t""yes" 1>&6
4806 TERMLIBS="-l${termlib}"; break
4807 else
4808 echo "$ac_t""no" 1>&6
4811 done
4812 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4813 echo "configure:4814: checking for rl_callback_handler_install in -lreadline" >&5
4814 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4815 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4816 echo $ac_n "(cached) $ac_c" 1>&6
4817 else
4818 ac_save_LIBS="$LIBS"
4819 LIBS="-lreadline $TERMLIBS $LIBS"
4820 cat > conftest.$ac_ext <<EOF
4821 #line 4822 "configure"
4822 #include "confdefs.h"
4823 /* Override any gcc2 internal prototype to avoid an error. */
4824 /* We use char because int might match the return type of a gcc2
4825 builtin and then its argument prototype would still apply. */
4826 char rl_callback_handler_install();
4828 int main() {
4829 rl_callback_handler_install()
4830 ; return 0; }
4832 if { (eval echo configure:4833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4833 rm -rf conftest*
4834 eval "ac_cv_lib_$ac_lib_var=yes"
4835 else
4836 echo "configure: failed program was:" >&5
4837 cat conftest.$ac_ext >&5
4838 rm -rf conftest*
4839 eval "ac_cv_lib_$ac_lib_var=no"
4841 rm -f conftest*
4842 LIBS="$ac_save_LIBS"
4845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4846 echo "$ac_t""yes" 1>&6
4847 TERMLDFLAGS="-L$with_readline/lib"
4848 TERMCPPFLAGS="-I$with_readline/include"
4849 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4850 TERMLIBS="-lreadline $TERMLIBS"
4851 cat >> confdefs.h <<\EOF
4852 #define HAVE_LIBREADLINE 1
4855 break
4856 else
4857 echo "$ac_t""no" 1>&6
4858 TERMLIBS= CPPFLAGS=$_cppflags
4861 else
4862 echo "$ac_t""no" 1>&6
4864 done
4867 LDFLAGS=$_ldflags
4869 esac
4870 else
4871 echo "$ac_t""no" 1>&6
4878 # The following test taken from the cvs sources
4879 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4880 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4881 # libsocket.so which has a bad implementation of gethostbyname (it
4882 # only looks in /etc/hosts), so we only look for -lsocket if we need
4883 # it.
4884 for ac_func in connect
4886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4887 echo "configure:4888: checking for $ac_func" >&5
4888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4889 echo $ac_n "(cached) $ac_c" 1>&6
4890 else
4891 cat > conftest.$ac_ext <<EOF
4892 #line 4893 "configure"
4893 #include "confdefs.h"
4894 /* System header to define __stub macros and hopefully few prototypes,
4895 which can conflict with char $ac_func(); below. */
4896 #include <assert.h>
4897 /* Override any gcc2 internal prototype to avoid an error. */
4898 /* We use char because int might match the return type of a gcc2
4899 builtin and then its argument prototype would still apply. */
4900 char $ac_func();
4902 int main() {
4904 /* The GNU C library defines this for functions which it implements
4905 to always fail with ENOSYS. Some functions are actually named
4906 something starting with __ and the normal name is an alias. */
4907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4908 choke me
4909 #else
4910 $ac_func();
4911 #endif
4913 ; return 0; }
4915 if { (eval echo configure:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4916 rm -rf conftest*
4917 eval "ac_cv_func_$ac_func=yes"
4918 else
4919 echo "configure: failed program was:" >&5
4920 cat conftest.$ac_ext >&5
4921 rm -rf conftest*
4922 eval "ac_cv_func_$ac_func=no"
4924 rm -f conftest*
4927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4928 echo "$ac_t""yes" 1>&6
4929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4930 cat >> confdefs.h <<EOF
4931 #define $ac_tr_func 1
4934 else
4935 echo "$ac_t""no" 1>&6
4937 done
4939 if test x"$ac_cv_func_connect" = x"no"; then
4940 case "$LIBS" in
4941 *-lnsl*) ;;
4942 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4943 echo "configure:4944: checking for printf in -lnsl_s" >&5
4944 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4945 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4946 echo $ac_n "(cached) $ac_c" 1>&6
4947 else
4948 ac_save_LIBS="$LIBS"
4949 LIBS="-lnsl_s $LIBS"
4950 cat > conftest.$ac_ext <<EOF
4951 #line 4952 "configure"
4952 #include "confdefs.h"
4953 /* Override any gcc2 internal prototype to avoid an error. */
4954 /* We use char because int might match the return type of a gcc2
4955 builtin and then its argument prototype would still apply. */
4956 char printf();
4958 int main() {
4959 printf()
4960 ; return 0; }
4962 if { (eval echo configure:4963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4963 rm -rf conftest*
4964 eval "ac_cv_lib_$ac_lib_var=yes"
4965 else
4966 echo "configure: failed program was:" >&5
4967 cat conftest.$ac_ext >&5
4968 rm -rf conftest*
4969 eval "ac_cv_lib_$ac_lib_var=no"
4971 rm -f conftest*
4972 LIBS="$ac_save_LIBS"
4975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4976 echo "$ac_t""yes" 1>&6
4977 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4978 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4979 cat >> confdefs.h <<EOF
4980 #define $ac_tr_lib 1
4983 LIBS="-lnsl_s $LIBS"
4985 else
4986 echo "$ac_t""no" 1>&6
4989 esac
4990 case "$LIBS" in
4991 *-lnsl*) ;;
4992 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4993 echo "configure:4994: checking for printf in -lnsl" >&5
4994 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4995 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4996 echo $ac_n "(cached) $ac_c" 1>&6
4997 else
4998 ac_save_LIBS="$LIBS"
4999 LIBS="-lnsl $LIBS"
5000 cat > conftest.$ac_ext <<EOF
5001 #line 5002 "configure"
5002 #include "confdefs.h"
5003 /* Override any gcc2 internal prototype to avoid an error. */
5004 /* We use char because int might match the return type of a gcc2
5005 builtin and then its argument prototype would still apply. */
5006 char printf();
5008 int main() {
5009 printf()
5010 ; return 0; }
5012 if { (eval echo configure:5013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5013 rm -rf conftest*
5014 eval "ac_cv_lib_$ac_lib_var=yes"
5015 else
5016 echo "configure: failed program was:" >&5
5017 cat conftest.$ac_ext >&5
5018 rm -rf conftest*
5019 eval "ac_cv_lib_$ac_lib_var=no"
5021 rm -f conftest*
5022 LIBS="$ac_save_LIBS"
5025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5026 echo "$ac_t""yes" 1>&6
5027 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5028 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5029 cat >> confdefs.h <<EOF
5030 #define $ac_tr_lib 1
5033 LIBS="-lnsl $LIBS"
5035 else
5036 echo "$ac_t""no" 1>&6
5039 esac
5040 case "$LIBS" in
5041 *-lsocket*) ;;
5042 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5043 echo "configure:5044: checking for connect in -lsocket" >&5
5044 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5045 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5046 echo $ac_n "(cached) $ac_c" 1>&6
5047 else
5048 ac_save_LIBS="$LIBS"
5049 LIBS="-lsocket $LIBS"
5050 cat > conftest.$ac_ext <<EOF
5051 #line 5052 "configure"
5052 #include "confdefs.h"
5053 /* Override any gcc2 internal prototype to avoid an error. */
5054 /* We use char because int might match the return type of a gcc2
5055 builtin and then its argument prototype would still apply. */
5056 char connect();
5058 int main() {
5059 connect()
5060 ; return 0; }
5062 if { (eval echo configure:5063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5063 rm -rf conftest*
5064 eval "ac_cv_lib_$ac_lib_var=yes"
5065 else
5066 echo "configure: failed program was:" >&5
5067 cat conftest.$ac_ext >&5
5068 rm -rf conftest*
5069 eval "ac_cv_lib_$ac_lib_var=no"
5071 rm -f conftest*
5072 LIBS="$ac_save_LIBS"
5075 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5076 echo "$ac_t""yes" 1>&6
5077 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5078 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5079 cat >> confdefs.h <<EOF
5080 #define $ac_tr_lib 1
5083 LIBS="-lsocket $LIBS"
5085 else
5086 echo "$ac_t""no" 1>&6
5089 esac
5090 case "$LIBS" in
5091 *-linet*) ;;
5092 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5093 echo "configure:5094: checking for connect in -linet" >&5
5094 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5095 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5096 echo $ac_n "(cached) $ac_c" 1>&6
5097 else
5098 ac_save_LIBS="$LIBS"
5099 LIBS="-linet $LIBS"
5100 cat > conftest.$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5103 /* Override any gcc2 internal prototype to avoid an error. */
5104 /* We use char because int might match the return type of a gcc2
5105 builtin and then its argument prototype would still apply. */
5106 char connect();
5108 int main() {
5109 connect()
5110 ; return 0; }
5112 if { (eval echo configure:5113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5113 rm -rf conftest*
5114 eval "ac_cv_lib_$ac_lib_var=yes"
5115 else
5116 echo "configure: failed program was:" >&5
5117 cat conftest.$ac_ext >&5
5118 rm -rf conftest*
5119 eval "ac_cv_lib_$ac_lib_var=no"
5121 rm -f conftest*
5122 LIBS="$ac_save_LIBS"
5125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5126 echo "$ac_t""yes" 1>&6
5127 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5128 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5129 cat >> confdefs.h <<EOF
5130 #define $ac_tr_lib 1
5133 LIBS="-linet $LIBS"
5135 else
5136 echo "$ac_t""no" 1>&6
5139 esac
5140 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5141 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5142 # ac_cv_func_connect=yes
5143 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5144 cat >> confdefs.h <<\EOF
5145 #define HAVE_CONNECT 1
5151 ###############################################
5152 # test for where we get get_yp_default_domain() from
5153 for ac_func in yp_get_default_domain
5155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5156 echo "configure:5157: checking for $ac_func" >&5
5157 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5158 echo $ac_n "(cached) $ac_c" 1>&6
5159 else
5160 cat > conftest.$ac_ext <<EOF
5161 #line 5162 "configure"
5162 #include "confdefs.h"
5163 /* System header to define __stub macros and hopefully few prototypes,
5164 which can conflict with char $ac_func(); below. */
5165 #include <assert.h>
5166 /* Override any gcc2 internal prototype to avoid an error. */
5167 /* We use char because int might match the return type of a gcc2
5168 builtin and then its argument prototype would still apply. */
5169 char $ac_func();
5171 int main() {
5173 /* The GNU C library defines this for functions which it implements
5174 to always fail with ENOSYS. Some functions are actually named
5175 something starting with __ and the normal name is an alias. */
5176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5177 choke me
5178 #else
5179 $ac_func();
5180 #endif
5182 ; return 0; }
5184 if { (eval echo configure:5185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5185 rm -rf conftest*
5186 eval "ac_cv_func_$ac_func=yes"
5187 else
5188 echo "configure: failed program was:" >&5
5189 cat conftest.$ac_ext >&5
5190 rm -rf conftest*
5191 eval "ac_cv_func_$ac_func=no"
5193 rm -f conftest*
5196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5197 echo "$ac_t""yes" 1>&6
5198 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5199 cat >> confdefs.h <<EOF
5200 #define $ac_tr_func 1
5203 else
5204 echo "$ac_t""no" 1>&6
5206 done
5208 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5209 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5210 echo "configure:5211: checking for yp_get_default_domain in -lnsl" >&5
5211 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5213 echo $ac_n "(cached) $ac_c" 1>&6
5214 else
5215 ac_save_LIBS="$LIBS"
5216 LIBS="-lnsl $LIBS"
5217 cat > conftest.$ac_ext <<EOF
5218 #line 5219 "configure"
5219 #include "confdefs.h"
5220 /* Override any gcc2 internal prototype to avoid an error. */
5221 /* We use char because int might match the return type of a gcc2
5222 builtin and then its argument prototype would still apply. */
5223 char yp_get_default_domain();
5225 int main() {
5226 yp_get_default_domain()
5227 ; return 0; }
5229 if { (eval echo configure:5230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5230 rm -rf conftest*
5231 eval "ac_cv_lib_$ac_lib_var=yes"
5232 else
5233 echo "configure: failed program was:" >&5
5234 cat conftest.$ac_ext >&5
5235 rm -rf conftest*
5236 eval "ac_cv_lib_$ac_lib_var=no"
5238 rm -f conftest*
5239 LIBS="$ac_save_LIBS"
5242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5243 echo "$ac_t""yes" 1>&6
5244 LIBS="$LIBS -lnsl";
5245 cat >> confdefs.h <<\EOF
5246 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5249 else
5250 echo "$ac_t""no" 1>&6
5255 # Check if we have execl, if not we need to compile smbrun.
5256 for ac_func in execl
5258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5259 echo "configure:5260: checking for $ac_func" >&5
5260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5261 echo $ac_n "(cached) $ac_c" 1>&6
5262 else
5263 cat > conftest.$ac_ext <<EOF
5264 #line 5265 "configure"
5265 #include "confdefs.h"
5266 /* System header to define __stub macros and hopefully few prototypes,
5267 which can conflict with char $ac_func(); below. */
5268 #include <assert.h>
5269 /* Override any gcc2 internal prototype to avoid an error. */
5270 /* We use char because int might match the return type of a gcc2
5271 builtin and then its argument prototype would still apply. */
5272 char $ac_func();
5274 int main() {
5276 /* The GNU C library defines this for functions which it implements
5277 to always fail with ENOSYS. Some functions are actually named
5278 something starting with __ and the normal name is an alias. */
5279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5280 choke me
5281 #else
5282 $ac_func();
5283 #endif
5285 ; return 0; }
5287 if { (eval echo configure:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5288 rm -rf conftest*
5289 eval "ac_cv_func_$ac_func=yes"
5290 else
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5293 rm -rf conftest*
5294 eval "ac_cv_func_$ac_func=no"
5296 rm -f conftest*
5299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5300 echo "$ac_t""yes" 1>&6
5301 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5302 cat >> confdefs.h <<EOF
5303 #define $ac_tr_func 1
5306 else
5307 echo "$ac_t""no" 1>&6
5309 done
5311 if test x"$ac_cv_func_execl" = x"no"; then
5312 RUNPROG="bin/smbrun"
5313 else
5314 RUNPROG=""
5317 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link
5319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5320 echo "configure:5321: checking for $ac_func" >&5
5321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5322 echo $ac_n "(cached) $ac_c" 1>&6
5323 else
5324 cat > conftest.$ac_ext <<EOF
5325 #line 5326 "configure"
5326 #include "confdefs.h"
5327 /* System header to define __stub macros and hopefully few prototypes,
5328 which can conflict with char $ac_func(); below. */
5329 #include <assert.h>
5330 /* Override any gcc2 internal prototype to avoid an error. */
5331 /* We use char because int might match the return type of a gcc2
5332 builtin and then its argument prototype would still apply. */
5333 char $ac_func();
5335 int main() {
5337 /* The GNU C library defines this for functions which it implements
5338 to always fail with ENOSYS. Some functions are actually named
5339 something starting with __ and the normal name is an alias. */
5340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5341 choke me
5342 #else
5343 $ac_func();
5344 #endif
5346 ; return 0; }
5348 if { (eval echo configure:5349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5349 rm -rf conftest*
5350 eval "ac_cv_func_$ac_func=yes"
5351 else
5352 echo "configure: failed program was:" >&5
5353 cat conftest.$ac_ext >&5
5354 rm -rf conftest*
5355 eval "ac_cv_func_$ac_func=no"
5357 rm -f conftest*
5360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5361 echo "$ac_t""yes" 1>&6
5362 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5363 cat >> confdefs.h <<EOF
5364 #define $ac_tr_func 1
5367 else
5368 echo "$ac_t""no" 1>&6
5370 done
5372 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid mknod mknod64
5374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5375 echo "configure:5376: checking for $ac_func" >&5
5376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5378 else
5379 cat > conftest.$ac_ext <<EOF
5380 #line 5381 "configure"
5381 #include "confdefs.h"
5382 /* System header to define __stub macros and hopefully few prototypes,
5383 which can conflict with char $ac_func(); below. */
5384 #include <assert.h>
5385 /* Override any gcc2 internal prototype to avoid an error. */
5386 /* We use char because int might match the return type of a gcc2
5387 builtin and then its argument prototype would still apply. */
5388 char $ac_func();
5390 int main() {
5392 /* The GNU C library defines this for functions which it implements
5393 to always fail with ENOSYS. Some functions are actually named
5394 something starting with __ and the normal name is an alias. */
5395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5396 choke me
5397 #else
5398 $ac_func();
5399 #endif
5401 ; return 0; }
5403 if { (eval echo configure:5404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5404 rm -rf conftest*
5405 eval "ac_cv_func_$ac_func=yes"
5406 else
5407 echo "configure: failed program was:" >&5
5408 cat conftest.$ac_ext >&5
5409 rm -rf conftest*
5410 eval "ac_cv_func_$ac_func=no"
5412 rm -f conftest*
5415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5416 echo "$ac_t""yes" 1>&6
5417 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5418 cat >> confdefs.h <<EOF
5419 #define $ac_tr_func 1
5422 else
5423 echo "$ac_t""no" 1>&6
5425 done
5427 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5430 echo "configure:5431: checking for $ac_func" >&5
5431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5432 echo $ac_n "(cached) $ac_c" 1>&6
5433 else
5434 cat > conftest.$ac_ext <<EOF
5435 #line 5436 "configure"
5436 #include "confdefs.h"
5437 /* System header to define __stub macros and hopefully few prototypes,
5438 which can conflict with char $ac_func(); below. */
5439 #include <assert.h>
5440 /* Override any gcc2 internal prototype to avoid an error. */
5441 /* We use char because int might match the return type of a gcc2
5442 builtin and then its argument prototype would still apply. */
5443 char $ac_func();
5445 int main() {
5447 /* The GNU C library defines this for functions which it implements
5448 to always fail with ENOSYS. Some functions are actually named
5449 something starting with __ and the normal name is an alias. */
5450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5451 choke me
5452 #else
5453 $ac_func();
5454 #endif
5456 ; return 0; }
5458 if { (eval echo configure:5459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5459 rm -rf conftest*
5460 eval "ac_cv_func_$ac_func=yes"
5461 else
5462 echo "configure: failed program was:" >&5
5463 cat conftest.$ac_ext >&5
5464 rm -rf conftest*
5465 eval "ac_cv_func_$ac_func=no"
5467 rm -f conftest*
5470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5471 echo "$ac_t""yes" 1>&6
5472 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5473 cat >> confdefs.h <<EOF
5474 #define $ac_tr_func 1
5477 else
5478 echo "$ac_t""no" 1>&6
5480 done
5482 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5485 echo "configure:5486: checking for $ac_func" >&5
5486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5487 echo $ac_n "(cached) $ac_c" 1>&6
5488 else
5489 cat > conftest.$ac_ext <<EOF
5490 #line 5491 "configure"
5491 #include "confdefs.h"
5492 /* System header to define __stub macros and hopefully few prototypes,
5493 which can conflict with char $ac_func(); below. */
5494 #include <assert.h>
5495 /* Override any gcc2 internal prototype to avoid an error. */
5496 /* We use char because int might match the return type of a gcc2
5497 builtin and then its argument prototype would still apply. */
5498 char $ac_func();
5500 int main() {
5502 /* The GNU C library defines this for functions which it implements
5503 to always fail with ENOSYS. Some functions are actually named
5504 something starting with __ and the normal name is an alias. */
5505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5506 choke me
5507 #else
5508 $ac_func();
5509 #endif
5511 ; return 0; }
5513 if { (eval echo configure:5514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5514 rm -rf conftest*
5515 eval "ac_cv_func_$ac_func=yes"
5516 else
5517 echo "configure: failed program was:" >&5
5518 cat conftest.$ac_ext >&5
5519 rm -rf conftest*
5520 eval "ac_cv_func_$ac_func=no"
5522 rm -f conftest*
5525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5526 echo "$ac_t""yes" 1>&6
5527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5528 cat >> confdefs.h <<EOF
5529 #define $ac_tr_func 1
5532 else
5533 echo "$ac_t""no" 1>&6
5535 done
5537 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5540 echo "configure:5541: checking for $ac_func" >&5
5541 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5542 echo $ac_n "(cached) $ac_c" 1>&6
5543 else
5544 cat > conftest.$ac_ext <<EOF
5545 #line 5546 "configure"
5546 #include "confdefs.h"
5547 /* System header to define __stub macros and hopefully few prototypes,
5548 which can conflict with char $ac_func(); below. */
5549 #include <assert.h>
5550 /* Override any gcc2 internal prototype to avoid an error. */
5551 /* We use char because int might match the return type of a gcc2
5552 builtin and then its argument prototype would still apply. */
5553 char $ac_func();
5555 int main() {
5557 /* The GNU C library defines this for functions which it implements
5558 to always fail with ENOSYS. Some functions are actually named
5559 something starting with __ and the normal name is an alias. */
5560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5561 choke me
5562 #else
5563 $ac_func();
5564 #endif
5566 ; return 0; }
5568 if { (eval echo configure:5569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5569 rm -rf conftest*
5570 eval "ac_cv_func_$ac_func=yes"
5571 else
5572 echo "configure: failed program was:" >&5
5573 cat conftest.$ac_ext >&5
5574 rm -rf conftest*
5575 eval "ac_cv_func_$ac_func=no"
5577 rm -f conftest*
5580 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5581 echo "$ac_t""yes" 1>&6
5582 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5583 cat >> confdefs.h <<EOF
5584 #define $ac_tr_func 1
5587 else
5588 echo "$ac_t""no" 1>&6
5590 done
5592 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5595 echo "configure:5596: checking for $ac_func" >&5
5596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5597 echo $ac_n "(cached) $ac_c" 1>&6
5598 else
5599 cat > conftest.$ac_ext <<EOF
5600 #line 5601 "configure"
5601 #include "confdefs.h"
5602 /* System header to define __stub macros and hopefully few prototypes,
5603 which can conflict with char $ac_func(); below. */
5604 #include <assert.h>
5605 /* Override any gcc2 internal prototype to avoid an error. */
5606 /* We use char because int might match the return type of a gcc2
5607 builtin and then its argument prototype would still apply. */
5608 char $ac_func();
5610 int main() {
5612 /* The GNU C library defines this for functions which it implements
5613 to always fail with ENOSYS. Some functions are actually named
5614 something starting with __ and the normal name is an alias. */
5615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5616 choke me
5617 #else
5618 $ac_func();
5619 #endif
5621 ; return 0; }
5623 if { (eval echo configure:5624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5624 rm -rf conftest*
5625 eval "ac_cv_func_$ac_func=yes"
5626 else
5627 echo "configure: failed program was:" >&5
5628 cat conftest.$ac_ext >&5
5629 rm -rf conftest*
5630 eval "ac_cv_func_$ac_func=no"
5632 rm -f conftest*
5635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5636 echo "$ac_t""yes" 1>&6
5637 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5638 cat >> confdefs.h <<EOF
5639 #define $ac_tr_func 1
5642 else
5643 echo "$ac_t""no" 1>&6
5645 done
5647 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5650 echo "configure:5651: checking for $ac_func" >&5
5651 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5652 echo $ac_n "(cached) $ac_c" 1>&6
5653 else
5654 cat > conftest.$ac_ext <<EOF
5655 #line 5656 "configure"
5656 #include "confdefs.h"
5657 /* System header to define __stub macros and hopefully few prototypes,
5658 which can conflict with char $ac_func(); below. */
5659 #include <assert.h>
5660 /* Override any gcc2 internal prototype to avoid an error. */
5661 /* We use char because int might match the return type of a gcc2
5662 builtin and then its argument prototype would still apply. */
5663 char $ac_func();
5665 int main() {
5667 /* The GNU C library defines this for functions which it implements
5668 to always fail with ENOSYS. Some functions are actually named
5669 something starting with __ and the normal name is an alias. */
5670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5671 choke me
5672 #else
5673 $ac_func();
5674 #endif
5676 ; return 0; }
5678 if { (eval echo configure:5679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5679 rm -rf conftest*
5680 eval "ac_cv_func_$ac_func=yes"
5681 else
5682 echo "configure: failed program was:" >&5
5683 cat conftest.$ac_ext >&5
5684 rm -rf conftest*
5685 eval "ac_cv_func_$ac_func=no"
5687 rm -f conftest*
5690 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5691 echo "$ac_t""yes" 1>&6
5692 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5693 cat >> confdefs.h <<EOF
5694 #define $ac_tr_func 1
5697 else
5698 echo "$ac_t""no" 1>&6
5700 done
5702 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5705 echo "configure:5706: checking for $ac_func" >&5
5706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5707 echo $ac_n "(cached) $ac_c" 1>&6
5708 else
5709 cat > conftest.$ac_ext <<EOF
5710 #line 5711 "configure"
5711 #include "confdefs.h"
5712 /* System header to define __stub macros and hopefully few prototypes,
5713 which can conflict with char $ac_func(); below. */
5714 #include <assert.h>
5715 /* Override any gcc2 internal prototype to avoid an error. */
5716 /* We use char because int might match the return type of a gcc2
5717 builtin and then its argument prototype would still apply. */
5718 char $ac_func();
5720 int main() {
5722 /* The GNU C library defines this for functions which it implements
5723 to always fail with ENOSYS. Some functions are actually named
5724 something starting with __ and the normal name is an alias. */
5725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5726 choke me
5727 #else
5728 $ac_func();
5729 #endif
5731 ; return 0; }
5733 if { (eval echo configure:5734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5734 rm -rf conftest*
5735 eval "ac_cv_func_$ac_func=yes"
5736 else
5737 echo "configure: failed program was:" >&5
5738 cat conftest.$ac_ext >&5
5739 rm -rf conftest*
5740 eval "ac_cv_func_$ac_func=no"
5742 rm -f conftest*
5745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5746 echo "$ac_t""yes" 1>&6
5747 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5748 cat >> confdefs.h <<EOF
5749 #define $ac_tr_func 1
5752 else
5753 echo "$ac_t""no" 1>&6
5755 done
5757 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5760 echo "configure:5761: checking for $ac_func" >&5
5761 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5762 echo $ac_n "(cached) $ac_c" 1>&6
5763 else
5764 cat > conftest.$ac_ext <<EOF
5765 #line 5766 "configure"
5766 #include "confdefs.h"
5767 /* System header to define __stub macros and hopefully few prototypes,
5768 which can conflict with char $ac_func(); below. */
5769 #include <assert.h>
5770 /* Override any gcc2 internal prototype to avoid an error. */
5771 /* We use char because int might match the return type of a gcc2
5772 builtin and then its argument prototype would still apply. */
5773 char $ac_func();
5775 int main() {
5777 /* The GNU C library defines this for functions which it implements
5778 to always fail with ENOSYS. Some functions are actually named
5779 something starting with __ and the normal name is an alias. */
5780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5781 choke me
5782 #else
5783 $ac_func();
5784 #endif
5786 ; return 0; }
5788 if { (eval echo configure:5789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5789 rm -rf conftest*
5790 eval "ac_cv_func_$ac_func=yes"
5791 else
5792 echo "configure: failed program was:" >&5
5793 cat conftest.$ac_ext >&5
5794 rm -rf conftest*
5795 eval "ac_cv_func_$ac_func=no"
5797 rm -f conftest*
5800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5801 echo "$ac_t""yes" 1>&6
5802 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5803 cat >> confdefs.h <<EOF
5804 #define $ac_tr_func 1
5807 else
5808 echo "$ac_t""no" 1>&6
5810 done
5812 for ac_func in syslog vsyslog
5814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5815 echo "configure:5816: checking for $ac_func" >&5
5816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5817 echo $ac_n "(cached) $ac_c" 1>&6
5818 else
5819 cat > conftest.$ac_ext <<EOF
5820 #line 5821 "configure"
5821 #include "confdefs.h"
5822 /* System header to define __stub macros and hopefully few prototypes,
5823 which can conflict with char $ac_func(); below. */
5824 #include <assert.h>
5825 /* Override any gcc2 internal prototype to avoid an error. */
5826 /* We use char because int might match the return type of a gcc2
5827 builtin and then its argument prototype would still apply. */
5828 char $ac_func();
5830 int main() {
5832 /* The GNU C library defines this for functions which it implements
5833 to always fail with ENOSYS. Some functions are actually named
5834 something starting with __ and the normal name is an alias. */
5835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5836 choke me
5837 #else
5838 $ac_func();
5839 #endif
5841 ; return 0; }
5843 if { (eval echo configure:5844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5844 rm -rf conftest*
5845 eval "ac_cv_func_$ac_func=yes"
5846 else
5847 echo "configure: failed program was:" >&5
5848 cat conftest.$ac_ext >&5
5849 rm -rf conftest*
5850 eval "ac_cv_func_$ac_func=no"
5852 rm -f conftest*
5855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5856 echo "$ac_t""yes" 1>&6
5857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5858 cat >> confdefs.h <<EOF
5859 #define $ac_tr_func 1
5862 else
5863 echo "$ac_t""no" 1>&6
5865 done
5868 # syscall() is needed for smbwrapper.
5869 for ac_func in syscall
5871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5872 echo "configure:5873: checking for $ac_func" >&5
5873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5874 echo $ac_n "(cached) $ac_c" 1>&6
5875 else
5876 cat > conftest.$ac_ext <<EOF
5877 #line 5878 "configure"
5878 #include "confdefs.h"
5879 /* System header to define __stub macros and hopefully few prototypes,
5880 which can conflict with char $ac_func(); below. */
5881 #include <assert.h>
5882 /* Override any gcc2 internal prototype to avoid an error. */
5883 /* We use char because int might match the return type of a gcc2
5884 builtin and then its argument prototype would still apply. */
5885 char $ac_func();
5887 int main() {
5889 /* The GNU C library defines this for functions which it implements
5890 to always fail with ENOSYS. Some functions are actually named
5891 something starting with __ and the normal name is an alias. */
5892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5893 choke me
5894 #else
5895 $ac_func();
5896 #endif
5898 ; return 0; }
5900 if { (eval echo configure:5901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5901 rm -rf conftest*
5902 eval "ac_cv_func_$ac_func=yes"
5903 else
5904 echo "configure: failed program was:" >&5
5905 cat conftest.$ac_ext >&5
5906 rm -rf conftest*
5907 eval "ac_cv_func_$ac_func=no"
5909 rm -f conftest*
5912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5913 echo "$ac_t""yes" 1>&6
5914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5915 cat >> confdefs.h <<EOF
5916 #define $ac_tr_func 1
5919 else
5920 echo "$ac_t""no" 1>&6
5922 done
5925 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5928 echo "configure:5929: checking for $ac_func" >&5
5929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5930 echo $ac_n "(cached) $ac_c" 1>&6
5931 else
5932 cat > conftest.$ac_ext <<EOF
5933 #line 5934 "configure"
5934 #include "confdefs.h"
5935 /* System header to define __stub macros and hopefully few prototypes,
5936 which can conflict with char $ac_func(); below. */
5937 #include <assert.h>
5938 /* Override any gcc2 internal prototype to avoid an error. */
5939 /* We use char because int might match the return type of a gcc2
5940 builtin and then its argument prototype would still apply. */
5941 char $ac_func();
5943 int main() {
5945 /* The GNU C library defines this for functions which it implements
5946 to always fail with ENOSYS. Some functions are actually named
5947 something starting with __ and the normal name is an alias. */
5948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5949 choke me
5950 #else
5951 $ac_func();
5952 #endif
5954 ; return 0; }
5956 if { (eval echo configure:5957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5957 rm -rf conftest*
5958 eval "ac_cv_func_$ac_func=yes"
5959 else
5960 echo "configure: failed program was:" >&5
5961 cat conftest.$ac_ext >&5
5962 rm -rf conftest*
5963 eval "ac_cv_func_$ac_func=no"
5965 rm -f conftest*
5968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5969 echo "$ac_t""yes" 1>&6
5970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5971 cat >> confdefs.h <<EOF
5972 #define $ac_tr_func 1
5975 else
5976 echo "$ac_t""no" 1>&6
5978 done
5980 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5983 echo "configure:5984: checking for $ac_func" >&5
5984 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5985 echo $ac_n "(cached) $ac_c" 1>&6
5986 else
5987 cat > conftest.$ac_ext <<EOF
5988 #line 5989 "configure"
5989 #include "confdefs.h"
5990 /* System header to define __stub macros and hopefully few prototypes,
5991 which can conflict with char $ac_func(); below. */
5992 #include <assert.h>
5993 /* Override any gcc2 internal prototype to avoid an error. */
5994 /* We use char because int might match the return type of a gcc2
5995 builtin and then its argument prototype would still apply. */
5996 char $ac_func();
5998 int main() {
6000 /* The GNU C library defines this for functions which it implements
6001 to always fail with ENOSYS. Some functions are actually named
6002 something starting with __ and the normal name is an alias. */
6003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6004 choke me
6005 #else
6006 $ac_func();
6007 #endif
6009 ; return 0; }
6011 if { (eval echo configure:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6012 rm -rf conftest*
6013 eval "ac_cv_func_$ac_func=yes"
6014 else
6015 echo "configure: failed program was:" >&5
6016 cat conftest.$ac_ext >&5
6017 rm -rf conftest*
6018 eval "ac_cv_func_$ac_func=no"
6020 rm -f conftest*
6023 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6024 echo "$ac_t""yes" 1>&6
6025 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6026 cat >> confdefs.h <<EOF
6027 #define $ac_tr_func 1
6030 else
6031 echo "$ac_t""no" 1>&6
6033 done
6035 for ac_func in __getcwd _getcwd
6037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6038 echo "configure:6039: checking for $ac_func" >&5
6039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6040 echo $ac_n "(cached) $ac_c" 1>&6
6041 else
6042 cat > conftest.$ac_ext <<EOF
6043 #line 6044 "configure"
6044 #include "confdefs.h"
6045 /* System header to define __stub macros and hopefully few prototypes,
6046 which can conflict with char $ac_func(); below. */
6047 #include <assert.h>
6048 /* Override any gcc2 internal prototype to avoid an error. */
6049 /* We use char because int might match the return type of a gcc2
6050 builtin and then its argument prototype would still apply. */
6051 char $ac_func();
6053 int main() {
6055 /* The GNU C library defines this for functions which it implements
6056 to always fail with ENOSYS. Some functions are actually named
6057 something starting with __ and the normal name is an alias. */
6058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6059 choke me
6060 #else
6061 $ac_func();
6062 #endif
6064 ; return 0; }
6066 if { (eval echo configure:6067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6067 rm -rf conftest*
6068 eval "ac_cv_func_$ac_func=yes"
6069 else
6070 echo "configure: failed program was:" >&5
6071 cat conftest.$ac_ext >&5
6072 rm -rf conftest*
6073 eval "ac_cv_func_$ac_func=no"
6075 rm -f conftest*
6078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6079 echo "$ac_t""yes" 1>&6
6080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6081 cat >> confdefs.h <<EOF
6082 #define $ac_tr_func 1
6085 else
6086 echo "$ac_t""no" 1>&6
6088 done
6090 for ac_func in __xstat __fxstat __lxstat
6092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6093 echo "configure:6094: checking for $ac_func" >&5
6094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6095 echo $ac_n "(cached) $ac_c" 1>&6
6096 else
6097 cat > conftest.$ac_ext <<EOF
6098 #line 6099 "configure"
6099 #include "confdefs.h"
6100 /* System header to define __stub macros and hopefully few prototypes,
6101 which can conflict with char $ac_func(); below. */
6102 #include <assert.h>
6103 /* Override any gcc2 internal prototype to avoid an error. */
6104 /* We use char because int might match the return type of a gcc2
6105 builtin and then its argument prototype would still apply. */
6106 char $ac_func();
6108 int main() {
6110 /* The GNU C library defines this for functions which it implements
6111 to always fail with ENOSYS. Some functions are actually named
6112 something starting with __ and the normal name is an alias. */
6113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6114 choke me
6115 #else
6116 $ac_func();
6117 #endif
6119 ; return 0; }
6121 if { (eval echo configure:6122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6122 rm -rf conftest*
6123 eval "ac_cv_func_$ac_func=yes"
6124 else
6125 echo "configure: failed program was:" >&5
6126 cat conftest.$ac_ext >&5
6127 rm -rf conftest*
6128 eval "ac_cv_func_$ac_func=no"
6130 rm -f conftest*
6133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6134 echo "$ac_t""yes" 1>&6
6135 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6136 cat >> confdefs.h <<EOF
6137 #define $ac_tr_func 1
6140 else
6141 echo "$ac_t""no" 1>&6
6143 done
6145 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6148 echo "configure:6149: checking for $ac_func" >&5
6149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6150 echo $ac_n "(cached) $ac_c" 1>&6
6151 else
6152 cat > conftest.$ac_ext <<EOF
6153 #line 6154 "configure"
6154 #include "confdefs.h"
6155 /* System header to define __stub macros and hopefully few prototypes,
6156 which can conflict with char $ac_func(); below. */
6157 #include <assert.h>
6158 /* Override any gcc2 internal prototype to avoid an error. */
6159 /* We use char because int might match the return type of a gcc2
6160 builtin and then its argument prototype would still apply. */
6161 char $ac_func();
6163 int main() {
6165 /* The GNU C library defines this for functions which it implements
6166 to always fail with ENOSYS. Some functions are actually named
6167 something starting with __ and the normal name is an alias. */
6168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6169 choke me
6170 #else
6171 $ac_func();
6172 #endif
6174 ; return 0; }
6176 if { (eval echo configure:6177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6177 rm -rf conftest*
6178 eval "ac_cv_func_$ac_func=yes"
6179 else
6180 echo "configure: failed program was:" >&5
6181 cat conftest.$ac_ext >&5
6182 rm -rf conftest*
6183 eval "ac_cv_func_$ac_func=no"
6185 rm -f conftest*
6188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6189 echo "$ac_t""yes" 1>&6
6190 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6191 cat >> confdefs.h <<EOF
6192 #define $ac_tr_func 1
6195 else
6196 echo "$ac_t""no" 1>&6
6198 done
6200 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6203 echo "configure:6204: checking for $ac_func" >&5
6204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6205 echo $ac_n "(cached) $ac_c" 1>&6
6206 else
6207 cat > conftest.$ac_ext <<EOF
6208 #line 6209 "configure"
6209 #include "confdefs.h"
6210 /* System header to define __stub macros and hopefully few prototypes,
6211 which can conflict with char $ac_func(); below. */
6212 #include <assert.h>
6213 /* Override any gcc2 internal prototype to avoid an error. */
6214 /* We use char because int might match the return type of a gcc2
6215 builtin and then its argument prototype would still apply. */
6216 char $ac_func();
6218 int main() {
6220 /* The GNU C library defines this for functions which it implements
6221 to always fail with ENOSYS. Some functions are actually named
6222 something starting with __ and the normal name is an alias. */
6223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6224 choke me
6225 #else
6226 $ac_func();
6227 #endif
6229 ; return 0; }
6231 if { (eval echo configure:6232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6232 rm -rf conftest*
6233 eval "ac_cv_func_$ac_func=yes"
6234 else
6235 echo "configure: failed program was:" >&5
6236 cat conftest.$ac_ext >&5
6237 rm -rf conftest*
6238 eval "ac_cv_func_$ac_func=no"
6240 rm -f conftest*
6243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6244 echo "$ac_t""yes" 1>&6
6245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6246 cat >> confdefs.h <<EOF
6247 #define $ac_tr_func 1
6250 else
6251 echo "$ac_t""no" 1>&6
6253 done
6255 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6258 echo "configure:6259: checking for $ac_func" >&5
6259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6260 echo $ac_n "(cached) $ac_c" 1>&6
6261 else
6262 cat > conftest.$ac_ext <<EOF
6263 #line 6264 "configure"
6264 #include "confdefs.h"
6265 /* System header to define __stub macros and hopefully few prototypes,
6266 which can conflict with char $ac_func(); below. */
6267 #include <assert.h>
6268 /* Override any gcc2 internal prototype to avoid an error. */
6269 /* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */
6271 char $ac_func();
6273 int main() {
6275 /* The GNU C library defines this for functions which it implements
6276 to always fail with ENOSYS. Some functions are actually named
6277 something starting with __ and the normal name is an alias. */
6278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6279 choke me
6280 #else
6281 $ac_func();
6282 #endif
6284 ; return 0; }
6286 if { (eval echo configure:6287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6287 rm -rf conftest*
6288 eval "ac_cv_func_$ac_func=yes"
6289 else
6290 echo "configure: failed program was:" >&5
6291 cat conftest.$ac_ext >&5
6292 rm -rf conftest*
6293 eval "ac_cv_func_$ac_func=no"
6295 rm -f conftest*
6298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6299 echo "$ac_t""yes" 1>&6
6300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6301 cat >> confdefs.h <<EOF
6302 #define $ac_tr_func 1
6305 else
6306 echo "$ac_t""no" 1>&6
6308 done
6310 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6313 echo "configure:6314: checking for $ac_func" >&5
6314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6315 echo $ac_n "(cached) $ac_c" 1>&6
6316 else
6317 cat > conftest.$ac_ext <<EOF
6318 #line 6319 "configure"
6319 #include "confdefs.h"
6320 /* System header to define __stub macros and hopefully few prototypes,
6321 which can conflict with char $ac_func(); below. */
6322 #include <assert.h>
6323 /* Override any gcc2 internal prototype to avoid an error. */
6324 /* We use char because int might match the return type of a gcc2
6325 builtin and then its argument prototype would still apply. */
6326 char $ac_func();
6328 int main() {
6330 /* The GNU C library defines this for functions which it implements
6331 to always fail with ENOSYS. Some functions are actually named
6332 something starting with __ and the normal name is an alias. */
6333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6334 choke me
6335 #else
6336 $ac_func();
6337 #endif
6339 ; return 0; }
6341 if { (eval echo configure:6342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6342 rm -rf conftest*
6343 eval "ac_cv_func_$ac_func=yes"
6344 else
6345 echo "configure: failed program was:" >&5
6346 cat conftest.$ac_ext >&5
6347 rm -rf conftest*
6348 eval "ac_cv_func_$ac_func=no"
6350 rm -f conftest*
6353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6354 echo "$ac_t""yes" 1>&6
6355 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6356 cat >> confdefs.h <<EOF
6357 #define $ac_tr_func 1
6360 else
6361 echo "$ac_t""no" 1>&6
6363 done
6365 for ac_func in _write __write _fork __fork
6367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6368 echo "configure:6369: checking for $ac_func" >&5
6369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6370 echo $ac_n "(cached) $ac_c" 1>&6
6371 else
6372 cat > conftest.$ac_ext <<EOF
6373 #line 6374 "configure"
6374 #include "confdefs.h"
6375 /* System header to define __stub macros and hopefully few prototypes,
6376 which can conflict with char $ac_func(); below. */
6377 #include <assert.h>
6378 /* Override any gcc2 internal prototype to avoid an error. */
6379 /* We use char because int might match the return type of a gcc2
6380 builtin and then its argument prototype would still apply. */
6381 char $ac_func();
6383 int main() {
6385 /* The GNU C library defines this for functions which it implements
6386 to always fail with ENOSYS. Some functions are actually named
6387 something starting with __ and the normal name is an alias. */
6388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6389 choke me
6390 #else
6391 $ac_func();
6392 #endif
6394 ; return 0; }
6396 if { (eval echo configure:6397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6397 rm -rf conftest*
6398 eval "ac_cv_func_$ac_func=yes"
6399 else
6400 echo "configure: failed program was:" >&5
6401 cat conftest.$ac_ext >&5
6402 rm -rf conftest*
6403 eval "ac_cv_func_$ac_func=no"
6405 rm -f conftest*
6408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6409 echo "$ac_t""yes" 1>&6
6410 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6411 cat >> confdefs.h <<EOF
6412 #define $ac_tr_func 1
6415 else
6416 echo "$ac_t""no" 1>&6
6418 done
6420 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6423 echo "configure:6424: checking for $ac_func" >&5
6424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6425 echo $ac_n "(cached) $ac_c" 1>&6
6426 else
6427 cat > conftest.$ac_ext <<EOF
6428 #line 6429 "configure"
6429 #include "confdefs.h"
6430 /* System header to define __stub macros and hopefully few prototypes,
6431 which can conflict with char $ac_func(); below. */
6432 #include <assert.h>
6433 /* Override any gcc2 internal prototype to avoid an error. */
6434 /* We use char because int might match the return type of a gcc2
6435 builtin and then its argument prototype would still apply. */
6436 char $ac_func();
6438 int main() {
6440 /* The GNU C library defines this for functions which it implements
6441 to always fail with ENOSYS. Some functions are actually named
6442 something starting with __ and the normal name is an alias. */
6443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6444 choke me
6445 #else
6446 $ac_func();
6447 #endif
6449 ; return 0; }
6451 if { (eval echo configure:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6452 rm -rf conftest*
6453 eval "ac_cv_func_$ac_func=yes"
6454 else
6455 echo "configure: failed program was:" >&5
6456 cat conftest.$ac_ext >&5
6457 rm -rf conftest*
6458 eval "ac_cv_func_$ac_func=no"
6460 rm -f conftest*
6463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6464 echo "$ac_t""yes" 1>&6
6465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6466 cat >> confdefs.h <<EOF
6467 #define $ac_tr_func 1
6470 else
6471 echo "$ac_t""no" 1>&6
6473 done
6475 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6478 echo "configure:6479: checking for $ac_func" >&5
6479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6480 echo $ac_n "(cached) $ac_c" 1>&6
6481 else
6482 cat > conftest.$ac_ext <<EOF
6483 #line 6484 "configure"
6484 #include "confdefs.h"
6485 /* System header to define __stub macros and hopefully few prototypes,
6486 which can conflict with char $ac_func(); below. */
6487 #include <assert.h>
6488 /* Override any gcc2 internal prototype to avoid an error. */
6489 /* We use char because int might match the return type of a gcc2
6490 builtin and then its argument prototype would still apply. */
6491 char $ac_func();
6493 int main() {
6495 /* The GNU C library defines this for functions which it implements
6496 to always fail with ENOSYS. Some functions are actually named
6497 something starting with __ and the normal name is an alias. */
6498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6499 choke me
6500 #else
6501 $ac_func();
6502 #endif
6504 ; return 0; }
6506 if { (eval echo configure:6507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6507 rm -rf conftest*
6508 eval "ac_cv_func_$ac_func=yes"
6509 else
6510 echo "configure: failed program was:" >&5
6511 cat conftest.$ac_ext >&5
6512 rm -rf conftest*
6513 eval "ac_cv_func_$ac_func=no"
6515 rm -f conftest*
6518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6519 echo "$ac_t""yes" 1>&6
6520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6521 cat >> confdefs.h <<EOF
6522 #define $ac_tr_func 1
6525 else
6526 echo "$ac_t""no" 1>&6
6528 done
6530 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6533 echo "configure:6534: checking for $ac_func" >&5
6534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6535 echo $ac_n "(cached) $ac_c" 1>&6
6536 else
6537 cat > conftest.$ac_ext <<EOF
6538 #line 6539 "configure"
6539 #include "confdefs.h"
6540 /* System header to define __stub macros and hopefully few prototypes,
6541 which can conflict with char $ac_func(); below. */
6542 #include <assert.h>
6543 /* Override any gcc2 internal prototype to avoid an error. */
6544 /* We use char because int might match the return type of a gcc2
6545 builtin and then its argument prototype would still apply. */
6546 char $ac_func();
6548 int main() {
6550 /* The GNU C library defines this for functions which it implements
6551 to always fail with ENOSYS. Some functions are actually named
6552 something starting with __ and the normal name is an alias. */
6553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6554 choke me
6555 #else
6556 $ac_func();
6557 #endif
6559 ; return 0; }
6561 if { (eval echo configure:6562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6562 rm -rf conftest*
6563 eval "ac_cv_func_$ac_func=yes"
6564 else
6565 echo "configure: failed program was:" >&5
6566 cat conftest.$ac_ext >&5
6567 rm -rf conftest*
6568 eval "ac_cv_func_$ac_func=no"
6570 rm -f conftest*
6573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6574 echo "$ac_t""yes" 1>&6
6575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6576 cat >> confdefs.h <<EOF
6577 #define $ac_tr_func 1
6580 else
6581 echo "$ac_t""no" 1>&6
6583 done
6585 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6588 echo "configure:6589: checking for $ac_func" >&5
6589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6590 echo $ac_n "(cached) $ac_c" 1>&6
6591 else
6592 cat > conftest.$ac_ext <<EOF
6593 #line 6594 "configure"
6594 #include "confdefs.h"
6595 /* System header to define __stub macros and hopefully few prototypes,
6596 which can conflict with char $ac_func(); below. */
6597 #include <assert.h>
6598 /* Override any gcc2 internal prototype to avoid an error. */
6599 /* We use char because int might match the return type of a gcc2
6600 builtin and then its argument prototype would still apply. */
6601 char $ac_func();
6603 int main() {
6605 /* The GNU C library defines this for functions which it implements
6606 to always fail with ENOSYS. Some functions are actually named
6607 something starting with __ and the normal name is an alias. */
6608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6609 choke me
6610 #else
6611 $ac_func();
6612 #endif
6614 ; return 0; }
6616 if { (eval echo configure:6617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6617 rm -rf conftest*
6618 eval "ac_cv_func_$ac_func=yes"
6619 else
6620 echo "configure: failed program was:" >&5
6621 cat conftest.$ac_ext >&5
6622 rm -rf conftest*
6623 eval "ac_cv_func_$ac_func=no"
6625 rm -f conftest*
6628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6629 echo "$ac_t""yes" 1>&6
6630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6631 cat >> confdefs.h <<EOF
6632 #define $ac_tr_func 1
6635 else
6636 echo "$ac_t""no" 1>&6
6638 done
6640 for ac_func in open64 _open64 __open64 creat64
6642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6643 echo "configure:6644: checking for $ac_func" >&5
6644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6645 echo $ac_n "(cached) $ac_c" 1>&6
6646 else
6647 cat > conftest.$ac_ext <<EOF
6648 #line 6649 "configure"
6649 #include "confdefs.h"
6650 /* System header to define __stub macros and hopefully few prototypes,
6651 which can conflict with char $ac_func(); below. */
6652 #include <assert.h>
6653 /* Override any gcc2 internal prototype to avoid an error. */
6654 /* We use char because int might match the return type of a gcc2
6655 builtin and then its argument prototype would still apply. */
6656 char $ac_func();
6658 int main() {
6660 /* The GNU C library defines this for functions which it implements
6661 to always fail with ENOSYS. Some functions are actually named
6662 something starting with __ and the normal name is an alias. */
6663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6664 choke me
6665 #else
6666 $ac_func();
6667 #endif
6669 ; return 0; }
6671 if { (eval echo configure:6672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6672 rm -rf conftest*
6673 eval "ac_cv_func_$ac_func=yes"
6674 else
6675 echo "configure: failed program was:" >&5
6676 cat conftest.$ac_ext >&5
6677 rm -rf conftest*
6678 eval "ac_cv_func_$ac_func=no"
6680 rm -f conftest*
6683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6684 echo "$ac_t""yes" 1>&6
6685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6686 cat >> confdefs.h <<EOF
6687 #define $ac_tr_func 1
6690 else
6691 echo "$ac_t""no" 1>&6
6693 done
6697 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6700 if test x$ac_cv_func_stat64 = xno ; then
6701 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6702 echo "configure:6703: checking for stat64 in <sys/stat.h>" >&5
6703 cat > conftest.$ac_ext <<EOF
6704 #line 6705 "configure"
6705 #include "confdefs.h"
6707 #if defined(HAVE_UNISTD_H)
6708 #include <unistd.h>
6709 #endif
6710 #include <sys/stat.h>
6712 int main() {
6713 struct stat64 st64; exit(stat64(".",&st64));
6714 ; return 0; }
6716 if { (eval echo configure:6717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6717 rm -rf conftest*
6718 ac_cv_func_stat64=yes
6719 else
6720 echo "configure: failed program was:" >&5
6721 cat conftest.$ac_ext >&5
6723 rm -f conftest*
6724 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6725 if test x$ac_cv_func_stat64 = xyes ; then
6726 cat >> confdefs.h <<\EOF
6727 #define HAVE_STAT64 1
6733 if test x$ac_cv_func_lstat64 = xno ; then
6734 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6735 echo "configure:6736: checking for lstat64 in <sys/stat.h>" >&5
6736 cat > conftest.$ac_ext <<EOF
6737 #line 6738 "configure"
6738 #include "confdefs.h"
6740 #if defined(HAVE_UNISTD_H)
6741 #include <unistd.h>
6742 #endif
6743 #include <sys/stat.h>
6745 int main() {
6746 struct stat64 st64; exit(lstat64(".",&st64));
6747 ; return 0; }
6749 if { (eval echo configure:6750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6750 rm -rf conftest*
6751 ac_cv_func_lstat64=yes
6752 else
6753 echo "configure: failed program was:" >&5
6754 cat conftest.$ac_ext >&5
6756 rm -f conftest*
6757 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6758 if test x$ac_cv_func_lstat64 = xyes ; then
6759 cat >> confdefs.h <<\EOF
6760 #define HAVE_LSTAT64 1
6766 if test x$ac_cv_func_fstat64 = xno ; then
6767 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6768 echo "configure:6769: checking for fstat64 in <sys/stat.h>" >&5
6769 cat > conftest.$ac_ext <<EOF
6770 #line 6771 "configure"
6771 #include "confdefs.h"
6773 #if defined(HAVE_UNISTD_H)
6774 #include <unistd.h>
6775 #endif
6776 #include <sys/stat.h>
6778 int main() {
6779 struct stat64 st64; exit(fstat64(0,&st64));
6780 ; return 0; }
6782 if { (eval echo configure:6783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6783 rm -rf conftest*
6784 ac_cv_func_fstat64=yes
6785 else
6786 echo "configure: failed program was:" >&5
6787 cat conftest.$ac_ext >&5
6789 rm -f conftest*
6790 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6791 if test x$ac_cv_func_fstat64 = xyes ; then
6792 cat >> confdefs.h <<\EOF
6793 #define HAVE_FSTAT64 1
6800 # If no strcasecmp, check for it in some known places
6801 # It is in -lresolv on ReliantUNIX and UnixWare
6802 # -lresolve *must* follow -lnsl for name resolution to work properly
6805 if test x$ac_cv_func_strcasecmp = xno ; then
6806 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6807 echo "configure:6808: checking for strcasecmp in -lresolv" >&5
6808 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6810 echo $ac_n "(cached) $ac_c" 1>&6
6811 else
6812 ac_save_LIBS="$LIBS"
6813 LIBS="-lresolv $LIBS"
6814 cat > conftest.$ac_ext <<EOF
6815 #line 6816 "configure"
6816 #include "confdefs.h"
6817 /* Override any gcc2 internal prototype to avoid an error. */
6818 /* We use char because int might match the return type of a gcc2
6819 builtin and then its argument prototype would still apply. */
6820 char strcasecmp();
6822 int main() {
6823 strcasecmp()
6824 ; return 0; }
6826 if { (eval echo configure:6827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6827 rm -rf conftest*
6828 eval "ac_cv_lib_$ac_lib_var=yes"
6829 else
6830 echo "configure: failed program was:" >&5
6831 cat conftest.$ac_ext >&5
6832 rm -rf conftest*
6833 eval "ac_cv_lib_$ac_lib_var=no"
6835 rm -f conftest*
6836 LIBS="$ac_save_LIBS"
6839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6840 echo "$ac_t""yes" 1>&6
6841 LIBS="$LIBS -lresolv"
6842 cat >> confdefs.h <<\EOF
6843 #define HAVE_STRCASECMP 1
6846 else
6847 echo "$ac_t""no" 1>&6
6853 # Check for the functions putprpwnam, set_auth_parameters,
6854 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6855 # Needed for OSF1 and HPUX.
6858 case "$LIBS" in
6859 *-lsecurity*) for ac_func in putprpwnam
6861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6862 echo "configure:6863: checking for $ac_func" >&5
6863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6864 echo $ac_n "(cached) $ac_c" 1>&6
6865 else
6866 cat > conftest.$ac_ext <<EOF
6867 #line 6868 "configure"
6868 #include "confdefs.h"
6869 /* System header to define __stub macros and hopefully few prototypes,
6870 which can conflict with char $ac_func(); below. */
6871 #include <assert.h>
6872 /* Override any gcc2 internal prototype to avoid an error. */
6873 /* We use char because int might match the return type of a gcc2
6874 builtin and then its argument prototype would still apply. */
6875 char $ac_func();
6877 int main() {
6879 /* The GNU C library defines this for functions which it implements
6880 to always fail with ENOSYS. Some functions are actually named
6881 something starting with __ and the normal name is an alias. */
6882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6883 choke me
6884 #else
6885 $ac_func();
6886 #endif
6888 ; return 0; }
6890 if { (eval echo configure:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6891 rm -rf conftest*
6892 eval "ac_cv_func_$ac_func=yes"
6893 else
6894 echo "configure: failed program was:" >&5
6895 cat conftest.$ac_ext >&5
6896 rm -rf conftest*
6897 eval "ac_cv_func_$ac_func=no"
6899 rm -f conftest*
6902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6903 echo "$ac_t""yes" 1>&6
6904 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6905 cat >> confdefs.h <<EOF
6906 #define $ac_tr_func 1
6909 else
6910 echo "$ac_t""no" 1>&6
6912 done
6914 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6915 echo "configure:6916: checking for putprpwnam in -lsecurity" >&5
6916 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6918 echo $ac_n "(cached) $ac_c" 1>&6
6919 else
6920 ac_save_LIBS="$LIBS"
6921 LIBS="-lsecurity $LIBS"
6922 cat > conftest.$ac_ext <<EOF
6923 #line 6924 "configure"
6924 #include "confdefs.h"
6925 /* Override any gcc2 internal prototype to avoid an error. */
6926 /* We use char because int might match the return type of a gcc2
6927 builtin and then its argument prototype would still apply. */
6928 char putprpwnam();
6930 int main() {
6931 putprpwnam()
6932 ; return 0; }
6934 if { (eval echo configure:6935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6935 rm -rf conftest*
6936 eval "ac_cv_lib_$ac_lib_var=yes"
6937 else
6938 echo "configure: failed program was:" >&5
6939 cat conftest.$ac_ext >&5
6940 rm -rf conftest*
6941 eval "ac_cv_lib_$ac_lib_var=no"
6943 rm -f conftest*
6944 LIBS="$ac_save_LIBS"
6947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6948 echo "$ac_t""yes" 1>&6
6949 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6950 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6951 cat >> confdefs.h <<EOF
6952 #define $ac_tr_lib 1
6955 LIBS="-lsecurity $LIBS"
6957 else
6958 echo "$ac_t""no" 1>&6
6961 for ac_func in putprpwnam
6963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6964 echo "configure:6965: checking for $ac_func" >&5
6965 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6966 echo $ac_n "(cached) $ac_c" 1>&6
6967 else
6968 cat > conftest.$ac_ext <<EOF
6969 #line 6970 "configure"
6970 #include "confdefs.h"
6971 /* System header to define __stub macros and hopefully few prototypes,
6972 which can conflict with char $ac_func(); below. */
6973 #include <assert.h>
6974 /* Override any gcc2 internal prototype to avoid an error. */
6975 /* We use char because int might match the return type of a gcc2
6976 builtin and then its argument prototype would still apply. */
6977 char $ac_func();
6979 int main() {
6981 /* The GNU C library defines this for functions which it implements
6982 to always fail with ENOSYS. Some functions are actually named
6983 something starting with __ and the normal name is an alias. */
6984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6985 choke me
6986 #else
6987 $ac_func();
6988 #endif
6990 ; return 0; }
6992 if { (eval echo configure:6993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6993 rm -rf conftest*
6994 eval "ac_cv_func_$ac_func=yes"
6995 else
6996 echo "configure: failed program was:" >&5
6997 cat conftest.$ac_ext >&5
6998 rm -rf conftest*
6999 eval "ac_cv_func_$ac_func=no"
7001 rm -f conftest*
7004 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7005 echo "$ac_t""yes" 1>&6
7006 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7007 cat >> confdefs.h <<EOF
7008 #define $ac_tr_func 1
7011 else
7012 echo "$ac_t""no" 1>&6
7014 done
7017 esac
7019 case "$LIBS" in
7020 *-lsec*) for ac_func in putprpwnam
7022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7023 echo "configure:7024: checking for $ac_func" >&5
7024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7025 echo $ac_n "(cached) $ac_c" 1>&6
7026 else
7027 cat > conftest.$ac_ext <<EOF
7028 #line 7029 "configure"
7029 #include "confdefs.h"
7030 /* System header to define __stub macros and hopefully few prototypes,
7031 which can conflict with char $ac_func(); below. */
7032 #include <assert.h>
7033 /* Override any gcc2 internal prototype to avoid an error. */
7034 /* We use char because int might match the return type of a gcc2
7035 builtin and then its argument prototype would still apply. */
7036 char $ac_func();
7038 int main() {
7040 /* The GNU C library defines this for functions which it implements
7041 to always fail with ENOSYS. Some functions are actually named
7042 something starting with __ and the normal name is an alias. */
7043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7044 choke me
7045 #else
7046 $ac_func();
7047 #endif
7049 ; return 0; }
7051 if { (eval echo configure:7052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7052 rm -rf conftest*
7053 eval "ac_cv_func_$ac_func=yes"
7054 else
7055 echo "configure: failed program was:" >&5
7056 cat conftest.$ac_ext >&5
7057 rm -rf conftest*
7058 eval "ac_cv_func_$ac_func=no"
7060 rm -f conftest*
7063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7064 echo "$ac_t""yes" 1>&6
7065 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7066 cat >> confdefs.h <<EOF
7067 #define $ac_tr_func 1
7070 else
7071 echo "$ac_t""no" 1>&6
7073 done
7075 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7076 echo "configure:7077: checking for putprpwnam in -lsec" >&5
7077 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7079 echo $ac_n "(cached) $ac_c" 1>&6
7080 else
7081 ac_save_LIBS="$LIBS"
7082 LIBS="-lsec $LIBS"
7083 cat > conftest.$ac_ext <<EOF
7084 #line 7085 "configure"
7085 #include "confdefs.h"
7086 /* Override any gcc2 internal prototype to avoid an error. */
7087 /* We use char because int might match the return type of a gcc2
7088 builtin and then its argument prototype would still apply. */
7089 char putprpwnam();
7091 int main() {
7092 putprpwnam()
7093 ; return 0; }
7095 if { (eval echo configure:7096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7096 rm -rf conftest*
7097 eval "ac_cv_lib_$ac_lib_var=yes"
7098 else
7099 echo "configure: failed program was:" >&5
7100 cat conftest.$ac_ext >&5
7101 rm -rf conftest*
7102 eval "ac_cv_lib_$ac_lib_var=no"
7104 rm -f conftest*
7105 LIBS="$ac_save_LIBS"
7108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7109 echo "$ac_t""yes" 1>&6
7110 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7111 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7112 cat >> confdefs.h <<EOF
7113 #define $ac_tr_lib 1
7116 LIBS="-lsec $LIBS"
7118 else
7119 echo "$ac_t""no" 1>&6
7122 for ac_func in putprpwnam
7124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7125 echo "configure:7126: checking for $ac_func" >&5
7126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7127 echo $ac_n "(cached) $ac_c" 1>&6
7128 else
7129 cat > conftest.$ac_ext <<EOF
7130 #line 7131 "configure"
7131 #include "confdefs.h"
7132 /* System header to define __stub macros and hopefully few prototypes,
7133 which can conflict with char $ac_func(); below. */
7134 #include <assert.h>
7135 /* Override any gcc2 internal prototype to avoid an error. */
7136 /* We use char because int might match the return type of a gcc2
7137 builtin and then its argument prototype would still apply. */
7138 char $ac_func();
7140 int main() {
7142 /* The GNU C library defines this for functions which it implements
7143 to always fail with ENOSYS. Some functions are actually named
7144 something starting with __ and the normal name is an alias. */
7145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7146 choke me
7147 #else
7148 $ac_func();
7149 #endif
7151 ; return 0; }
7153 if { (eval echo configure:7154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7154 rm -rf conftest*
7155 eval "ac_cv_func_$ac_func=yes"
7156 else
7157 echo "configure: failed program was:" >&5
7158 cat conftest.$ac_ext >&5
7159 rm -rf conftest*
7160 eval "ac_cv_func_$ac_func=no"
7162 rm -f conftest*
7165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7166 echo "$ac_t""yes" 1>&6
7167 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7168 cat >> confdefs.h <<EOF
7169 #define $ac_tr_func 1
7172 else
7173 echo "$ac_t""no" 1>&6
7175 done
7178 esac
7181 case "$LIBS" in
7182 *-lsecurity*) for ac_func in set_auth_parameters
7184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7185 echo "configure:7186: checking for $ac_func" >&5
7186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7187 echo $ac_n "(cached) $ac_c" 1>&6
7188 else
7189 cat > conftest.$ac_ext <<EOF
7190 #line 7191 "configure"
7191 #include "confdefs.h"
7192 /* System header to define __stub macros and hopefully few prototypes,
7193 which can conflict with char $ac_func(); below. */
7194 #include <assert.h>
7195 /* Override any gcc2 internal prototype to avoid an error. */
7196 /* We use char because int might match the return type of a gcc2
7197 builtin and then its argument prototype would still apply. */
7198 char $ac_func();
7200 int main() {
7202 /* The GNU C library defines this for functions which it implements
7203 to always fail with ENOSYS. Some functions are actually named
7204 something starting with __ and the normal name is an alias. */
7205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7206 choke me
7207 #else
7208 $ac_func();
7209 #endif
7211 ; return 0; }
7213 if { (eval echo configure:7214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7214 rm -rf conftest*
7215 eval "ac_cv_func_$ac_func=yes"
7216 else
7217 echo "configure: failed program was:" >&5
7218 cat conftest.$ac_ext >&5
7219 rm -rf conftest*
7220 eval "ac_cv_func_$ac_func=no"
7222 rm -f conftest*
7225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7226 echo "$ac_t""yes" 1>&6
7227 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7228 cat >> confdefs.h <<EOF
7229 #define $ac_tr_func 1
7232 else
7233 echo "$ac_t""no" 1>&6
7235 done
7237 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7238 echo "configure:7239: checking for set_auth_parameters in -lsecurity" >&5
7239 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7241 echo $ac_n "(cached) $ac_c" 1>&6
7242 else
7243 ac_save_LIBS="$LIBS"
7244 LIBS="-lsecurity $LIBS"
7245 cat > conftest.$ac_ext <<EOF
7246 #line 7247 "configure"
7247 #include "confdefs.h"
7248 /* Override any gcc2 internal prototype to avoid an error. */
7249 /* We use char because int might match the return type of a gcc2
7250 builtin and then its argument prototype would still apply. */
7251 char set_auth_parameters();
7253 int main() {
7254 set_auth_parameters()
7255 ; return 0; }
7257 if { (eval echo configure:7258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7258 rm -rf conftest*
7259 eval "ac_cv_lib_$ac_lib_var=yes"
7260 else
7261 echo "configure: failed program was:" >&5
7262 cat conftest.$ac_ext >&5
7263 rm -rf conftest*
7264 eval "ac_cv_lib_$ac_lib_var=no"
7266 rm -f conftest*
7267 LIBS="$ac_save_LIBS"
7270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7271 echo "$ac_t""yes" 1>&6
7272 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7273 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7274 cat >> confdefs.h <<EOF
7275 #define $ac_tr_lib 1
7278 LIBS="-lsecurity $LIBS"
7280 else
7281 echo "$ac_t""no" 1>&6
7284 for ac_func in set_auth_parameters
7286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7287 echo "configure:7288: checking for $ac_func" >&5
7288 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7289 echo $ac_n "(cached) $ac_c" 1>&6
7290 else
7291 cat > conftest.$ac_ext <<EOF
7292 #line 7293 "configure"
7293 #include "confdefs.h"
7294 /* System header to define __stub macros and hopefully few prototypes,
7295 which can conflict with char $ac_func(); below. */
7296 #include <assert.h>
7297 /* Override any gcc2 internal prototype to avoid an error. */
7298 /* We use char because int might match the return type of a gcc2
7299 builtin and then its argument prototype would still apply. */
7300 char $ac_func();
7302 int main() {
7304 /* The GNU C library defines this for functions which it implements
7305 to always fail with ENOSYS. Some functions are actually named
7306 something starting with __ and the normal name is an alias. */
7307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7308 choke me
7309 #else
7310 $ac_func();
7311 #endif
7313 ; return 0; }
7315 if { (eval echo configure:7316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7316 rm -rf conftest*
7317 eval "ac_cv_func_$ac_func=yes"
7318 else
7319 echo "configure: failed program was:" >&5
7320 cat conftest.$ac_ext >&5
7321 rm -rf conftest*
7322 eval "ac_cv_func_$ac_func=no"
7324 rm -f conftest*
7327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7328 echo "$ac_t""yes" 1>&6
7329 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7330 cat >> confdefs.h <<EOF
7331 #define $ac_tr_func 1
7334 else
7335 echo "$ac_t""no" 1>&6
7337 done
7340 esac
7342 case "$LIBS" in
7343 *-lsec*) for ac_func in set_auth_parameters
7345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7346 echo "configure:7347: checking for $ac_func" >&5
7347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7348 echo $ac_n "(cached) $ac_c" 1>&6
7349 else
7350 cat > conftest.$ac_ext <<EOF
7351 #line 7352 "configure"
7352 #include "confdefs.h"
7353 /* System header to define __stub macros and hopefully few prototypes,
7354 which can conflict with char $ac_func(); below. */
7355 #include <assert.h>
7356 /* Override any gcc2 internal prototype to avoid an error. */
7357 /* We use char because int might match the return type of a gcc2
7358 builtin and then its argument prototype would still apply. */
7359 char $ac_func();
7361 int main() {
7363 /* The GNU C library defines this for functions which it implements
7364 to always fail with ENOSYS. Some functions are actually named
7365 something starting with __ and the normal name is an alias. */
7366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7367 choke me
7368 #else
7369 $ac_func();
7370 #endif
7372 ; return 0; }
7374 if { (eval echo configure:7375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7375 rm -rf conftest*
7376 eval "ac_cv_func_$ac_func=yes"
7377 else
7378 echo "configure: failed program was:" >&5
7379 cat conftest.$ac_ext >&5
7380 rm -rf conftest*
7381 eval "ac_cv_func_$ac_func=no"
7383 rm -f conftest*
7386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7387 echo "$ac_t""yes" 1>&6
7388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7389 cat >> confdefs.h <<EOF
7390 #define $ac_tr_func 1
7393 else
7394 echo "$ac_t""no" 1>&6
7396 done
7398 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7399 echo "configure:7400: checking for set_auth_parameters in -lsec" >&5
7400 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7402 echo $ac_n "(cached) $ac_c" 1>&6
7403 else
7404 ac_save_LIBS="$LIBS"
7405 LIBS="-lsec $LIBS"
7406 cat > conftest.$ac_ext <<EOF
7407 #line 7408 "configure"
7408 #include "confdefs.h"
7409 /* Override any gcc2 internal prototype to avoid an error. */
7410 /* We use char because int might match the return type of a gcc2
7411 builtin and then its argument prototype would still apply. */
7412 char set_auth_parameters();
7414 int main() {
7415 set_auth_parameters()
7416 ; return 0; }
7418 if { (eval echo configure:7419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7419 rm -rf conftest*
7420 eval "ac_cv_lib_$ac_lib_var=yes"
7421 else
7422 echo "configure: failed program was:" >&5
7423 cat conftest.$ac_ext >&5
7424 rm -rf conftest*
7425 eval "ac_cv_lib_$ac_lib_var=no"
7427 rm -f conftest*
7428 LIBS="$ac_save_LIBS"
7431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7432 echo "$ac_t""yes" 1>&6
7433 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7434 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7435 cat >> confdefs.h <<EOF
7436 #define $ac_tr_lib 1
7439 LIBS="-lsec $LIBS"
7441 else
7442 echo "$ac_t""no" 1>&6
7445 for ac_func in set_auth_parameters
7447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7448 echo "configure:7449: checking for $ac_func" >&5
7449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7450 echo $ac_n "(cached) $ac_c" 1>&6
7451 else
7452 cat > conftest.$ac_ext <<EOF
7453 #line 7454 "configure"
7454 #include "confdefs.h"
7455 /* System header to define __stub macros and hopefully few prototypes,
7456 which can conflict with char $ac_func(); below. */
7457 #include <assert.h>
7458 /* Override any gcc2 internal prototype to avoid an error. */
7459 /* We use char because int might match the return type of a gcc2
7460 builtin and then its argument prototype would still apply. */
7461 char $ac_func();
7463 int main() {
7465 /* The GNU C library defines this for functions which it implements
7466 to always fail with ENOSYS. Some functions are actually named
7467 something starting with __ and the normal name is an alias. */
7468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7469 choke me
7470 #else
7471 $ac_func();
7472 #endif
7474 ; return 0; }
7476 if { (eval echo configure:7477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7477 rm -rf conftest*
7478 eval "ac_cv_func_$ac_func=yes"
7479 else
7480 echo "configure: failed program was:" >&5
7481 cat conftest.$ac_ext >&5
7482 rm -rf conftest*
7483 eval "ac_cv_func_$ac_func=no"
7485 rm -f conftest*
7488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7489 echo "$ac_t""yes" 1>&6
7490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7491 cat >> confdefs.h <<EOF
7492 #define $ac_tr_func 1
7495 else
7496 echo "$ac_t""no" 1>&6
7498 done
7501 esac
7504 # UnixWare 7.x has its getspnam in -lgen
7505 case "$LIBS" in
7506 *-lgen*) for ac_func in getspnam
7508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7509 echo "configure:7510: checking for $ac_func" >&5
7510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7511 echo $ac_n "(cached) $ac_c" 1>&6
7512 else
7513 cat > conftest.$ac_ext <<EOF
7514 #line 7515 "configure"
7515 #include "confdefs.h"
7516 /* System header to define __stub macros and hopefully few prototypes,
7517 which can conflict with char $ac_func(); below. */
7518 #include <assert.h>
7519 /* Override any gcc2 internal prototype to avoid an error. */
7520 /* We use char because int might match the return type of a gcc2
7521 builtin and then its argument prototype would still apply. */
7522 char $ac_func();
7524 int main() {
7526 /* The GNU C library defines this for functions which it implements
7527 to always fail with ENOSYS. Some functions are actually named
7528 something starting with __ and the normal name is an alias. */
7529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7530 choke me
7531 #else
7532 $ac_func();
7533 #endif
7535 ; return 0; }
7537 if { (eval echo configure:7538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7538 rm -rf conftest*
7539 eval "ac_cv_func_$ac_func=yes"
7540 else
7541 echo "configure: failed program was:" >&5
7542 cat conftest.$ac_ext >&5
7543 rm -rf conftest*
7544 eval "ac_cv_func_$ac_func=no"
7546 rm -f conftest*
7549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7550 echo "$ac_t""yes" 1>&6
7551 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7552 cat >> confdefs.h <<EOF
7553 #define $ac_tr_func 1
7556 else
7557 echo "$ac_t""no" 1>&6
7559 done
7561 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7562 echo "configure:7563: checking for getspnam in -lgen" >&5
7563 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7564 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7565 echo $ac_n "(cached) $ac_c" 1>&6
7566 else
7567 ac_save_LIBS="$LIBS"
7568 LIBS="-lgen $LIBS"
7569 cat > conftest.$ac_ext <<EOF
7570 #line 7571 "configure"
7571 #include "confdefs.h"
7572 /* Override any gcc2 internal prototype to avoid an error. */
7573 /* We use char because int might match the return type of a gcc2
7574 builtin and then its argument prototype would still apply. */
7575 char getspnam();
7577 int main() {
7578 getspnam()
7579 ; return 0; }
7581 if { (eval echo configure:7582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7582 rm -rf conftest*
7583 eval "ac_cv_lib_$ac_lib_var=yes"
7584 else
7585 echo "configure: failed program was:" >&5
7586 cat conftest.$ac_ext >&5
7587 rm -rf conftest*
7588 eval "ac_cv_lib_$ac_lib_var=no"
7590 rm -f conftest*
7591 LIBS="$ac_save_LIBS"
7594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7595 echo "$ac_t""yes" 1>&6
7596 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7597 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7598 cat >> confdefs.h <<EOF
7599 #define $ac_tr_lib 1
7602 LIBS="-lgen $LIBS"
7604 else
7605 echo "$ac_t""no" 1>&6
7608 for ac_func in getspnam
7610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7611 echo "configure:7612: checking for $ac_func" >&5
7612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7613 echo $ac_n "(cached) $ac_c" 1>&6
7614 else
7615 cat > conftest.$ac_ext <<EOF
7616 #line 7617 "configure"
7617 #include "confdefs.h"
7618 /* System header to define __stub macros and hopefully few prototypes,
7619 which can conflict with char $ac_func(); below. */
7620 #include <assert.h>
7621 /* Override any gcc2 internal prototype to avoid an error. */
7622 /* We use char because int might match the return type of a gcc2
7623 builtin and then its argument prototype would still apply. */
7624 char $ac_func();
7626 int main() {
7628 /* The GNU C library defines this for functions which it implements
7629 to always fail with ENOSYS. Some functions are actually named
7630 something starting with __ and the normal name is an alias. */
7631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7632 choke me
7633 #else
7634 $ac_func();
7635 #endif
7637 ; return 0; }
7639 if { (eval echo configure:7640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7640 rm -rf conftest*
7641 eval "ac_cv_func_$ac_func=yes"
7642 else
7643 echo "configure: failed program was:" >&5
7644 cat conftest.$ac_ext >&5
7645 rm -rf conftest*
7646 eval "ac_cv_func_$ac_func=no"
7648 rm -f conftest*
7651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7652 echo "$ac_t""yes" 1>&6
7653 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7654 cat >> confdefs.h <<EOF
7655 #define $ac_tr_func 1
7658 else
7659 echo "$ac_t""no" 1>&6
7661 done
7664 esac
7667 case "$LIBS" in
7668 *-lsecurity*) for ac_func in getspnam
7670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7671 echo "configure:7672: checking for $ac_func" >&5
7672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7673 echo $ac_n "(cached) $ac_c" 1>&6
7674 else
7675 cat > conftest.$ac_ext <<EOF
7676 #line 7677 "configure"
7677 #include "confdefs.h"
7678 /* System header to define __stub macros and hopefully few prototypes,
7679 which can conflict with char $ac_func(); below. */
7680 #include <assert.h>
7681 /* Override any gcc2 internal prototype to avoid an error. */
7682 /* We use char because int might match the return type of a gcc2
7683 builtin and then its argument prototype would still apply. */
7684 char $ac_func();
7686 int main() {
7688 /* The GNU C library defines this for functions which it implements
7689 to always fail with ENOSYS. Some functions are actually named
7690 something starting with __ and the normal name is an alias. */
7691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7692 choke me
7693 #else
7694 $ac_func();
7695 #endif
7697 ; return 0; }
7699 if { (eval echo configure:7700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7700 rm -rf conftest*
7701 eval "ac_cv_func_$ac_func=yes"
7702 else
7703 echo "configure: failed program was:" >&5
7704 cat conftest.$ac_ext >&5
7705 rm -rf conftest*
7706 eval "ac_cv_func_$ac_func=no"
7708 rm -f conftest*
7711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7712 echo "$ac_t""yes" 1>&6
7713 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7714 cat >> confdefs.h <<EOF
7715 #define $ac_tr_func 1
7718 else
7719 echo "$ac_t""no" 1>&6
7721 done
7723 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7724 echo "configure:7725: checking for getspnam in -lsecurity" >&5
7725 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7727 echo $ac_n "(cached) $ac_c" 1>&6
7728 else
7729 ac_save_LIBS="$LIBS"
7730 LIBS="-lsecurity $LIBS"
7731 cat > conftest.$ac_ext <<EOF
7732 #line 7733 "configure"
7733 #include "confdefs.h"
7734 /* Override any gcc2 internal prototype to avoid an error. */
7735 /* We use char because int might match the return type of a gcc2
7736 builtin and then its argument prototype would still apply. */
7737 char getspnam();
7739 int main() {
7740 getspnam()
7741 ; return 0; }
7743 if { (eval echo configure:7744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7744 rm -rf conftest*
7745 eval "ac_cv_lib_$ac_lib_var=yes"
7746 else
7747 echo "configure: failed program was:" >&5
7748 cat conftest.$ac_ext >&5
7749 rm -rf conftest*
7750 eval "ac_cv_lib_$ac_lib_var=no"
7752 rm -f conftest*
7753 LIBS="$ac_save_LIBS"
7756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7757 echo "$ac_t""yes" 1>&6
7758 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7759 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7760 cat >> confdefs.h <<EOF
7761 #define $ac_tr_lib 1
7764 LIBS="-lsecurity $LIBS"
7766 else
7767 echo "$ac_t""no" 1>&6
7770 for ac_func in getspnam
7772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7773 echo "configure:7774: checking for $ac_func" >&5
7774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7775 echo $ac_n "(cached) $ac_c" 1>&6
7776 else
7777 cat > conftest.$ac_ext <<EOF
7778 #line 7779 "configure"
7779 #include "confdefs.h"
7780 /* System header to define __stub macros and hopefully few prototypes,
7781 which can conflict with char $ac_func(); below. */
7782 #include <assert.h>
7783 /* Override any gcc2 internal prototype to avoid an error. */
7784 /* We use char because int might match the return type of a gcc2
7785 builtin and then its argument prototype would still apply. */
7786 char $ac_func();
7788 int main() {
7790 /* The GNU C library defines this for functions which it implements
7791 to always fail with ENOSYS. Some functions are actually named
7792 something starting with __ and the normal name is an alias. */
7793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7794 choke me
7795 #else
7796 $ac_func();
7797 #endif
7799 ; return 0; }
7801 if { (eval echo configure:7802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7802 rm -rf conftest*
7803 eval "ac_cv_func_$ac_func=yes"
7804 else
7805 echo "configure: failed program was:" >&5
7806 cat conftest.$ac_ext >&5
7807 rm -rf conftest*
7808 eval "ac_cv_func_$ac_func=no"
7810 rm -f conftest*
7813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7814 echo "$ac_t""yes" 1>&6
7815 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7816 cat >> confdefs.h <<EOF
7817 #define $ac_tr_func 1
7820 else
7821 echo "$ac_t""no" 1>&6
7823 done
7826 esac
7828 case "$LIBS" in
7829 *-lsec*) for ac_func in getspnam
7831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7832 echo "configure:7833: checking for $ac_func" >&5
7833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7834 echo $ac_n "(cached) $ac_c" 1>&6
7835 else
7836 cat > conftest.$ac_ext <<EOF
7837 #line 7838 "configure"
7838 #include "confdefs.h"
7839 /* System header to define __stub macros and hopefully few prototypes,
7840 which can conflict with char $ac_func(); below. */
7841 #include <assert.h>
7842 /* Override any gcc2 internal prototype to avoid an error. */
7843 /* We use char because int might match the return type of a gcc2
7844 builtin and then its argument prototype would still apply. */
7845 char $ac_func();
7847 int main() {
7849 /* The GNU C library defines this for functions which it implements
7850 to always fail with ENOSYS. Some functions are actually named
7851 something starting with __ and the normal name is an alias. */
7852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7853 choke me
7854 #else
7855 $ac_func();
7856 #endif
7858 ; return 0; }
7860 if { (eval echo configure:7861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7861 rm -rf conftest*
7862 eval "ac_cv_func_$ac_func=yes"
7863 else
7864 echo "configure: failed program was:" >&5
7865 cat conftest.$ac_ext >&5
7866 rm -rf conftest*
7867 eval "ac_cv_func_$ac_func=no"
7869 rm -f conftest*
7872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7873 echo "$ac_t""yes" 1>&6
7874 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7875 cat >> confdefs.h <<EOF
7876 #define $ac_tr_func 1
7879 else
7880 echo "$ac_t""no" 1>&6
7882 done
7884 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7885 echo "configure:7886: checking for getspnam in -lsec" >&5
7886 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7888 echo $ac_n "(cached) $ac_c" 1>&6
7889 else
7890 ac_save_LIBS="$LIBS"
7891 LIBS="-lsec $LIBS"
7892 cat > conftest.$ac_ext <<EOF
7893 #line 7894 "configure"
7894 #include "confdefs.h"
7895 /* Override any gcc2 internal prototype to avoid an error. */
7896 /* We use char because int might match the return type of a gcc2
7897 builtin and then its argument prototype would still apply. */
7898 char getspnam();
7900 int main() {
7901 getspnam()
7902 ; return 0; }
7904 if { (eval echo configure:7905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7905 rm -rf conftest*
7906 eval "ac_cv_lib_$ac_lib_var=yes"
7907 else
7908 echo "configure: failed program was:" >&5
7909 cat conftest.$ac_ext >&5
7910 rm -rf conftest*
7911 eval "ac_cv_lib_$ac_lib_var=no"
7913 rm -f conftest*
7914 LIBS="$ac_save_LIBS"
7917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7918 echo "$ac_t""yes" 1>&6
7919 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7920 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7921 cat >> confdefs.h <<EOF
7922 #define $ac_tr_lib 1
7925 LIBS="-lsec $LIBS"
7927 else
7928 echo "$ac_t""no" 1>&6
7931 for ac_func in getspnam
7933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7934 echo "configure:7935: checking for $ac_func" >&5
7935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7936 echo $ac_n "(cached) $ac_c" 1>&6
7937 else
7938 cat > conftest.$ac_ext <<EOF
7939 #line 7940 "configure"
7940 #include "confdefs.h"
7941 /* System header to define __stub macros and hopefully few prototypes,
7942 which can conflict with char $ac_func(); below. */
7943 #include <assert.h>
7944 /* Override any gcc2 internal prototype to avoid an error. */
7945 /* We use char because int might match the return type of a gcc2
7946 builtin and then its argument prototype would still apply. */
7947 char $ac_func();
7949 int main() {
7951 /* The GNU C library defines this for functions which it implements
7952 to always fail with ENOSYS. Some functions are actually named
7953 something starting with __ and the normal name is an alias. */
7954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7955 choke me
7956 #else
7957 $ac_func();
7958 #endif
7960 ; return 0; }
7962 if { (eval echo configure:7963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7963 rm -rf conftest*
7964 eval "ac_cv_func_$ac_func=yes"
7965 else
7966 echo "configure: failed program was:" >&5
7967 cat conftest.$ac_ext >&5
7968 rm -rf conftest*
7969 eval "ac_cv_func_$ac_func=no"
7971 rm -f conftest*
7974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7975 echo "$ac_t""yes" 1>&6
7976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7977 cat >> confdefs.h <<EOF
7978 #define $ac_tr_func 1
7981 else
7982 echo "$ac_t""no" 1>&6
7984 done
7987 esac
7990 case "$LIBS" in
7991 *-lsecurity*) for ac_func in bigcrypt
7993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7994 echo "configure:7995: checking for $ac_func" >&5
7995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7996 echo $ac_n "(cached) $ac_c" 1>&6
7997 else
7998 cat > conftest.$ac_ext <<EOF
7999 #line 8000 "configure"
8000 #include "confdefs.h"
8001 /* System header to define __stub macros and hopefully few prototypes,
8002 which can conflict with char $ac_func(); below. */
8003 #include <assert.h>
8004 /* Override any gcc2 internal prototype to avoid an error. */
8005 /* We use char because int might match the return type of a gcc2
8006 builtin and then its argument prototype would still apply. */
8007 char $ac_func();
8009 int main() {
8011 /* The GNU C library defines this for functions which it implements
8012 to always fail with ENOSYS. Some functions are actually named
8013 something starting with __ and the normal name is an alias. */
8014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8015 choke me
8016 #else
8017 $ac_func();
8018 #endif
8020 ; return 0; }
8022 if { (eval echo configure:8023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8023 rm -rf conftest*
8024 eval "ac_cv_func_$ac_func=yes"
8025 else
8026 echo "configure: failed program was:" >&5
8027 cat conftest.$ac_ext >&5
8028 rm -rf conftest*
8029 eval "ac_cv_func_$ac_func=no"
8031 rm -f conftest*
8034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8035 echo "$ac_t""yes" 1>&6
8036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8037 cat >> confdefs.h <<EOF
8038 #define $ac_tr_func 1
8041 else
8042 echo "$ac_t""no" 1>&6
8044 done
8046 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8047 echo "configure:8048: checking for bigcrypt in -lsecurity" >&5
8048 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8049 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8050 echo $ac_n "(cached) $ac_c" 1>&6
8051 else
8052 ac_save_LIBS="$LIBS"
8053 LIBS="-lsecurity $LIBS"
8054 cat > conftest.$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8057 /* Override any gcc2 internal prototype to avoid an error. */
8058 /* We use char because int might match the return type of a gcc2
8059 builtin and then its argument prototype would still apply. */
8060 char bigcrypt();
8062 int main() {
8063 bigcrypt()
8064 ; return 0; }
8066 if { (eval echo configure:8067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8067 rm -rf conftest*
8068 eval "ac_cv_lib_$ac_lib_var=yes"
8069 else
8070 echo "configure: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8072 rm -rf conftest*
8073 eval "ac_cv_lib_$ac_lib_var=no"
8075 rm -f conftest*
8076 LIBS="$ac_save_LIBS"
8079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8080 echo "$ac_t""yes" 1>&6
8081 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8082 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8083 cat >> confdefs.h <<EOF
8084 #define $ac_tr_lib 1
8087 LIBS="-lsecurity $LIBS"
8089 else
8090 echo "$ac_t""no" 1>&6
8093 for ac_func in bigcrypt
8095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8096 echo "configure:8097: checking for $ac_func" >&5
8097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8098 echo $ac_n "(cached) $ac_c" 1>&6
8099 else
8100 cat > conftest.$ac_ext <<EOF
8101 #line 8102 "configure"
8102 #include "confdefs.h"
8103 /* System header to define __stub macros and hopefully few prototypes,
8104 which can conflict with char $ac_func(); below. */
8105 #include <assert.h>
8106 /* Override any gcc2 internal prototype to avoid an error. */
8107 /* We use char because int might match the return type of a gcc2
8108 builtin and then its argument prototype would still apply. */
8109 char $ac_func();
8111 int main() {
8113 /* The GNU C library defines this for functions which it implements
8114 to always fail with ENOSYS. Some functions are actually named
8115 something starting with __ and the normal name is an alias. */
8116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8117 choke me
8118 #else
8119 $ac_func();
8120 #endif
8122 ; return 0; }
8124 if { (eval echo configure:8125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8125 rm -rf conftest*
8126 eval "ac_cv_func_$ac_func=yes"
8127 else
8128 echo "configure: failed program was:" >&5
8129 cat conftest.$ac_ext >&5
8130 rm -rf conftest*
8131 eval "ac_cv_func_$ac_func=no"
8133 rm -f conftest*
8136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8137 echo "$ac_t""yes" 1>&6
8138 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8139 cat >> confdefs.h <<EOF
8140 #define $ac_tr_func 1
8143 else
8144 echo "$ac_t""no" 1>&6
8146 done
8149 esac
8151 case "$LIBS" in
8152 *-lsec*) for ac_func in bigcrypt
8154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8155 echo "configure:8156: checking for $ac_func" >&5
8156 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8157 echo $ac_n "(cached) $ac_c" 1>&6
8158 else
8159 cat > conftest.$ac_ext <<EOF
8160 #line 8161 "configure"
8161 #include "confdefs.h"
8162 /* System header to define __stub macros and hopefully few prototypes,
8163 which can conflict with char $ac_func(); below. */
8164 #include <assert.h>
8165 /* Override any gcc2 internal prototype to avoid an error. */
8166 /* We use char because int might match the return type of a gcc2
8167 builtin and then its argument prototype would still apply. */
8168 char $ac_func();
8170 int main() {
8172 /* The GNU C library defines this for functions which it implements
8173 to always fail with ENOSYS. Some functions are actually named
8174 something starting with __ and the normal name is an alias. */
8175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8176 choke me
8177 #else
8178 $ac_func();
8179 #endif
8181 ; return 0; }
8183 if { (eval echo configure:8184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8184 rm -rf conftest*
8185 eval "ac_cv_func_$ac_func=yes"
8186 else
8187 echo "configure: failed program was:" >&5
8188 cat conftest.$ac_ext >&5
8189 rm -rf conftest*
8190 eval "ac_cv_func_$ac_func=no"
8192 rm -f conftest*
8195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8196 echo "$ac_t""yes" 1>&6
8197 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8198 cat >> confdefs.h <<EOF
8199 #define $ac_tr_func 1
8202 else
8203 echo "$ac_t""no" 1>&6
8205 done
8207 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8208 echo "configure:8209: checking for bigcrypt in -lsec" >&5
8209 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8211 echo $ac_n "(cached) $ac_c" 1>&6
8212 else
8213 ac_save_LIBS="$LIBS"
8214 LIBS="-lsec $LIBS"
8215 cat > conftest.$ac_ext <<EOF
8216 #line 8217 "configure"
8217 #include "confdefs.h"
8218 /* Override any gcc2 internal prototype to avoid an error. */
8219 /* We use char because int might match the return type of a gcc2
8220 builtin and then its argument prototype would still apply. */
8221 char bigcrypt();
8223 int main() {
8224 bigcrypt()
8225 ; return 0; }
8227 if { (eval echo configure:8228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8228 rm -rf conftest*
8229 eval "ac_cv_lib_$ac_lib_var=yes"
8230 else
8231 echo "configure: failed program was:" >&5
8232 cat conftest.$ac_ext >&5
8233 rm -rf conftest*
8234 eval "ac_cv_lib_$ac_lib_var=no"
8236 rm -f conftest*
8237 LIBS="$ac_save_LIBS"
8240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8241 echo "$ac_t""yes" 1>&6
8242 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8243 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8244 cat >> confdefs.h <<EOF
8245 #define $ac_tr_lib 1
8248 LIBS="-lsec $LIBS"
8250 else
8251 echo "$ac_t""no" 1>&6
8254 for ac_func in bigcrypt
8256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8257 echo "configure:8258: checking for $ac_func" >&5
8258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8259 echo $ac_n "(cached) $ac_c" 1>&6
8260 else
8261 cat > conftest.$ac_ext <<EOF
8262 #line 8263 "configure"
8263 #include "confdefs.h"
8264 /* System header to define __stub macros and hopefully few prototypes,
8265 which can conflict with char $ac_func(); below. */
8266 #include <assert.h>
8267 /* Override any gcc2 internal prototype to avoid an error. */
8268 /* We use char because int might match the return type of a gcc2
8269 builtin and then its argument prototype would still apply. */
8270 char $ac_func();
8272 int main() {
8274 /* The GNU C library defines this for functions which it implements
8275 to always fail with ENOSYS. Some functions are actually named
8276 something starting with __ and the normal name is an alias. */
8277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8278 choke me
8279 #else
8280 $ac_func();
8281 #endif
8283 ; return 0; }
8285 if { (eval echo configure:8286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8286 rm -rf conftest*
8287 eval "ac_cv_func_$ac_func=yes"
8288 else
8289 echo "configure: failed program was:" >&5
8290 cat conftest.$ac_ext >&5
8291 rm -rf conftest*
8292 eval "ac_cv_func_$ac_func=no"
8294 rm -f conftest*
8297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8298 echo "$ac_t""yes" 1>&6
8299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8300 cat >> confdefs.h <<EOF
8301 #define $ac_tr_func 1
8304 else
8305 echo "$ac_t""no" 1>&6
8307 done
8310 esac
8313 case "$LIBS" in
8314 *-lsecurity*) for ac_func in getprpwnam
8316 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8317 echo "configure:8318: checking for $ac_func" >&5
8318 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8319 echo $ac_n "(cached) $ac_c" 1>&6
8320 else
8321 cat > conftest.$ac_ext <<EOF
8322 #line 8323 "configure"
8323 #include "confdefs.h"
8324 /* System header to define __stub macros and hopefully few prototypes,
8325 which can conflict with char $ac_func(); below. */
8326 #include <assert.h>
8327 /* Override any gcc2 internal prototype to avoid an error. */
8328 /* We use char because int might match the return type of a gcc2
8329 builtin and then its argument prototype would still apply. */
8330 char $ac_func();
8332 int main() {
8334 /* The GNU C library defines this for functions which it implements
8335 to always fail with ENOSYS. Some functions are actually named
8336 something starting with __ and the normal name is an alias. */
8337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8338 choke me
8339 #else
8340 $ac_func();
8341 #endif
8343 ; return 0; }
8345 if { (eval echo configure:8346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8346 rm -rf conftest*
8347 eval "ac_cv_func_$ac_func=yes"
8348 else
8349 echo "configure: failed program was:" >&5
8350 cat conftest.$ac_ext >&5
8351 rm -rf conftest*
8352 eval "ac_cv_func_$ac_func=no"
8354 rm -f conftest*
8357 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8358 echo "$ac_t""yes" 1>&6
8359 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8360 cat >> confdefs.h <<EOF
8361 #define $ac_tr_func 1
8364 else
8365 echo "$ac_t""no" 1>&6
8367 done
8369 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8370 echo "configure:8371: checking for getprpwnam in -lsecurity" >&5
8371 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8373 echo $ac_n "(cached) $ac_c" 1>&6
8374 else
8375 ac_save_LIBS="$LIBS"
8376 LIBS="-lsecurity $LIBS"
8377 cat > conftest.$ac_ext <<EOF
8378 #line 8379 "configure"
8379 #include "confdefs.h"
8380 /* Override any gcc2 internal prototype to avoid an error. */
8381 /* We use char because int might match the return type of a gcc2
8382 builtin and then its argument prototype would still apply. */
8383 char getprpwnam();
8385 int main() {
8386 getprpwnam()
8387 ; return 0; }
8389 if { (eval echo configure:8390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8390 rm -rf conftest*
8391 eval "ac_cv_lib_$ac_lib_var=yes"
8392 else
8393 echo "configure: failed program was:" >&5
8394 cat conftest.$ac_ext >&5
8395 rm -rf conftest*
8396 eval "ac_cv_lib_$ac_lib_var=no"
8398 rm -f conftest*
8399 LIBS="$ac_save_LIBS"
8402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8403 echo "$ac_t""yes" 1>&6
8404 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8405 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8406 cat >> confdefs.h <<EOF
8407 #define $ac_tr_lib 1
8410 LIBS="-lsecurity $LIBS"
8412 else
8413 echo "$ac_t""no" 1>&6
8416 for ac_func in getprpwnam
8418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8419 echo "configure:8420: checking for $ac_func" >&5
8420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8421 echo $ac_n "(cached) $ac_c" 1>&6
8422 else
8423 cat > conftest.$ac_ext <<EOF
8424 #line 8425 "configure"
8425 #include "confdefs.h"
8426 /* System header to define __stub macros and hopefully few prototypes,
8427 which can conflict with char $ac_func(); below. */
8428 #include <assert.h>
8429 /* Override any gcc2 internal prototype to avoid an error. */
8430 /* We use char because int might match the return type of a gcc2
8431 builtin and then its argument prototype would still apply. */
8432 char $ac_func();
8434 int main() {
8436 /* The GNU C library defines this for functions which it implements
8437 to always fail with ENOSYS. Some functions are actually named
8438 something starting with __ and the normal name is an alias. */
8439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8440 choke me
8441 #else
8442 $ac_func();
8443 #endif
8445 ; return 0; }
8447 if { (eval echo configure:8448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8448 rm -rf conftest*
8449 eval "ac_cv_func_$ac_func=yes"
8450 else
8451 echo "configure: failed program was:" >&5
8452 cat conftest.$ac_ext >&5
8453 rm -rf conftest*
8454 eval "ac_cv_func_$ac_func=no"
8456 rm -f conftest*
8459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8460 echo "$ac_t""yes" 1>&6
8461 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8462 cat >> confdefs.h <<EOF
8463 #define $ac_tr_func 1
8466 else
8467 echo "$ac_t""no" 1>&6
8469 done
8472 esac
8474 case "$LIBS" in
8475 *-lsec*) for ac_func in getprpwnam
8477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8478 echo "configure:8479: checking for $ac_func" >&5
8479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8480 echo $ac_n "(cached) $ac_c" 1>&6
8481 else
8482 cat > conftest.$ac_ext <<EOF
8483 #line 8484 "configure"
8484 #include "confdefs.h"
8485 /* System header to define __stub macros and hopefully few prototypes,
8486 which can conflict with char $ac_func(); below. */
8487 #include <assert.h>
8488 /* Override any gcc2 internal prototype to avoid an error. */
8489 /* We use char because int might match the return type of a gcc2
8490 builtin and then its argument prototype would still apply. */
8491 char $ac_func();
8493 int main() {
8495 /* The GNU C library defines this for functions which it implements
8496 to always fail with ENOSYS. Some functions are actually named
8497 something starting with __ and the normal name is an alias. */
8498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8499 choke me
8500 #else
8501 $ac_func();
8502 #endif
8504 ; return 0; }
8506 if { (eval echo configure:8507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8507 rm -rf conftest*
8508 eval "ac_cv_func_$ac_func=yes"
8509 else
8510 echo "configure: failed program was:" >&5
8511 cat conftest.$ac_ext >&5
8512 rm -rf conftest*
8513 eval "ac_cv_func_$ac_func=no"
8515 rm -f conftest*
8518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8519 echo "$ac_t""yes" 1>&6
8520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8521 cat >> confdefs.h <<EOF
8522 #define $ac_tr_func 1
8525 else
8526 echo "$ac_t""no" 1>&6
8528 done
8530 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8531 echo "configure:8532: checking for getprpwnam in -lsec" >&5
8532 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8534 echo $ac_n "(cached) $ac_c" 1>&6
8535 else
8536 ac_save_LIBS="$LIBS"
8537 LIBS="-lsec $LIBS"
8538 cat > conftest.$ac_ext <<EOF
8539 #line 8540 "configure"
8540 #include "confdefs.h"
8541 /* Override any gcc2 internal prototype to avoid an error. */
8542 /* We use char because int might match the return type of a gcc2
8543 builtin and then its argument prototype would still apply. */
8544 char getprpwnam();
8546 int main() {
8547 getprpwnam()
8548 ; return 0; }
8550 if { (eval echo configure:8551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8551 rm -rf conftest*
8552 eval "ac_cv_lib_$ac_lib_var=yes"
8553 else
8554 echo "configure: failed program was:" >&5
8555 cat conftest.$ac_ext >&5
8556 rm -rf conftest*
8557 eval "ac_cv_lib_$ac_lib_var=no"
8559 rm -f conftest*
8560 LIBS="$ac_save_LIBS"
8563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8564 echo "$ac_t""yes" 1>&6
8565 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8566 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8567 cat >> confdefs.h <<EOF
8568 #define $ac_tr_lib 1
8571 LIBS="-lsec $LIBS"
8573 else
8574 echo "$ac_t""no" 1>&6
8577 for ac_func in getprpwnam
8579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8580 echo "configure:8581: checking for $ac_func" >&5
8581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8582 echo $ac_n "(cached) $ac_c" 1>&6
8583 else
8584 cat > conftest.$ac_ext <<EOF
8585 #line 8586 "configure"
8586 #include "confdefs.h"
8587 /* System header to define __stub macros and hopefully few prototypes,
8588 which can conflict with char $ac_func(); below. */
8589 #include <assert.h>
8590 /* Override any gcc2 internal prototype to avoid an error. */
8591 /* We use char because int might match the return type of a gcc2
8592 builtin and then its argument prototype would still apply. */
8593 char $ac_func();
8595 int main() {
8597 /* The GNU C library defines this for functions which it implements
8598 to always fail with ENOSYS. Some functions are actually named
8599 something starting with __ and the normal name is an alias. */
8600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8601 choke me
8602 #else
8603 $ac_func();
8604 #endif
8606 ; return 0; }
8608 if { (eval echo configure:8609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8609 rm -rf conftest*
8610 eval "ac_cv_func_$ac_func=yes"
8611 else
8612 echo "configure: failed program was:" >&5
8613 cat conftest.$ac_ext >&5
8614 rm -rf conftest*
8615 eval "ac_cv_func_$ac_func=no"
8617 rm -f conftest*
8620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8621 echo "$ac_t""yes" 1>&6
8622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8623 cat >> confdefs.h <<EOF
8624 #define $ac_tr_func 1
8627 else
8628 echo "$ac_t""no" 1>&6
8630 done
8633 esac
8636 # this bit needs to be modified for each OS that is suported by
8637 # smbwrapper. You need to specify how to created a shared library and
8638 # how to compile C code to produce PIC object files
8640 # these are the defaults, good for lots of systems
8641 HOST_OS="$host_os"
8642 LDSHFLAGS="-shared"
8643 SONAMEFLAG="#"
8644 SHLD="\${CC}"
8645 PICFLAG=""
8646 PICSUFFIX="po.o"
8647 SHLIBEXT="so"
8648 # Assume non-shared by default and override below
8649 BLDSHARED="false"
8650 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8651 echo "configure:8652: checking ability to build shared libraries" >&5
8653 # and these are for particular systems
8654 case "$host_os" in
8655 *linux*) cat >> confdefs.h <<\EOF
8656 #define LINUX 1
8659 BLDSHARED="true"
8660 LDSHFLAGS="-shared"
8661 DYNEXP="-Wl,--export-dynamic"
8662 PICFLAG="-fPIC"
8663 SONAMEFLAG="-Wl,-soname="
8664 cat >> confdefs.h <<\EOF
8665 #define STAT_ST_BLOCKSIZE 512
8669 *solaris*) cat >> confdefs.h <<\EOF
8670 #define SUNOS5 1
8673 BLDSHARED="true"
8674 LDSHFLAGS="-G"
8675 SONAMEFLAG="-h "
8676 if test "${GCC}" = "yes"; then
8677 PICFLAG="-fPIC"
8678 DYNEXP="-Wl,-E"
8679 else
8680 PICFLAG="-KPIC"
8681 ## ${CFLAGS} added for building 64-bit shared
8682 ## libs using Sun's Compiler
8683 LDSHFLAGS="-G \${CFLAGS}"
8684 POBAD_CC=""
8685 PICSUFFIX="po.o"
8687 cat >> confdefs.h <<\EOF
8688 #define STAT_ST_BLOCKSIZE 512
8692 *sunos*) cat >> confdefs.h <<\EOF
8693 #define SUNOS4 1
8696 BLDSHARED="true"
8697 LDSHFLAGS="-G"
8698 SONAMEFLAG="-Wl,-h,"
8699 PICFLAG="-KPIC" # Is this correct for SunOS
8701 *bsd*) BLDSHARED="true"
8702 LDSHFLAGS="-shared"
8703 DYNEXP="-Wl,-Bdynamic"
8704 SONAMEFLAG="-Wl,-soname,"
8705 PICFLAG="-fPIC"
8706 cat >> confdefs.h <<\EOF
8707 #define STAT_ST_BLOCKSIZE 512
8711 *irix*) cat >> confdefs.h <<\EOF
8712 #define IRIX 1
8715 case "$host_os" in
8716 *irix6*) cat >> confdefs.h <<\EOF
8717 #define IRIX6 1
8721 esac
8722 ATTEMPT_WRAP32_BUILD=yes
8723 BLDSHARED="true"
8724 LDSHFLAGS="-set_version sgi1.0 -shared"
8725 SONAMEFLAG="-soname "
8726 SHLD="\${LD}"
8727 if test "${GCC}" = "yes"; then
8728 PICFLAG="-fPIC"
8729 else
8730 PICFLAG="-KPIC"
8732 cat >> confdefs.h <<\EOF
8733 #define STAT_ST_BLOCKSIZE 512
8737 *aix*) cat >> confdefs.h <<\EOF
8738 #define AIX 1
8741 BLDSHARED="true"
8742 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8743 DYNEXP="-Wl,-brtl,-bexpall"
8744 if test "${GCC}" = "yes"; then
8745 PICFLAG="-O2"
8746 else
8747 PICFLAG="-O2 -qmaxmem=6000"
8748 ## for funky AIX compiler using strncpy()
8749 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT"
8752 cat >> confdefs.h <<\EOF
8753 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8757 *hpux*) cat >> confdefs.h <<\EOF
8758 #define HPUX 1
8761 SHLIBEXT="sl"
8762 # Use special PIC flags for the native HP-UX compiler.
8763 if test $ac_cv_prog_cc_Ae = yes; then
8764 BLDSHARED="true"
8765 SHLD="/usr/bin/ld"
8766 LDSHFLAGS="-B symbolic -b -z"
8767 SONAMEFLAG="+h "
8768 PICFLAG="+z"
8770 DYNEXP="-Wl,-E"
8771 cat >> confdefs.h <<\EOF
8772 #define STAT_ST_BLOCKSIZE 8192
8776 *qnx*) cat >> confdefs.h <<\EOF
8777 #define QNX 1
8780 *osf*) cat >> confdefs.h <<\EOF
8781 #define OSF1 1
8784 BLDSHARED="true"
8785 LDSHFLAGS="-shared"
8786 SONAMEFLAG="-Wl,-soname,"
8787 PICFLAG="-fPIC"
8789 *sco*) cat >> confdefs.h <<\EOF
8790 #define SCO 1
8793 *unixware*) cat >> confdefs.h <<\EOF
8794 #define UNIXWARE 1
8797 BLDSHARED="true"
8798 LDSHFLAGS="-shared"
8799 SONAMEFLAG="-Wl,-soname,"
8800 PICFLAG="-KPIC"
8802 *next2*) cat >> confdefs.h <<\EOF
8803 #define NEXT2 1
8806 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8807 set dummy groff; ac_word=$2
8808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8809 echo "configure:8810: checking for $ac_word" >&5
8810 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8811 echo $ac_n "(cached) $ac_c" 1>&6
8812 else
8813 if test -n "$ROFF"; then
8814 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8815 else
8816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8817 ac_dummy="$PATH"
8818 for ac_dir in $ac_dummy; do
8819 test -z "$ac_dir" && ac_dir=.
8820 if test -f $ac_dir/$ac_word; then
8821 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8822 break
8824 done
8825 IFS="$ac_save_ifs"
8828 ROFF="$ac_cv_prog_ROFF"
8829 if test -n "$ROFF"; then
8830 echo "$ac_t""$ROFF" 1>&6
8831 else
8832 echo "$ac_t""no" 1>&6
8835 *sysv4*)
8836 case "$host" in
8837 *-univel-*) if test "$GCC" != yes ; then
8838 cat >> confdefs.h <<\EOF
8839 #define HAVE_MEMSET 1
8843 LDSHFLAGS="-G"
8844 DYNEXP="-Bexport"
8846 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8847 #define RELIANTUNIX 1
8850 esac
8852 *sysv5*)
8853 if test "$GCC" != yes ; then
8854 cat >> confdefs.h <<\EOF
8855 #define HAVE_MEMSET 1
8859 LDSHFLAGS="-G"
8861 esac
8863 echo "$ac_t""$BLDSHARED" 1>&6
8864 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8865 echo "configure:8866: checking linker flags for shared libraries" >&5
8866 echo "$ac_t""$LDSHFLAGS" 1>&6
8867 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8868 echo "configure:8869: checking compiler flags for position-independent code" >&5
8869 echo "$ac_t""$PICFLAGS" 1>&6
8871 # try to work out how to produce pic code with this compiler
8872 if test x$PICFLAG = x; then
8873 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8874 echo "configure:8875: checking whether ${CC-cc} accepts -fpic" >&5
8875 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8876 echo $ac_n "(cached) $ac_c" 1>&6
8877 else
8878 echo 'void f(){}' > conftest.c
8879 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8880 ac_cv_prog_cc_fpic=yes
8881 else
8882 ac_cv_prog_cc_fpic=no
8884 rm -f conftest*
8888 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8889 if test $ac_cv_prog_cc_fpic = yes; then
8890 PICFLAG="-fpic";
8893 if test x$PICFLAG = x; then
8894 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8895 echo "configure:8896: checking whether ${CC-cc} accepts -KPIC" >&5
8896 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8897 echo $ac_n "(cached) $ac_c" 1>&6
8898 else
8899 echo 'void f(){}' > conftest.c
8900 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8901 ac_cv_prog_cc_KPIC=yes
8902 else
8903 ac_cv_prog_cc_KPIC=no
8905 rm -f conftest*
8909 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8910 if test $ac_cv_prog_cc_KPIC = yes; then
8911 PICFLAG="-KPIC";
8914 if test x$PICFLAG = x; then
8915 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8916 echo "configure:8917: checking whether ${CC-cc} accepts -Kpic" >&5
8917 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8918 echo $ac_n "(cached) $ac_c" 1>&6
8919 else
8920 echo 'void f(){}' > conftest.c
8921 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8922 ac_cv_prog_cc_Kpic=yes
8923 else
8924 ac_cv_prog_cc_Kpic=no
8926 rm -f conftest*
8930 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8931 if test $ac_cv_prog_cc_Kpic = yes; then
8932 PICFLAG="-Kpic";
8936 ################
8938 echo $ac_n "checking for long long""... $ac_c" 1>&6
8939 echo "configure:8940: checking for long long" >&5
8940 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8941 echo $ac_n "(cached) $ac_c" 1>&6
8942 else
8944 if test "$cross_compiling" = yes; then
8945 samba_cv_have_longlong=cross
8946 else
8947 cat > conftest.$ac_ext <<EOF
8948 #line 8949 "configure"
8949 #include "confdefs.h"
8950 #include <stdio.h>
8951 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8953 if { (eval echo configure:8954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8954 then
8955 samba_cv_have_longlong=yes
8956 else
8957 echo "configure: failed program was:" >&5
8958 cat conftest.$ac_ext >&5
8959 rm -fr conftest*
8960 samba_cv_have_longlong=no
8962 rm -fr conftest*
8967 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8968 if test x"$samba_cv_have_longlong" = x"yes"; then
8969 cat >> confdefs.h <<\EOF
8970 #define HAVE_LONGLONG 1
8976 # Check if the compiler supports the LL prefix on long long integers.
8977 # AIX needs this.
8979 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8980 echo "configure:8981: checking for LL suffix on long long integers" >&5
8981 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8982 echo $ac_n "(cached) $ac_c" 1>&6
8983 else
8985 cat > conftest.$ac_ext <<EOF
8986 #line 8987 "configure"
8987 #include "confdefs.h"
8988 #include <stdio.h>
8989 int main() {
8990 long long i = 0x8000000000LL
8991 ; return 0; }
8993 if { (eval echo configure:8994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8994 rm -rf conftest*
8995 samba_cv_compiler_supports_ll=yes
8996 else
8997 echo "configure: failed program was:" >&5
8998 cat conftest.$ac_ext >&5
8999 rm -rf conftest*
9000 samba_cv_compiler_supports_ll=no
9002 rm -f conftest*
9005 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9006 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9007 cat >> confdefs.h <<\EOF
9008 #define COMPILER_SUPPORTS_LL 1
9014 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9015 echo "configure:9016: checking for 64 bit off_t" >&5
9016 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9017 echo $ac_n "(cached) $ac_c" 1>&6
9018 else
9020 if test "$cross_compiling" = yes; then
9021 samba_cv_SIZEOF_OFF_T=cross
9022 else
9023 cat > conftest.$ac_ext <<EOF
9024 #line 9025 "configure"
9025 #include "confdefs.h"
9026 #include <stdio.h>
9027 #include <sys/stat.h>
9028 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9030 if { (eval echo configure:9031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9031 then
9032 samba_cv_SIZEOF_OFF_T=yes
9033 else
9034 echo "configure: failed program was:" >&5
9035 cat conftest.$ac_ext >&5
9036 rm -fr conftest*
9037 samba_cv_SIZEOF_OFF_T=no
9039 rm -fr conftest*
9044 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9045 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9046 cat >> confdefs.h <<\EOF
9047 #define SIZEOF_OFF_T 8
9052 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9053 echo "configure:9054: checking for off64_t" >&5
9054 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9055 echo $ac_n "(cached) $ac_c" 1>&6
9056 else
9058 if test "$cross_compiling" = yes; then
9059 samba_cv_HAVE_OFF64_T=cross
9060 else
9061 cat > conftest.$ac_ext <<EOF
9062 #line 9063 "configure"
9063 #include "confdefs.h"
9065 #if defined(HAVE_UNISTD_H)
9066 #include <unistd.h>
9067 #endif
9068 #include <stdio.h>
9069 #include <sys/stat.h>
9070 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9072 if { (eval echo configure:9073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9073 then
9074 samba_cv_HAVE_OFF64_T=yes
9075 else
9076 echo "configure: failed program was:" >&5
9077 cat conftest.$ac_ext >&5
9078 rm -fr conftest*
9079 samba_cv_HAVE_OFF64_T=no
9081 rm -fr conftest*
9086 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9087 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9088 cat >> confdefs.h <<\EOF
9089 #define HAVE_OFF64_T 1
9094 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9095 echo "configure:9096: checking for 64 bit ino_t" >&5
9096 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9097 echo $ac_n "(cached) $ac_c" 1>&6
9098 else
9100 if test "$cross_compiling" = yes; then
9101 samba_cv_SIZEOF_INO_T=cross
9102 else
9103 cat > conftest.$ac_ext <<EOF
9104 #line 9105 "configure"
9105 #include "confdefs.h"
9106 #include <stdio.h>
9107 #include <sys/stat.h>
9108 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9110 if { (eval echo configure:9111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9111 then
9112 samba_cv_SIZEOF_INO_T=yes
9113 else
9114 echo "configure: failed program was:" >&5
9115 cat conftest.$ac_ext >&5
9116 rm -fr conftest*
9117 samba_cv_SIZEOF_INO_T=no
9119 rm -fr conftest*
9124 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9125 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9126 cat >> confdefs.h <<\EOF
9127 #define SIZEOF_INO_T 8
9132 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9133 echo "configure:9134: checking for ino64_t" >&5
9134 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9135 echo $ac_n "(cached) $ac_c" 1>&6
9136 else
9138 if test "$cross_compiling" = yes; then
9139 samba_cv_HAVE_INO64_T=cross
9140 else
9141 cat > conftest.$ac_ext <<EOF
9142 #line 9143 "configure"
9143 #include "confdefs.h"
9145 #if defined(HAVE_UNISTD_H)
9146 #include <unistd.h>
9147 #endif
9148 #include <stdio.h>
9149 #include <sys/stat.h>
9150 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9152 if { (eval echo configure:9153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9153 then
9154 samba_cv_HAVE_INO64_T=yes
9155 else
9156 echo "configure: failed program was:" >&5
9157 cat conftest.$ac_ext >&5
9158 rm -fr conftest*
9159 samba_cv_HAVE_INO64_T=no
9161 rm -fr conftest*
9166 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9167 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9168 cat >> confdefs.h <<\EOF
9169 #define HAVE_INO64_T 1
9174 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9175 echo "configure:9176: checking for dev64_t" >&5
9176 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9177 echo $ac_n "(cached) $ac_c" 1>&6
9178 else
9180 if test "$cross_compiling" = yes; then
9181 samba_cv_HAVE_DEV64_T=cross
9182 else
9183 cat > conftest.$ac_ext <<EOF
9184 #line 9185 "configure"
9185 #include "confdefs.h"
9187 #if defined(HAVE_UNISTD_H)
9188 #include <unistd.h>
9189 #endif
9190 #include <stdio.h>
9191 #include <sys/stat.h>
9192 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9194 if { (eval echo configure:9195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9195 then
9196 samba_cv_HAVE_DEV64_T=yes
9197 else
9198 echo "configure: failed program was:" >&5
9199 cat conftest.$ac_ext >&5
9200 rm -fr conftest*
9201 samba_cv_HAVE_DEV64_T=no
9203 rm -fr conftest*
9208 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9209 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9210 cat >> confdefs.h <<\EOF
9211 #define HAVE_DEV64_T 1
9216 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9217 echo "configure:9218: checking for struct dirent64" >&5
9218 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9219 echo $ac_n "(cached) $ac_c" 1>&6
9220 else
9222 cat > conftest.$ac_ext <<EOF
9223 #line 9224 "configure"
9224 #include "confdefs.h"
9226 #if defined(HAVE_UNISTD_H)
9227 #include <unistd.h>
9228 #endif
9229 #include <sys/types.h>
9230 #include <dirent.h>
9231 int main() {
9232 struct dirent64 de;
9233 ; return 0; }
9235 if { (eval echo configure:9236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9236 rm -rf conftest*
9237 samba_cv_HAVE_STRUCT_DIRENT64=yes
9238 else
9239 echo "configure: failed program was:" >&5
9240 cat conftest.$ac_ext >&5
9241 rm -rf conftest*
9242 samba_cv_HAVE_STRUCT_DIRENT64=no
9244 rm -f conftest*
9247 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9248 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9249 cat >> confdefs.h <<\EOF
9250 #define HAVE_STRUCT_DIRENT64 1
9255 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9256 echo "configure:9257: checking for major macro" >&5
9257 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9258 echo $ac_n "(cached) $ac_c" 1>&6
9259 else
9261 if test "$cross_compiling" = yes; then
9262 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9263 else
9264 cat > conftest.$ac_ext <<EOF
9265 #line 9266 "configure"
9266 #include "confdefs.h"
9268 #if defined(HAVE_UNISTD_H)
9269 #include <unistd.h>
9270 #endif
9271 #include <sys/types.h>
9272 main() { dev_t dev; int i = major(dev); return 0; }
9274 if { (eval echo configure:9275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9275 then
9276 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9277 else
9278 echo "configure: failed program was:" >&5
9279 cat conftest.$ac_ext >&5
9280 rm -fr conftest*
9281 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9283 rm -fr conftest*
9288 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9289 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9290 cat >> confdefs.h <<\EOF
9291 #define HAVE_DEVICE_MAJOR_FN 1
9296 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9297 echo "configure:9298: checking for minor macro" >&5
9298 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9299 echo $ac_n "(cached) $ac_c" 1>&6
9300 else
9302 if test "$cross_compiling" = yes; then
9303 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9304 else
9305 cat > conftest.$ac_ext <<EOF
9306 #line 9307 "configure"
9307 #include "confdefs.h"
9309 #if defined(HAVE_UNISTD_H)
9310 #include <unistd.h>
9311 #endif
9312 #include <sys/types.h>
9313 main() { dev_t dev; int i = minor(dev); return 0; }
9315 if { (eval echo configure:9316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9316 then
9317 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9318 else
9319 echo "configure: failed program was:" >&5
9320 cat conftest.$ac_ext >&5
9321 rm -fr conftest*
9322 samba_cv_HAVE_DEVICE_MINOR_FN=no
9324 rm -fr conftest*
9329 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9330 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9331 cat >> confdefs.h <<\EOF
9332 #define HAVE_DEVICE_MINOR_FN 1
9337 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9338 echo "configure:9339: checking for makedev macro" >&5
9339 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9340 echo $ac_n "(cached) $ac_c" 1>&6
9341 else
9343 if test "$cross_compiling" = yes; then
9344 samba_cv_HAVE_MAKEDEV_FN=cross
9345 else
9346 cat > conftest.$ac_ext <<EOF
9347 #line 9348 "configure"
9348 #include "confdefs.h"
9350 #if defined(HAVE_UNISTD_H)
9351 #include <unistd.h>
9352 #endif
9353 #include <sys/types.h>
9354 main() { dev_t dev = makedev(1,2); return 0; }
9356 if { (eval echo configure:9357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9357 then
9358 samba_cv_HAVE_MAKEDEV_FN=yes
9359 else
9360 echo "configure: failed program was:" >&5
9361 cat conftest.$ac_ext >&5
9362 rm -fr conftest*
9363 samba_cv_HAVE_MAKEDEV_FN=no
9365 rm -fr conftest*
9370 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9371 if test x"$samba_cv_HAVE_MAKEDEV_FN" = x"yes"; then
9372 cat >> confdefs.h <<\EOF
9373 #define MAKEDEV_FN 1
9378 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9379 echo "configure:9380: checking for unsigned char" >&5
9380 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9381 echo $ac_n "(cached) $ac_c" 1>&6
9382 else
9384 if test "$cross_compiling" = yes; then
9385 samba_cv_HAVE_UNSIGNED_CHAR=cross
9386 else
9387 cat > conftest.$ac_ext <<EOF
9388 #line 9389 "configure"
9389 #include "confdefs.h"
9390 #include <stdio.h>
9391 main() { char c; c=250; exit((c > 0)?0:1); }
9393 if { (eval echo configure:9394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9394 then
9395 samba_cv_HAVE_UNSIGNED_CHAR=yes
9396 else
9397 echo "configure: failed program was:" >&5
9398 cat conftest.$ac_ext >&5
9399 rm -fr conftest*
9400 samba_cv_HAVE_UNSIGNED_CHAR=no
9402 rm -fr conftest*
9407 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9408 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9409 cat >> confdefs.h <<\EOF
9410 #define HAVE_UNSIGNED_CHAR 1
9415 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9416 echo "configure:9417: checking for sin_len in sock" >&5
9417 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9418 echo $ac_n "(cached) $ac_c" 1>&6
9419 else
9421 cat > conftest.$ac_ext <<EOF
9422 #line 9423 "configure"
9423 #include "confdefs.h"
9424 #include <sys/types.h>
9425 #include <sys/socket.h>
9426 #include <netinet/in.h>
9427 int main() {
9428 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9429 ; return 0; }
9431 if { (eval echo configure:9432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9432 rm -rf conftest*
9433 samba_cv_HAVE_SOCK_SIN_LEN=yes
9434 else
9435 echo "configure: failed program was:" >&5
9436 cat conftest.$ac_ext >&5
9437 rm -rf conftest*
9438 samba_cv_HAVE_SOCK_SIN_LEN=no
9440 rm -f conftest*
9443 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9444 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9445 cat >> confdefs.h <<\EOF
9446 #define HAVE_SOCK_SIN_LEN 1
9451 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9452 echo "configure:9453: checking whether seekdir returns void" >&5
9453 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9454 echo $ac_n "(cached) $ac_c" 1>&6
9455 else
9457 cat > conftest.$ac_ext <<EOF
9458 #line 9459 "configure"
9459 #include "confdefs.h"
9460 #include <sys/types.h>
9461 #include <dirent.h>
9462 void seekdir(DIR *d, long loc) { return; }
9463 int main() {
9464 return 0;
9465 ; return 0; }
9467 if { (eval echo configure:9468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9468 rm -rf conftest*
9469 samba_cv_SEEKDIR_RETURNS_VOID=yes
9470 else
9471 echo "configure: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9473 rm -rf conftest*
9474 samba_cv_SEEKDIR_RETURNS_VOID=no
9476 rm -f conftest*
9479 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9480 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9481 cat >> confdefs.h <<\EOF
9482 #define SEEKDIR_RETURNS_VOID 1
9487 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9488 echo "configure:9489: checking for __FILE__ macro" >&5
9489 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9490 echo $ac_n "(cached) $ac_c" 1>&6
9491 else
9493 cat > conftest.$ac_ext <<EOF
9494 #line 9495 "configure"
9495 #include "confdefs.h"
9496 #include <stdio.h>
9497 int main() {
9498 printf("%s\n", __FILE__);
9499 ; return 0; }
9501 if { (eval echo configure:9502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9502 rm -rf conftest*
9503 samba_cv_HAVE_FILE_MACRO=yes
9504 else
9505 echo "configure: failed program was:" >&5
9506 cat conftest.$ac_ext >&5
9507 rm -rf conftest*
9508 samba_cv_HAVE_FILE_MACRO=no
9510 rm -f conftest*
9513 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9514 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9515 cat >> confdefs.h <<\EOF
9516 #define HAVE_FILE_MACRO 1
9521 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9522 echo "configure:9523: checking for __FUNCTION__ macro" >&5
9523 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9524 echo $ac_n "(cached) $ac_c" 1>&6
9525 else
9527 cat > conftest.$ac_ext <<EOF
9528 #line 9529 "configure"
9529 #include "confdefs.h"
9530 #include <stdio.h>
9531 int main() {
9532 printf("%s\n", __FUNCTION__);
9533 ; return 0; }
9535 if { (eval echo configure:9536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9536 rm -rf conftest*
9537 samba_cv_HAVE_FUNCTION_MACRO=yes
9538 else
9539 echo "configure: failed program was:" >&5
9540 cat conftest.$ac_ext >&5
9541 rm -rf conftest*
9542 samba_cv_HAVE_FUNCTION_MACRO=no
9544 rm -f conftest*
9547 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9548 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9549 cat >> confdefs.h <<\EOF
9550 #define HAVE_FUNCTION_MACRO 1
9555 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9556 echo "configure:9557: checking if gettimeofday takes tz argument" >&5
9557 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9558 echo $ac_n "(cached) $ac_c" 1>&6
9559 else
9561 if test "$cross_compiling" = yes; then
9562 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9563 else
9564 cat > conftest.$ac_ext <<EOF
9565 #line 9566 "configure"
9566 #include "confdefs.h"
9568 #include <sys/time.h>
9569 #include <unistd.h>
9570 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9572 if { (eval echo configure:9573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9573 then
9574 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9575 else
9576 echo "configure: failed program was:" >&5
9577 cat conftest.$ac_ext >&5
9578 rm -fr conftest*
9579 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9581 rm -fr conftest*
9586 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9587 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9588 cat >> confdefs.h <<\EOF
9589 #define HAVE_GETTIMEOFDAY_TZ 1
9594 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9595 echo "configure:9596: checking for __va_copy" >&5
9596 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9597 echo $ac_n "(cached) $ac_c" 1>&6
9598 else
9600 cat > conftest.$ac_ext <<EOF
9601 #line 9602 "configure"
9602 #include "confdefs.h"
9603 #include <stdarg.h>
9604 va_list ap1,ap2;
9605 int main() {
9606 __va_copy(ap1,ap2);
9607 ; return 0; }
9609 if { (eval echo configure:9610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9610 rm -rf conftest*
9611 samba_cv_HAVE_VA_COPY=yes
9612 else
9613 echo "configure: failed program was:" >&5
9614 cat conftest.$ac_ext >&5
9615 rm -rf conftest*
9616 samba_cv_HAVE_VA_COPY=no
9618 rm -f conftest*
9621 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9622 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9623 cat >> confdefs.h <<\EOF
9624 #define HAVE_VA_COPY 1
9629 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9630 echo "configure:9631: checking for C99 vsnprintf" >&5
9631 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9632 echo $ac_n "(cached) $ac_c" 1>&6
9633 else
9635 if test "$cross_compiling" = yes; then
9636 samba_cv_HAVE_C99_VSNPRINTF=cross
9637 else
9638 cat > conftest.$ac_ext <<EOF
9639 #line 9640 "configure"
9640 #include "confdefs.h"
9642 #include <sys/types.h>
9643 #include <stdarg.h>
9644 void foo(const char *format, ...) {
9645 va_list ap;
9646 int len;
9647 char buf[5];
9649 va_start(ap, format);
9650 len = vsnprintf(buf, 0, format, ap);
9651 va_end(ap);
9652 if (len != 5) exit(1);
9654 va_start(ap, format);
9655 len = vsnprintf(0, 0, format, ap);
9656 va_end(ap);
9657 if (len != 5) exit(1);
9659 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9661 exit(0);
9663 main() { foo("hello"); }
9666 if { (eval echo configure:9667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9667 then
9668 samba_cv_HAVE_C99_VSNPRINTF=yes
9669 else
9670 echo "configure: failed program was:" >&5
9671 cat conftest.$ac_ext >&5
9672 rm -fr conftest*
9673 samba_cv_HAVE_C99_VSNPRINTF=no
9675 rm -fr conftest*
9680 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9681 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9682 cat >> confdefs.h <<\EOF
9683 #define HAVE_C99_VSNPRINTF 1
9688 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9689 echo "configure:9690: checking for broken readdir" >&5
9690 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9691 echo $ac_n "(cached) $ac_c" 1>&6
9692 else
9694 if test "$cross_compiling" = yes; then
9695 samba_cv_HAVE_BROKEN_READDIR=cross
9696 else
9697 cat > conftest.$ac_ext <<EOF
9698 #line 9699 "configure"
9699 #include "confdefs.h"
9700 #include <sys/types.h>
9701 #include <dirent.h>
9702 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9703 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9704 di->d_name[0] == 0) exit(0); exit(1);}
9706 if { (eval echo configure:9707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9707 then
9708 samba_cv_HAVE_BROKEN_READDIR=yes
9709 else
9710 echo "configure: failed program was:" >&5
9711 cat conftest.$ac_ext >&5
9712 rm -fr conftest*
9713 samba_cv_HAVE_BROKEN_READDIR=no
9715 rm -fr conftest*
9720 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9721 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9722 cat >> confdefs.h <<\EOF
9723 #define HAVE_BROKEN_READDIR 1
9728 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9729 echo "configure:9730: checking for utimbuf" >&5
9730 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9731 echo $ac_n "(cached) $ac_c" 1>&6
9732 else
9734 cat > conftest.$ac_ext <<EOF
9735 #line 9736 "configure"
9736 #include "confdefs.h"
9737 #include <sys/types.h>
9738 #include <utime.h>
9739 int main() {
9740 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9741 ; return 0; }
9743 if { (eval echo configure:9744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9744 rm -rf conftest*
9745 samba_cv_HAVE_UTIMBUF=yes
9746 else
9747 echo "configure: failed program was:" >&5
9748 cat conftest.$ac_ext >&5
9749 rm -rf conftest*
9750 samba_cv_HAVE_UTIMBUF=no
9752 rm -f conftest*
9755 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9756 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9757 cat >> confdefs.h <<\EOF
9758 #define HAVE_UTIMBUF 1
9764 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9766 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9767 echo "configure:9768: checking for $ac_func" >&5
9768 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9769 echo $ac_n "(cached) $ac_c" 1>&6
9770 else
9771 cat > conftest.$ac_ext <<EOF
9772 #line 9773 "configure"
9773 #include "confdefs.h"
9774 /* System header to define __stub macros and hopefully few prototypes,
9775 which can conflict with char $ac_func(); below. */
9776 #include <assert.h>
9777 /* Override any gcc2 internal prototype to avoid an error. */
9778 /* We use char because int might match the return type of a gcc2
9779 builtin and then its argument prototype would still apply. */
9780 char $ac_func();
9782 int main() {
9784 /* The GNU C library defines this for functions which it implements
9785 to always fail with ENOSYS. Some functions are actually named
9786 something starting with __ and the normal name is an alias. */
9787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9788 choke me
9789 #else
9790 $ac_func();
9791 #endif
9793 ; return 0; }
9795 if { (eval echo configure:9796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9796 rm -rf conftest*
9797 eval "ac_cv_func_$ac_func=yes"
9798 else
9799 echo "configure: failed program was:" >&5
9800 cat conftest.$ac_ext >&5
9801 rm -rf conftest*
9802 eval "ac_cv_func_$ac_func=no"
9804 rm -f conftest*
9807 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9808 echo "$ac_t""yes" 1>&6
9809 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9810 cat >> confdefs.h <<EOF
9811 #define $ac_tr_func 1
9814 else
9815 echo "$ac_t""no" 1>&6
9817 done
9820 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9821 echo "configure:9822: checking for ut_name in utmp" >&5
9822 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9823 echo $ac_n "(cached) $ac_c" 1>&6
9824 else
9826 cat > conftest.$ac_ext <<EOF
9827 #line 9828 "configure"
9828 #include "confdefs.h"
9829 #include <sys/types.h>
9830 #include <utmp.h>
9831 int main() {
9832 struct utmp ut; ut.ut_name[0] = 'a';
9833 ; return 0; }
9835 if { (eval echo configure:9836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9836 rm -rf conftest*
9837 samba_cv_HAVE_UT_UT_NAME=yes
9838 else
9839 echo "configure: failed program was:" >&5
9840 cat conftest.$ac_ext >&5
9841 rm -rf conftest*
9842 samba_cv_HAVE_UT_UT_NAME=no
9844 rm -f conftest*
9847 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9848 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9849 cat >> confdefs.h <<\EOF
9850 #define HAVE_UT_UT_NAME 1
9855 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9856 echo "configure:9857: checking for ut_user in utmp" >&5
9857 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9858 echo $ac_n "(cached) $ac_c" 1>&6
9859 else
9861 cat > conftest.$ac_ext <<EOF
9862 #line 9863 "configure"
9863 #include "confdefs.h"
9864 #include <sys/types.h>
9865 #include <utmp.h>
9866 int main() {
9867 struct utmp ut; ut.ut_user[0] = 'a';
9868 ; return 0; }
9870 if { (eval echo configure:9871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9871 rm -rf conftest*
9872 samba_cv_HAVE_UT_UT_USER=yes
9873 else
9874 echo "configure: failed program was:" >&5
9875 cat conftest.$ac_ext >&5
9876 rm -rf conftest*
9877 samba_cv_HAVE_UT_UT_USER=no
9879 rm -f conftest*
9882 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9883 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9884 cat >> confdefs.h <<\EOF
9885 #define HAVE_UT_UT_USER 1
9890 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9891 echo "configure:9892: checking for ut_id in utmp" >&5
9892 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9893 echo $ac_n "(cached) $ac_c" 1>&6
9894 else
9896 cat > conftest.$ac_ext <<EOF
9897 #line 9898 "configure"
9898 #include "confdefs.h"
9899 #include <sys/types.h>
9900 #include <utmp.h>
9901 int main() {
9902 struct utmp ut; ut.ut_id[0] = 'a';
9903 ; return 0; }
9905 if { (eval echo configure:9906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9906 rm -rf conftest*
9907 samba_cv_HAVE_UT_UT_ID=yes
9908 else
9909 echo "configure: failed program was:" >&5
9910 cat conftest.$ac_ext >&5
9911 rm -rf conftest*
9912 samba_cv_HAVE_UT_UT_ID=no
9914 rm -f conftest*
9917 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9918 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9919 cat >> confdefs.h <<\EOF
9920 #define HAVE_UT_UT_ID 1
9925 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9926 echo "configure:9927: checking for ut_host in utmp" >&5
9927 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9928 echo $ac_n "(cached) $ac_c" 1>&6
9929 else
9931 cat > conftest.$ac_ext <<EOF
9932 #line 9933 "configure"
9933 #include "confdefs.h"
9934 #include <sys/types.h>
9935 #include <utmp.h>
9936 int main() {
9937 struct utmp ut; ut.ut_host[0] = 'a';
9938 ; return 0; }
9940 if { (eval echo configure:9941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9941 rm -rf conftest*
9942 samba_cv_HAVE_UT_UT_HOST=yes
9943 else
9944 echo "configure: failed program was:" >&5
9945 cat conftest.$ac_ext >&5
9946 rm -rf conftest*
9947 samba_cv_HAVE_UT_UT_HOST=no
9949 rm -f conftest*
9952 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9953 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9954 cat >> confdefs.h <<\EOF
9955 #define HAVE_UT_UT_HOST 1
9960 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9961 echo "configure:9962: checking for ut_time in utmp" >&5
9962 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9963 echo $ac_n "(cached) $ac_c" 1>&6
9964 else
9966 cat > conftest.$ac_ext <<EOF
9967 #line 9968 "configure"
9968 #include "confdefs.h"
9969 #include <sys/types.h>
9970 #include <utmp.h>
9971 int main() {
9972 struct utmp ut; time_t t; ut.ut_time = t;
9973 ; return 0; }
9975 if { (eval echo configure:9976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9976 rm -rf conftest*
9977 samba_cv_HAVE_UT_UT_TIME=yes
9978 else
9979 echo "configure: failed program was:" >&5
9980 cat conftest.$ac_ext >&5
9981 rm -rf conftest*
9982 samba_cv_HAVE_UT_UT_TIME=no
9984 rm -f conftest*
9987 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9988 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9989 cat >> confdefs.h <<\EOF
9990 #define HAVE_UT_UT_TIME 1
9995 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9996 echo "configure:9997: checking for ut_tv in utmp" >&5
9997 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9998 echo $ac_n "(cached) $ac_c" 1>&6
9999 else
10001 cat > conftest.$ac_ext <<EOF
10002 #line 10003 "configure"
10003 #include "confdefs.h"
10004 #include <sys/types.h>
10005 #include <utmp.h>
10006 int main() {
10007 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10008 ; return 0; }
10010 if { (eval echo configure:10011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10011 rm -rf conftest*
10012 samba_cv_HAVE_UT_UT_TV=yes
10013 else
10014 echo "configure: failed program was:" >&5
10015 cat conftest.$ac_ext >&5
10016 rm -rf conftest*
10017 samba_cv_HAVE_UT_UT_TV=no
10019 rm -f conftest*
10022 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10023 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10024 cat >> confdefs.h <<\EOF
10025 #define HAVE_UT_UT_TV 1
10030 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10031 echo "configure:10032: checking for ut_type in utmp" >&5
10032 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10033 echo $ac_n "(cached) $ac_c" 1>&6
10034 else
10036 cat > conftest.$ac_ext <<EOF
10037 #line 10038 "configure"
10038 #include "confdefs.h"
10039 #include <sys/types.h>
10040 #include <utmp.h>
10041 int main() {
10042 struct utmp ut; ut.ut_type = 0;
10043 ; return 0; }
10045 if { (eval echo configure:10046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10046 rm -rf conftest*
10047 samba_cv_HAVE_UT_UT_TYPE=yes
10048 else
10049 echo "configure: failed program was:" >&5
10050 cat conftest.$ac_ext >&5
10051 rm -rf conftest*
10052 samba_cv_HAVE_UT_UT_TYPE=no
10054 rm -f conftest*
10057 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10058 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10059 cat >> confdefs.h <<\EOF
10060 #define HAVE_UT_UT_TYPE 1
10065 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10066 echo "configure:10067: checking for ut_pid in utmp" >&5
10067 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10068 echo $ac_n "(cached) $ac_c" 1>&6
10069 else
10071 cat > conftest.$ac_ext <<EOF
10072 #line 10073 "configure"
10073 #include "confdefs.h"
10074 #include <sys/types.h>
10075 #include <utmp.h>
10076 int main() {
10077 struct utmp ut; ut.ut_pid = 0;
10078 ; return 0; }
10080 if { (eval echo configure:10081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10081 rm -rf conftest*
10082 samba_cv_HAVE_UT_UT_PID=yes
10083 else
10084 echo "configure: failed program was:" >&5
10085 cat conftest.$ac_ext >&5
10086 rm -rf conftest*
10087 samba_cv_HAVE_UT_UT_PID=no
10089 rm -f conftest*
10092 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10093 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10094 cat >> confdefs.h <<\EOF
10095 #define HAVE_UT_UT_PID 1
10100 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10101 echo "configure:10102: checking for ut_exit in utmp" >&5
10102 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10103 echo $ac_n "(cached) $ac_c" 1>&6
10104 else
10106 cat > conftest.$ac_ext <<EOF
10107 #line 10108 "configure"
10108 #include "confdefs.h"
10109 #include <sys/types.h>
10110 #include <utmp.h>
10111 int main() {
10112 struct utmp ut; ut.ut_exit.e_exit = 0;
10113 ; return 0; }
10115 if { (eval echo configure:10116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10116 rm -rf conftest*
10117 samba_cv_HAVE_UT_UT_EXIT=yes
10118 else
10119 echo "configure: failed program was:" >&5
10120 cat conftest.$ac_ext >&5
10121 rm -rf conftest*
10122 samba_cv_HAVE_UT_UT_EXIT=no
10124 rm -f conftest*
10127 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10128 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10129 cat >> confdefs.h <<\EOF
10130 #define HAVE_UT_UT_EXIT 1
10135 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10136 echo "configure:10137: checking for ut_addr in utmp" >&5
10137 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10138 echo $ac_n "(cached) $ac_c" 1>&6
10139 else
10141 cat > conftest.$ac_ext <<EOF
10142 #line 10143 "configure"
10143 #include "confdefs.h"
10144 #include <sys/types.h>
10145 #include <utmp.h>
10146 int main() {
10147 struct utmp ut; ut.ut_addr = 0;
10148 ; return 0; }
10150 if { (eval echo configure:10151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10151 rm -rf conftest*
10152 samba_cv_HAVE_UT_UT_ADDR=yes
10153 else
10154 echo "configure: failed program was:" >&5
10155 cat conftest.$ac_ext >&5
10156 rm -rf conftest*
10157 samba_cv_HAVE_UT_UT_ADDR=no
10159 rm -f conftest*
10162 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10163 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10164 cat >> confdefs.h <<\EOF
10165 #define HAVE_UT_UT_ADDR 1
10170 if test x$ac_cv_func_pututline = xyes ; then
10171 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10172 echo "configure:10173: checking whether pututline returns pointer" >&5
10173 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10174 echo $ac_n "(cached) $ac_c" 1>&6
10175 else
10177 cat > conftest.$ac_ext <<EOF
10178 #line 10179 "configure"
10179 #include "confdefs.h"
10180 #include <sys/types.h>
10181 #include <utmp.h>
10182 int main() {
10183 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10184 ; return 0; }
10186 if { (eval echo configure:10187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10187 rm -rf conftest*
10188 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10189 else
10190 echo "configure: failed program was:" >&5
10191 cat conftest.$ac_ext >&5
10192 rm -rf conftest*
10193 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10195 rm -f conftest*
10198 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10199 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10200 cat >> confdefs.h <<\EOF
10201 #define PUTUTLINE_RETURNS_UTMP 1
10207 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10208 echo "configure:10209: checking for ut_syslen in utmpx" >&5
10209 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10210 echo $ac_n "(cached) $ac_c" 1>&6
10211 else
10213 cat > conftest.$ac_ext <<EOF
10214 #line 10215 "configure"
10215 #include "confdefs.h"
10216 #include <sys/types.h>
10217 #include <utmpx.h>
10218 int main() {
10219 struct utmpx ux; ux.ut_syslen = 0;
10220 ; return 0; }
10222 if { (eval echo configure:10223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10223 rm -rf conftest*
10224 samba_cv_HAVE_UX_UT_SYSLEN=yes
10225 else
10226 echo "configure: failed program was:" >&5
10227 cat conftest.$ac_ext >&5
10228 rm -rf conftest*
10229 samba_cv_HAVE_UX_UT_SYSLEN=no
10231 rm -f conftest*
10234 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10235 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10236 cat >> confdefs.h <<\EOF
10237 #define HAVE_UX_UT_SYSLEN 1
10242 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10243 echo "configure:10244: checking for Linux kernel oplocks" >&5
10244 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10245 echo $ac_n "(cached) $ac_c" 1>&6
10246 else
10248 if test "$cross_compiling" = yes; then
10249 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10250 else
10251 cat > conftest.$ac_ext <<EOF
10252 #line 10253 "configure"
10253 #include "confdefs.h"
10255 #include <sys/types.h>
10256 #include <fcntl.h>
10257 #ifndef F_GETLEASE
10258 #define F_GETLEASE 1025
10259 #endif
10260 main() {
10261 int fd = open("/dev/null", O_RDONLY);
10262 return fcntl(fd, F_GETLEASE, 0) == -1;
10266 if { (eval echo configure:10267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10267 then
10268 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10269 else
10270 echo "configure: failed program was:" >&5
10271 cat conftest.$ac_ext >&5
10272 rm -fr conftest*
10273 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10275 rm -fr conftest*
10280 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10281 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10282 cat >> confdefs.h <<\EOF
10283 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10288 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10289 echo "configure:10290: checking for kernel change notify support" >&5
10290 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10291 echo $ac_n "(cached) $ac_c" 1>&6
10292 else
10294 if test "$cross_compiling" = yes; then
10295 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10296 else
10297 cat > conftest.$ac_ext <<EOF
10298 #line 10299 "configure"
10299 #include "confdefs.h"
10301 #include <sys/types.h>
10302 #include <fcntl.h>
10303 #include <signal.h>
10304 #ifndef F_NOTIFY
10305 #define F_NOTIFY 1026
10306 #endif
10307 main() {
10308 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10312 if { (eval echo configure:10313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10313 then
10314 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10315 else
10316 echo "configure: failed program was:" >&5
10317 cat conftest.$ac_ext >&5
10318 rm -fr conftest*
10319 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10321 rm -fr conftest*
10326 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10327 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes" && test x"$target_cpu" != x"s390"; then
10328 cat >> confdefs.h <<\EOF
10329 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10334 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10335 echo "configure:10336: checking for kernel share modes" >&5
10336 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10337 echo $ac_n "(cached) $ac_c" 1>&6
10338 else
10340 if test "$cross_compiling" = yes; then
10341 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10342 else
10343 cat > conftest.$ac_ext <<EOF
10344 #line 10345 "configure"
10345 #include "confdefs.h"
10347 #include <sys/types.h>
10348 #include <fcntl.h>
10349 #include <signal.h>
10350 #include <sys/file.h>
10351 #ifndef LOCK_MAND
10352 #define LOCK_MAND 32
10353 #define LOCK_READ 64
10354 #endif
10355 main() {
10356 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10360 if { (eval echo configure:10361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10361 then
10362 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10363 else
10364 echo "configure: failed program was:" >&5
10365 cat conftest.$ac_ext >&5
10366 rm -fr conftest*
10367 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10369 rm -fr conftest*
10374 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10375 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10376 cat >> confdefs.h <<\EOF
10377 #define HAVE_KERNEL_SHARE_MODES 1
10385 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10386 echo "configure:10387: checking for IRIX kernel oplock type definitions" >&5
10387 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10388 echo $ac_n "(cached) $ac_c" 1>&6
10389 else
10391 cat > conftest.$ac_ext <<EOF
10392 #line 10393 "configure"
10393 #include "confdefs.h"
10394 #include <sys/types.h>
10395 #include <fcntl.h>
10396 int main() {
10397 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10398 ; return 0; }
10400 if { (eval echo configure:10401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10401 rm -rf conftest*
10402 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10403 else
10404 echo "configure: failed program was:" >&5
10405 cat conftest.$ac_ext >&5
10406 rm -rf conftest*
10407 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10409 rm -f conftest*
10412 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10413 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10414 cat >> confdefs.h <<\EOF
10415 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10420 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10421 echo "configure:10422: checking for irix specific capabilities" >&5
10422 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10423 echo $ac_n "(cached) $ac_c" 1>&6
10424 else
10426 if test "$cross_compiling" = yes; then
10427 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10428 else
10429 cat > conftest.$ac_ext <<EOF
10430 #line 10431 "configure"
10431 #include "confdefs.h"
10432 #include <sys/types.h>
10433 #include <sys/capability.h>
10434 main() {
10435 cap_t cap;
10436 if ((cap = cap_get_proc()) == NULL)
10437 exit(1);
10438 cap->cap_effective |= CAP_NETWORK_MGT;
10439 cap->cap_inheritable |= CAP_NETWORK_MGT;
10440 cap_set_proc(cap);
10441 exit(0);
10445 if { (eval echo configure:10446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10446 then
10447 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10448 else
10449 echo "configure: failed program was:" >&5
10450 cat conftest.$ac_ext >&5
10451 rm -fr conftest*
10452 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10454 rm -fr conftest*
10459 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10460 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10461 cat >> confdefs.h <<\EOF
10462 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10468 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10469 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10472 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10473 echo "configure:10474: checking for int16 typedef included by rpc/rpc.h" >&5
10474 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10475 echo $ac_n "(cached) $ac_c" 1>&6
10476 else
10478 cat > conftest.$ac_ext <<EOF
10479 #line 10480 "configure"
10480 #include "confdefs.h"
10481 #include <sys/types.h>
10482 #if defined(HAVE_RPC_RPC_H)
10483 #include <rpc/rpc.h>
10484 #endif
10485 int main() {
10486 int16 testvar;
10487 ; return 0; }
10489 if { (eval echo configure:10490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10490 rm -rf conftest*
10491 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10492 else
10493 echo "configure: failed program was:" >&5
10494 cat conftest.$ac_ext >&5
10495 rm -rf conftest*
10496 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10498 rm -f conftest*
10501 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10502 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10503 cat >> confdefs.h <<\EOF
10504 #define HAVE_INT16_FROM_RPC_RPC_H 1
10509 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10510 echo "configure:10511: checking for uint16 typedef included by rpc/rpc.h" >&5
10511 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10512 echo $ac_n "(cached) $ac_c" 1>&6
10513 else
10515 cat > conftest.$ac_ext <<EOF
10516 #line 10517 "configure"
10517 #include "confdefs.h"
10518 #include <sys/types.h>
10519 #if defined(HAVE_RPC_RPC_H)
10520 #include <rpc/rpc.h>
10521 #endif
10522 int main() {
10523 uint16 testvar;
10524 ; return 0; }
10526 if { (eval echo configure:10527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10527 rm -rf conftest*
10528 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10529 else
10530 echo "configure: failed program was:" >&5
10531 cat conftest.$ac_ext >&5
10532 rm -rf conftest*
10533 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10535 rm -f conftest*
10538 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10539 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10540 cat >> confdefs.h <<\EOF
10541 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10546 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10547 echo "configure:10548: checking for int32 typedef included by rpc/rpc.h" >&5
10548 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10549 echo $ac_n "(cached) $ac_c" 1>&6
10550 else
10552 cat > conftest.$ac_ext <<EOF
10553 #line 10554 "configure"
10554 #include "confdefs.h"
10555 #include <sys/types.h>
10556 #if defined(HAVE_RPC_RPC_H)
10557 #include <rpc/rpc.h>
10558 #endif
10559 int main() {
10560 int32 testvar;
10561 ; return 0; }
10563 if { (eval echo configure:10564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10564 rm -rf conftest*
10565 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10566 else
10567 echo "configure: failed program was:" >&5
10568 cat conftest.$ac_ext >&5
10569 rm -rf conftest*
10570 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10572 rm -f conftest*
10575 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10576 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10577 cat >> confdefs.h <<\EOF
10578 #define HAVE_INT32_FROM_RPC_RPC_H 1
10583 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10584 echo "configure:10585: checking for uint32 typedef included by rpc/rpc.h" >&5
10585 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10586 echo $ac_n "(cached) $ac_c" 1>&6
10587 else
10589 cat > conftest.$ac_ext <<EOF
10590 #line 10591 "configure"
10591 #include "confdefs.h"
10592 #include <sys/types.h>
10593 #if defined(HAVE_RPC_RPC_H)
10594 #include <rpc/rpc.h>
10595 #endif
10596 int main() {
10597 uint32 testvar;
10598 ; return 0; }
10600 if { (eval echo configure:10601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10601 rm -rf conftest*
10602 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10603 else
10604 echo "configure: failed program was:" >&5
10605 cat conftest.$ac_ext >&5
10606 rm -rf conftest*
10607 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10609 rm -f conftest*
10612 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10613 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10614 cat >> confdefs.h <<\EOF
10615 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10621 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10622 echo "configure:10623: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10623 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10624 echo $ac_n "(cached) $ac_c" 1>&6
10625 else
10627 cat > conftest.$ac_ext <<EOF
10628 #line 10629 "configure"
10629 #include "confdefs.h"
10630 #include <sys/types.h>
10631 #ifdef HAVE_SYS_SECURITY_H
10632 #include <sys/security.h>
10633 #include <prot.h>
10634 #endif /* HAVE_SYS_SECURITY_H */
10635 #if defined(HAVE_RPC_RPC_H)
10636 #include <rpc/rpc.h>
10637 #endif
10638 int main() {
10639 int testvar;
10640 ; return 0; }
10642 if { (eval echo configure:10643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10643 rm -rf conftest*
10644 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10645 else
10646 echo "configure: failed program was:" >&5
10647 cat conftest.$ac_ext >&5
10648 rm -rf conftest*
10649 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10651 rm -f conftest*
10654 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10655 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10656 cat >> confdefs.h <<\EOF
10657 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10662 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10663 echo "configure:10664: checking for test routines" >&5
10664 if test "$cross_compiling" = yes; then
10665 echo "configure: warning: cannot run when cross-compiling" 1>&2
10666 else
10667 cat > conftest.$ac_ext <<EOF
10668 #line 10669 "configure"
10669 #include "confdefs.h"
10670 #include "${srcdir-.}/tests/trivial.c"
10672 if { (eval echo configure:10673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10673 then
10674 echo "$ac_t""yes" 1>&6
10675 else
10676 echo "configure: failed program was:" >&5
10677 cat conftest.$ac_ext >&5
10678 rm -fr conftest*
10679 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10681 rm -fr conftest*
10685 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10686 echo "configure:10687: checking for ftruncate extend" >&5
10687 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10688 echo $ac_n "(cached) $ac_c" 1>&6
10689 else
10691 if test "$cross_compiling" = yes; then
10692 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10693 else
10694 cat > conftest.$ac_ext <<EOF
10695 #line 10696 "configure"
10696 #include "confdefs.h"
10697 #include "${srcdir-.}/tests/ftruncate.c"
10699 if { (eval echo configure:10700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10700 then
10701 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10702 else
10703 echo "configure: failed program was:" >&5
10704 cat conftest.$ac_ext >&5
10705 rm -fr conftest*
10706 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10708 rm -fr conftest*
10713 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10714 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10715 cat >> confdefs.h <<\EOF
10716 #define HAVE_FTRUNCATE_EXTEND 1
10721 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10722 echo "configure:10723: checking for broken getgroups" >&5
10723 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10724 echo $ac_n "(cached) $ac_c" 1>&6
10725 else
10727 if test "$cross_compiling" = yes; then
10728 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10729 else
10730 cat > conftest.$ac_ext <<EOF
10731 #line 10732 "configure"
10732 #include "confdefs.h"
10733 #include "${srcdir-.}/tests/getgroups.c"
10735 if { (eval echo configure:10736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10736 then
10737 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10738 else
10739 echo "configure: failed program was:" >&5
10740 cat conftest.$ac_ext >&5
10741 rm -fr conftest*
10742 samba_cv_HAVE_BROKEN_GETGROUPS=no
10744 rm -fr conftest*
10749 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10750 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10751 cat >> confdefs.h <<\EOF
10752 #define HAVE_BROKEN_GETGROUPS 1
10757 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10758 echo "configure:10759: checking whether getpass should be replaced" >&5
10759 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10760 echo $ac_n "(cached) $ac_c" 1>&6
10761 else
10763 SAVE_CPPFLAGS="$CPPFLAGS"
10764 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
10765 cat > conftest.$ac_ext <<EOF
10766 #line 10767 "configure"
10767 #include "confdefs.h"
10769 #define REPLACE_GETPASS 1
10770 #define NO_CONFIG_H 1
10771 #define main dont_declare_main
10772 #include "${srcdir-.}/lib/getsmbpass.c"
10773 #undef main
10775 int main() {
10777 ; return 0; }
10779 if { (eval echo configure:10780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10780 rm -rf conftest*
10781 samba_cv_REPLACE_GETPASS=yes
10782 else
10783 echo "configure: failed program was:" >&5
10784 cat conftest.$ac_ext >&5
10785 rm -rf conftest*
10786 samba_cv_REPLACE_GETPASS=no
10788 rm -f conftest*
10789 CPPFLAGS="$SAVE_CPPFLAGS"
10793 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10794 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10795 cat >> confdefs.h <<\EOF
10796 #define REPLACE_GETPASS 1
10801 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10802 echo "configure:10803: checking for broken inet_ntoa" >&5
10803 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10804 echo $ac_n "(cached) $ac_c" 1>&6
10805 else
10807 if test "$cross_compiling" = yes; then
10808 samba_cv_REPLACE_INET_NTOA=cross
10809 else
10810 cat > conftest.$ac_ext <<EOF
10811 #line 10812 "configure"
10812 #include "confdefs.h"
10814 #include <stdio.h>
10815 #include <sys/types.h>
10816 #include <netinet/in.h>
10817 #ifdef HAVE_ARPA_INET_H
10818 #include <arpa/inet.h>
10819 #endif
10820 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10821 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10822 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10823 exit(1);}
10825 if { (eval echo configure:10826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10826 then
10827 samba_cv_REPLACE_INET_NTOA=yes
10828 else
10829 echo "configure: failed program was:" >&5
10830 cat conftest.$ac_ext >&5
10831 rm -fr conftest*
10832 samba_cv_REPLACE_INET_NTOA=no
10834 rm -fr conftest*
10839 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10840 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10841 cat >> confdefs.h <<\EOF
10842 #define REPLACE_INET_NTOA 1
10847 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10848 echo "configure:10849: checking for secure mkstemp" >&5
10849 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10850 echo $ac_n "(cached) $ac_c" 1>&6
10851 else
10853 if test "$cross_compiling" = yes; then
10854 samba_cv_HAVE_SECURE_MKSTEMP=cross
10855 else
10856 cat > conftest.$ac_ext <<EOF
10857 #line 10858 "configure"
10858 #include "confdefs.h"
10859 #include <stdlib.h>
10860 #include <sys/types.h>
10861 #include <sys/stat.h>
10862 #include <unistd.h>
10863 main() {
10864 struct stat st;
10865 char tpl[20]="/tmp/test.XXXXXX";
10866 int fd = mkstemp(tpl);
10867 if (fd == -1) exit(1);
10868 unlink(tpl);
10869 if (fstat(fd, &st) != 0) exit(1);
10870 if ((st.st_mode & 0777) != 0600) exit(1);
10871 exit(0);
10874 if { (eval echo configure:10875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10875 then
10876 samba_cv_HAVE_SECURE_MKSTEMP=yes
10877 else
10878 echo "configure: failed program was:" >&5
10879 cat conftest.$ac_ext >&5
10880 rm -fr conftest*
10881 samba_cv_HAVE_SECURE_MKSTEMP=no
10883 rm -fr conftest*
10888 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10889 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10890 cat >> confdefs.h <<\EOF
10891 #define HAVE_SECURE_MKSTEMP 1
10896 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10897 echo "configure:10898: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10898 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10899 echo $ac_n "(cached) $ac_c" 1>&6
10900 else
10902 if test "$cross_compiling" = yes; then
10903 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10904 else
10905 cat > conftest.$ac_ext <<EOF
10906 #line 10907 "configure"
10907 #include "confdefs.h"
10908 #include <unistd.h>
10909 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10911 if { (eval echo configure:10912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10912 then
10913 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10914 else
10915 echo "configure: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10917 rm -fr conftest*
10918 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10920 rm -fr conftest*
10925 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10926 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10927 cat >> confdefs.h <<\EOF
10928 #define SYSCONF_SC_NGROUPS_MAX 1
10933 echo $ac_n "checking for root""... $ac_c" 1>&6
10934 echo "configure:10935: checking for root" >&5
10935 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10936 echo $ac_n "(cached) $ac_c" 1>&6
10937 else
10939 if test "$cross_compiling" = yes; then
10940 samba_cv_HAVE_ROOT=cross
10941 else
10942 cat > conftest.$ac_ext <<EOF
10943 #line 10944 "configure"
10944 #include "confdefs.h"
10945 main() { exit(getuid() != 0); }
10947 if { (eval echo configure:10948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10948 then
10949 samba_cv_HAVE_ROOT=yes
10950 else
10951 echo "configure: failed program was:" >&5
10952 cat conftest.$ac_ext >&5
10953 rm -fr conftest*
10954 samba_cv_HAVE_ROOT=no
10956 rm -fr conftest*
10961 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10962 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10963 cat >> confdefs.h <<\EOF
10964 #define HAVE_ROOT 1
10967 else
10968 echo "configure: warning: running as non-root will disable some tests" 1>&2
10971 ##################
10972 # look for a method of finding the list of network interfaces
10973 iface=no;
10974 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10975 echo "configure:10976: checking for iface AIX" >&5
10976 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10977 echo $ac_n "(cached) $ac_c" 1>&6
10978 else
10980 if test "$cross_compiling" = yes; then
10981 samba_cv_HAVE_IFACE_AIX=cross
10982 else
10983 cat > conftest.$ac_ext <<EOF
10984 #line 10985 "configure"
10985 #include "confdefs.h"
10987 #define HAVE_IFACE_AIX 1
10988 #define AUTOCONF_TEST 1
10989 #include "confdefs.h"
10990 #include "${srcdir-.}/lib/interfaces.c"
10992 if { (eval echo configure:10993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10993 then
10994 samba_cv_HAVE_IFACE_AIX=yes
10995 else
10996 echo "configure: failed program was:" >&5
10997 cat conftest.$ac_ext >&5
10998 rm -fr conftest*
10999 samba_cv_HAVE_IFACE_AIX=no
11001 rm -fr conftest*
11006 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11007 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11008 iface=yes;cat >> confdefs.h <<\EOF
11009 #define HAVE_IFACE_AIX 1
11014 if test $iface = no; then
11015 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11016 echo "configure:11017: checking for iface ifconf" >&5
11017 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11018 echo $ac_n "(cached) $ac_c" 1>&6
11019 else
11021 if test "$cross_compiling" = yes; then
11022 samba_cv_HAVE_IFACE_IFCONF=cross
11023 else
11024 cat > conftest.$ac_ext <<EOF
11025 #line 11026 "configure"
11026 #include "confdefs.h"
11028 #define HAVE_IFACE_IFCONF 1
11029 #define AUTOCONF_TEST 1
11030 #include "confdefs.h"
11031 #include "${srcdir-.}/lib/interfaces.c"
11033 if { (eval echo configure:11034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11034 then
11035 samba_cv_HAVE_IFACE_IFCONF=yes
11036 else
11037 echo "configure: failed program was:" >&5
11038 cat conftest.$ac_ext >&5
11039 rm -fr conftest*
11040 samba_cv_HAVE_IFACE_IFCONF=no
11042 rm -fr conftest*
11047 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11048 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11049 iface=yes;cat >> confdefs.h <<\EOF
11050 #define HAVE_IFACE_IFCONF 1
11056 if test $iface = no; then
11057 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11058 echo "configure:11059: checking for iface ifreq" >&5
11059 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11060 echo $ac_n "(cached) $ac_c" 1>&6
11061 else
11063 if test "$cross_compiling" = yes; then
11064 samba_cv_HAVE_IFACE_IFREQ=cross
11065 else
11066 cat > conftest.$ac_ext <<EOF
11067 #line 11068 "configure"
11068 #include "confdefs.h"
11070 #define HAVE_IFACE_IFREQ 1
11071 #define AUTOCONF_TEST 1
11072 #include "confdefs.h"
11073 #include "${srcdir-.}/lib/interfaces.c"
11075 if { (eval echo configure:11076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11076 then
11077 samba_cv_HAVE_IFACE_IFREQ=yes
11078 else
11079 echo "configure: failed program was:" >&5
11080 cat conftest.$ac_ext >&5
11081 rm -fr conftest*
11082 samba_cv_HAVE_IFACE_IFREQ=no
11084 rm -fr conftest*
11089 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11090 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11091 iface=yes;cat >> confdefs.h <<\EOF
11092 #define HAVE_IFACE_IFREQ 1
11099 ################################################
11100 # look for a method of setting the effective uid
11101 seteuid=no;
11102 if test $seteuid = no; then
11103 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11104 echo "configure:11105: checking for setresuid" >&5
11105 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11106 echo $ac_n "(cached) $ac_c" 1>&6
11107 else
11109 if test "$cross_compiling" = yes; then
11110 samba_cv_USE_SETRESUID=cross
11111 else
11112 cat > conftest.$ac_ext <<EOF
11113 #line 11114 "configure"
11114 #include "confdefs.h"
11116 #define AUTOCONF_TEST 1
11117 #define USE_SETRESUID 1
11118 #include "confdefs.h"
11119 #include "${srcdir-.}/lib/util_sec.c"
11121 if { (eval echo configure:11122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11122 then
11123 samba_cv_USE_SETRESUID=yes
11124 else
11125 echo "configure: failed program was:" >&5
11126 cat conftest.$ac_ext >&5
11127 rm -fr conftest*
11128 samba_cv_USE_SETRESUID=no
11130 rm -fr conftest*
11135 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11136 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11137 seteuid=yes;cat >> confdefs.h <<\EOF
11138 #define USE_SETRESUID 1
11145 if test $seteuid = no; then
11146 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11147 echo "configure:11148: checking for setreuid" >&5
11148 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11149 echo $ac_n "(cached) $ac_c" 1>&6
11150 else
11152 if test "$cross_compiling" = yes; then
11153 samba_cv_USE_SETREUID=cross
11154 else
11155 cat > conftest.$ac_ext <<EOF
11156 #line 11157 "configure"
11157 #include "confdefs.h"
11159 #define AUTOCONF_TEST 1
11160 #define USE_SETREUID 1
11161 #include "confdefs.h"
11162 #include "${srcdir-.}/lib/util_sec.c"
11164 if { (eval echo configure:11165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11165 then
11166 samba_cv_USE_SETREUID=yes
11167 else
11168 echo "configure: failed program was:" >&5
11169 cat conftest.$ac_ext >&5
11170 rm -fr conftest*
11171 samba_cv_USE_SETREUID=no
11173 rm -fr conftest*
11178 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11179 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11180 seteuid=yes;cat >> confdefs.h <<\EOF
11181 #define USE_SETREUID 1
11187 if test $seteuid = no; then
11188 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11189 echo "configure:11190: checking for seteuid" >&5
11190 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11191 echo $ac_n "(cached) $ac_c" 1>&6
11192 else
11194 if test "$cross_compiling" = yes; then
11195 samba_cv_USE_SETEUID=cross
11196 else
11197 cat > conftest.$ac_ext <<EOF
11198 #line 11199 "configure"
11199 #include "confdefs.h"
11201 #define AUTOCONF_TEST 1
11202 #define USE_SETEUID 1
11203 #include "confdefs.h"
11204 #include "${srcdir-.}/lib/util_sec.c"
11206 if { (eval echo configure:11207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11207 then
11208 samba_cv_USE_SETEUID=yes
11209 else
11210 echo "configure: failed program was:" >&5
11211 cat conftest.$ac_ext >&5
11212 rm -fr conftest*
11213 samba_cv_USE_SETEUID=no
11215 rm -fr conftest*
11220 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11221 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11222 seteuid=yes;cat >> confdefs.h <<\EOF
11223 #define USE_SETEUID 1
11229 if test $seteuid = no; then
11230 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11231 echo "configure:11232: checking for setuidx" >&5
11232 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11233 echo $ac_n "(cached) $ac_c" 1>&6
11234 else
11236 if test "$cross_compiling" = yes; then
11237 samba_cv_USE_SETUIDX=cross
11238 else
11239 cat > conftest.$ac_ext <<EOF
11240 #line 11241 "configure"
11241 #include "confdefs.h"
11243 #define AUTOCONF_TEST 1
11244 #define USE_SETUIDX 1
11245 #include "confdefs.h"
11246 #include "${srcdir-.}/lib/util_sec.c"
11248 if { (eval echo configure:11249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11249 then
11250 samba_cv_USE_SETUIDX=yes
11251 else
11252 echo "configure: failed program was:" >&5
11253 cat conftest.$ac_ext >&5
11254 rm -fr conftest*
11255 samba_cv_USE_SETUIDX=no
11257 rm -fr conftest*
11262 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11263 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11264 seteuid=yes;cat >> confdefs.h <<\EOF
11265 #define USE_SETUIDX 1
11272 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11273 echo "configure:11274: checking for working mmap" >&5
11274 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11275 echo $ac_n "(cached) $ac_c" 1>&6
11276 else
11278 if test "$cross_compiling" = yes; then
11279 samba_cv_HAVE_MMAP=cross
11280 else
11281 cat > conftest.$ac_ext <<EOF
11282 #line 11283 "configure"
11283 #include "confdefs.h"
11284 #include "${srcdir-.}/tests/shared_mmap.c"
11286 if { (eval echo configure:11287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11287 then
11288 samba_cv_HAVE_MMAP=yes
11289 else
11290 echo "configure: failed program was:" >&5
11291 cat conftest.$ac_ext >&5
11292 rm -fr conftest*
11293 samba_cv_HAVE_MMAP=no
11295 rm -fr conftest*
11300 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11301 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11302 cat >> confdefs.h <<\EOF
11303 #define HAVE_MMAP 1
11308 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11309 echo "configure:11310: checking for ftruncate needs root" >&5
11310 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11311 echo $ac_n "(cached) $ac_c" 1>&6
11312 else
11314 if test "$cross_compiling" = yes; then
11315 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11316 else
11317 cat > conftest.$ac_ext <<EOF
11318 #line 11319 "configure"
11319 #include "confdefs.h"
11320 #include "${srcdir-.}/tests/ftruncroot.c"
11322 if { (eval echo configure:11323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11323 then
11324 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11325 else
11326 echo "configure: failed program was:" >&5
11327 cat conftest.$ac_ext >&5
11328 rm -fr conftest*
11329 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11331 rm -fr conftest*
11336 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11337 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11338 cat >> confdefs.h <<\EOF
11339 #define FTRUNCATE_NEEDS_ROOT 1
11344 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11345 echo "configure:11346: checking for fcntl locking" >&5
11346 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11347 echo $ac_n "(cached) $ac_c" 1>&6
11348 else
11350 if test "$cross_compiling" = yes; then
11351 samba_cv_HAVE_FCNTL_LOCK=cross
11352 else
11353 cat > conftest.$ac_ext <<EOF
11354 #line 11355 "configure"
11355 #include "confdefs.h"
11356 #include "${srcdir-.}/tests/fcntl_lock.c"
11358 if { (eval echo configure:11359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11359 then
11360 samba_cv_HAVE_FCNTL_LOCK=yes
11361 else
11362 echo "configure: failed program was:" >&5
11363 cat conftest.$ac_ext >&5
11364 rm -fr conftest*
11365 samba_cv_HAVE_FCNTL_LOCK=no
11367 rm -fr conftest*
11372 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11373 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11374 cat >> confdefs.h <<\EOF
11375 #define HAVE_FCNTL_LOCK 1
11380 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11381 echo "configure:11382: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11382 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11383 echo $ac_n "(cached) $ac_c" 1>&6
11384 else
11386 if test "$cross_compiling" = yes; then
11387 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11388 else
11389 cat > conftest.$ac_ext <<EOF
11390 #line 11391 "configure"
11391 #include "confdefs.h"
11392 #include "${srcdir-.}/tests/fcntl_lock64.c"
11394 if { (eval echo configure:11395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11395 then
11396 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11397 else
11398 echo "configure: failed program was:" >&5
11399 cat conftest.$ac_ext >&5
11400 rm -fr conftest*
11401 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11403 rm -fr conftest*
11408 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11409 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11410 cat >> confdefs.h <<\EOF
11411 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11415 else
11418 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11419 echo "configure:11420: checking for 64 bit fcntl locking" >&5
11420 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11421 echo $ac_n "(cached) $ac_c" 1>&6
11422 else
11424 if test "$cross_compiling" = yes; then
11425 samba_cv_HAVE_STRUCT_FLOCK64=cross
11426 else
11427 cat > conftest.$ac_ext <<EOF
11428 #line 11429 "configure"
11429 #include "confdefs.h"
11431 #if defined(HAVE_UNISTD_H)
11432 #include <unistd.h>
11433 #endif
11434 #include <stdio.h>
11435 #include <stdlib.h>
11437 #ifdef HAVE_FCNTL_H
11438 #include <fcntl.h>
11439 #endif
11441 #ifdef HAVE_SYS_FCNTL_H
11442 #include <sys/fcntl.h>
11443 #endif
11444 main() { struct flock64 fl64;
11445 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11446 exit(0);
11447 #else
11448 exit(1);
11449 #endif
11452 if { (eval echo configure:11453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11453 then
11454 samba_cv_HAVE_STRUCT_FLOCK64=yes
11455 else
11456 echo "configure: failed program was:" >&5
11457 cat conftest.$ac_ext >&5
11458 rm -fr conftest*
11459 samba_cv_HAVE_STRUCT_FLOCK64=no
11461 rm -fr conftest*
11466 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11468 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11469 cat >> confdefs.h <<\EOF
11470 #define HAVE_STRUCT_FLOCK64 1
11476 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11477 echo "configure:11478: checking for st_blocks in struct stat" >&5
11478 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11479 echo $ac_n "(cached) $ac_c" 1>&6
11480 else
11482 cat > conftest.$ac_ext <<EOF
11483 #line 11484 "configure"
11484 #include "confdefs.h"
11485 #include <sys/types.h>
11486 #include <sys/stat.h>
11487 #include <unistd.h>
11488 int main() {
11489 struct stat st; st.st_blocks = 0;
11490 ; return 0; }
11492 if { (eval echo configure:11493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11493 rm -rf conftest*
11494 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11495 else
11496 echo "configure: failed program was:" >&5
11497 cat conftest.$ac_ext >&5
11498 rm -rf conftest*
11499 samba_cv_HAVE_STAT_ST_BLOCKS=no
11501 rm -f conftest*
11504 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11505 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11506 cat >> confdefs.h <<\EOF
11507 #define HAVE_STAT_ST_BLOCKS 1
11512 case "$host_os" in
11513 *linux*)
11514 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11515 echo "configure:11516: checking for broken RedHat 7.2 system header files" >&5
11516 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11517 echo $ac_n "(cached) $ac_c" 1>&6
11518 else
11520 cat > conftest.$ac_ext <<EOF
11521 #line 11522 "configure"
11522 #include "confdefs.h"
11524 #ifdef HAVE_SYS_VFS_H
11525 #include <sys/vfs.h>
11526 #endif
11527 #ifdef HAVE_SYS_CAPABILITY_H
11528 #include <sys/capability.h>
11529 #endif
11531 int main() {
11532 int i;
11533 ; return 0; }
11535 if { (eval echo configure:11536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11536 rm -rf conftest*
11537 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11538 else
11539 echo "configure: failed program was:" >&5
11540 cat conftest.$ac_ext >&5
11541 rm -rf conftest*
11542 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11544 rm -f conftest*
11547 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11548 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11549 cat >> confdefs.h <<\EOF
11550 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11555 esac
11557 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11558 echo "configure:11559: checking for broken nisplus include files" >&5
11559 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11560 echo $ac_n "(cached) $ac_c" 1>&6
11561 else
11563 cat > conftest.$ac_ext <<EOF
11564 #line 11565 "configure"
11565 #include "confdefs.h"
11566 #include <sys/acl.h>
11567 #if defined(HAVE_RPCSVC_NIS_H)
11568 #include <rpcsvc/nis.h>
11569 #endif
11570 int main() {
11571 int i;
11572 ; return 0; }
11574 if { (eval echo configure:11575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11575 rm -rf conftest*
11576 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11577 else
11578 echo "configure: failed program was:" >&5
11579 cat conftest.$ac_ext >&5
11580 rm -rf conftest*
11581 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11583 rm -f conftest*
11586 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11587 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11588 cat >> confdefs.h <<\EOF
11589 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11595 #################################################
11596 # check for smbwrapper support
11597 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11598 echo "configure:11599: checking whether to use smbwrapper" >&5
11599 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11600 if test "${with_smbwrapper+set}" = set; then
11601 withval="$with_smbwrapper"
11602 case "$withval" in
11603 yes)
11604 echo "$ac_t""yes" 1>&6
11605 cat >> confdefs.h <<\EOF
11606 #define WITH_SMBWRAPPER 1
11609 WRAPPROG="bin/smbsh"
11610 WRAP="bin/smbwrapper.$SHLIBEXT"
11612 if test x$ATTEMPT_WRAP32_BUILD = x; then
11613 WRAP32=""
11614 else
11615 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11618 # Conditions under which smbwrapper should not be built.
11620 if test x$PICFLAG = x; then
11621 echo No support for PIC code - disabling smbwrapper and smbsh
11622 WRAPPROG=""
11623 WRAP=""
11624 WRAP32=""
11625 elif test x$ac_cv_func_syscall = xno; then
11626 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11627 WRAPPROG=""
11628 WRAP=""
11629 WRAP32=""
11633 echo "$ac_t""no" 1>&6
11635 esac
11636 else
11637 echo "$ac_t""no" 1>&6
11642 #################################################
11643 # check for the AFS filesystem
11644 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11645 echo "configure:11646: checking whether to use AFS" >&5
11646 # Check whether --with-afs or --without-afs was given.
11647 if test "${with_afs+set}" = set; then
11648 withval="$with_afs"
11649 case "$withval" in
11650 yes)
11651 echo "$ac_t""yes" 1>&6
11652 cat >> confdefs.h <<\EOF
11653 #define WITH_AFS 1
11658 echo "$ac_t""no" 1>&6
11660 esac
11661 else
11662 echo "$ac_t""no" 1>&6
11668 #################################################
11669 # check for the DFS auth system
11670 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11671 echo "configure:11672: checking whether to use DCE/DFS auth" >&5
11672 # Check whether --with-dfs or --without-dfs was given.
11673 if test "${with_dfs+set}" = set; then
11674 withval="$with_dfs"
11675 case "$withval" in
11676 yes)
11677 echo "$ac_t""yes" 1>&6
11678 cat >> confdefs.h <<\EOF
11679 #define WITH_DFS 1
11684 echo "$ac_t""no" 1>&6
11686 esac
11687 else
11688 echo "$ac_t""no" 1>&6
11693 #################################################
11694 # check for Kerberos IV auth system
11695 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11696 echo "configure:11697: checking whether to use Kerberos IV" >&5
11697 # Check whether --with-krb4 or --without-krb4 was given.
11698 if test "${with_krb4+set}" = set; then
11699 withval="$with_krb4"
11700 case "$withval" in
11701 yes)
11702 echo "$ac_t""yes" 1>&6
11703 cat >> confdefs.h <<\EOF
11704 #define KRB4_AUTH 1
11707 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11708 echo "configure:11709: checking for dn_expand in -lresolv" >&5
11709 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11710 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11711 echo $ac_n "(cached) $ac_c" 1>&6
11712 else
11713 ac_save_LIBS="$LIBS"
11714 LIBS="-lresolv $LIBS"
11715 cat > conftest.$ac_ext <<EOF
11716 #line 11717 "configure"
11717 #include "confdefs.h"
11718 /* Override any gcc2 internal prototype to avoid an error. */
11719 /* We use char because int might match the return type of a gcc2
11720 builtin and then its argument prototype would still apply. */
11721 char dn_expand();
11723 int main() {
11724 dn_expand()
11725 ; return 0; }
11727 if { (eval echo configure:11728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11728 rm -rf conftest*
11729 eval "ac_cv_lib_$ac_lib_var=yes"
11730 else
11731 echo "configure: failed program was:" >&5
11732 cat conftest.$ac_ext >&5
11733 rm -rf conftest*
11734 eval "ac_cv_lib_$ac_lib_var=no"
11736 rm -f conftest*
11737 LIBS="$ac_save_LIBS"
11740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11741 echo "$ac_t""yes" 1>&6
11742 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11743 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11744 cat >> confdefs.h <<EOF
11745 #define $ac_tr_lib 1
11748 LIBS="-lresolv $LIBS"
11750 else
11751 echo "$ac_t""no" 1>&6
11754 LIBS="$LIBS -lkrb -ldes"
11755 CFLAGS="$CFLAGS -I$withval/include"
11756 LDFLAGS="$LDFLAGS -L$withval/lib"
11759 echo "$ac_t""no" 1>&6
11761 esac
11762 else
11763 echo "$ac_t""no" 1>&6
11768 #################################################
11769 # check for Kerberos 5 auth system
11770 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11771 echo "configure:11772: checking whether to use Kerberos 5" >&5
11772 # Check whether --with-krb5 or --without-krb5 was given.
11773 if test "${with_krb5+set}" = set; then
11774 withval="$with_krb5"
11775 case "$withval" in
11776 yes)
11777 echo "$ac_t""yes" 1>&6
11778 cat >> confdefs.h <<\EOF
11779 #define KRB5_AUTH 1
11782 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11783 CFLAGS="$CFLAGS -I$withval/include"
11784 LDFLAGS="$LDFLAGS -L$withval/lib"
11787 echo "$ac_t""no" 1>&6
11789 esac
11790 else
11791 echo "$ac_t""no" 1>&6
11796 #################################################
11797 # check for automount support
11798 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11799 echo "configure:11800: checking whether to use AUTOMOUNT" >&5
11800 # Check whether --with-automount or --without-automount was given.
11801 if test "${with_automount+set}" = set; then
11802 withval="$with_automount"
11803 case "$withval" in
11804 yes)
11805 echo "$ac_t""yes" 1>&6
11806 cat >> confdefs.h <<\EOF
11807 #define WITH_AUTOMOUNT 1
11812 echo "$ac_t""no" 1>&6
11814 esac
11815 else
11816 echo "$ac_t""no" 1>&6
11821 #################################################
11822 # check for smbmount support
11823 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11824 echo "configure:11825: checking whether to use SMBMOUNT" >&5
11825 # Check whether --with-smbmount or --without-smbmount was given.
11826 if test "${with_smbmount+set}" = set; then
11827 withval="$with_smbmount"
11828 case "$withval" in
11829 yes)
11830 case "$host_os" in
11831 *linux*)
11832 echo "$ac_t""yes" 1>&6
11833 cat >> confdefs.h <<\EOF
11834 #define WITH_SMBMOUNT 1
11837 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11840 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11842 esac
11845 echo "$ac_t""no" 1>&6
11846 MPROGS=
11848 esac
11849 else
11850 echo "$ac_t""no" 1>&6
11851 MPROGS=
11857 #################################################
11858 # check for a PAM password database
11859 with_pam_for_crypt=no
11860 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11861 echo "configure:11862: checking whether to use PAM password database" >&5
11862 # Check whether --with-pam or --without-pam was given.
11863 if test "${with_pam+set}" = set; then
11864 withval="$with_pam"
11865 case "$withval" in
11866 yes)
11867 echo "$ac_t""yes" 1>&6
11868 cat >> confdefs.h <<\EOF
11869 #define WITH_PAM 1
11872 LIBS="$LIBS -lpam"
11873 with_pam_for_crypt=yes
11876 echo "$ac_t""no" 1>&6
11878 esac
11879 else
11880 echo "$ac_t""no" 1>&6
11885 # we can't build a pam module if we don't have pam.
11886 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11887 echo "configure:11888: checking for pam_get_data in -lpam" >&5
11888 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11890 echo $ac_n "(cached) $ac_c" 1>&6
11891 else
11892 ac_save_LIBS="$LIBS"
11893 LIBS="-lpam $LIBS"
11894 cat > conftest.$ac_ext <<EOF
11895 #line 11896 "configure"
11896 #include "confdefs.h"
11897 /* Override any gcc2 internal prototype to avoid an error. */
11898 /* We use char because int might match the return type of a gcc2
11899 builtin and then its argument prototype would still apply. */
11900 char pam_get_data();
11902 int main() {
11903 pam_get_data()
11904 ; return 0; }
11906 if { (eval echo configure:11907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11907 rm -rf conftest*
11908 eval "ac_cv_lib_$ac_lib_var=yes"
11909 else
11910 echo "configure: failed program was:" >&5
11911 cat conftest.$ac_ext >&5
11912 rm -rf conftest*
11913 eval "ac_cv_lib_$ac_lib_var=no"
11915 rm -f conftest*
11916 LIBS="$ac_save_LIBS"
11919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11920 echo "$ac_t""yes" 1>&6
11921 cat >> confdefs.h <<\EOF
11922 #define HAVE_LIBPAM 1
11925 else
11926 echo "$ac_t""no" 1>&6
11930 #################################################
11931 # check for pam_smbpass support
11932 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11933 echo "configure:11934: checking whether to use pam_smbpass" >&5
11934 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11935 if test "${with_pam_smbpass+set}" = set; then
11936 withval="$with_pam_smbpass"
11937 case "$withval" in
11938 yes)
11939 echo "$ac_t""yes" 1>&6
11941 # Conditions under which pam_smbpass should not be built.
11943 if test x$PICFLAG = x; then
11944 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11945 PAM_MOD=""
11946 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11947 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11948 PAM_MOD=""
11949 else
11950 cat >> confdefs.h <<\EOF
11951 #define WITH_PAM_SMBPASS 1
11954 PAM_MOD="bin/pam_smbpass.so"
11958 echo "$ac_t""no" 1>&6
11960 esac
11961 else
11962 echo "$ac_t""no" 1>&6
11968 ###############################################
11969 # test for where we get crypt() from, but only
11970 # if not using PAM
11971 if test $with_pam_for_crypt = no; then
11972 for ac_func in crypt
11974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11975 echo "configure:11976: checking for $ac_func" >&5
11976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11977 echo $ac_n "(cached) $ac_c" 1>&6
11978 else
11979 cat > conftest.$ac_ext <<EOF
11980 #line 11981 "configure"
11981 #include "confdefs.h"
11982 /* System header to define __stub macros and hopefully few prototypes,
11983 which can conflict with char $ac_func(); below. */
11984 #include <assert.h>
11985 /* Override any gcc2 internal prototype to avoid an error. */
11986 /* We use char because int might match the return type of a gcc2
11987 builtin and then its argument prototype would still apply. */
11988 char $ac_func();
11990 int main() {
11992 /* The GNU C library defines this for functions which it implements
11993 to always fail with ENOSYS. Some functions are actually named
11994 something starting with __ and the normal name is an alias. */
11995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11996 choke me
11997 #else
11998 $ac_func();
11999 #endif
12001 ; return 0; }
12003 if { (eval echo configure:12004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12004 rm -rf conftest*
12005 eval "ac_cv_func_$ac_func=yes"
12006 else
12007 echo "configure: failed program was:" >&5
12008 cat conftest.$ac_ext >&5
12009 rm -rf conftest*
12010 eval "ac_cv_func_$ac_func=no"
12012 rm -f conftest*
12015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12016 echo "$ac_t""yes" 1>&6
12017 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12018 cat >> confdefs.h <<EOF
12019 #define $ac_tr_func 1
12022 else
12023 echo "$ac_t""no" 1>&6
12025 done
12027 if test x"$ac_cv_func_crypt" = x"no"; then
12028 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12029 echo "configure:12030: checking for crypt in -lcrypt" >&5
12030 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12031 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12032 echo $ac_n "(cached) $ac_c" 1>&6
12033 else
12034 ac_save_LIBS="$LIBS"
12035 LIBS="-lcrypt $LIBS"
12036 cat > conftest.$ac_ext <<EOF
12037 #line 12038 "configure"
12038 #include "confdefs.h"
12039 /* Override any gcc2 internal prototype to avoid an error. */
12040 /* We use char because int might match the return type of a gcc2
12041 builtin and then its argument prototype would still apply. */
12042 char crypt();
12044 int main() {
12045 crypt()
12046 ; return 0; }
12048 if { (eval echo configure:12049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12049 rm -rf conftest*
12050 eval "ac_cv_lib_$ac_lib_var=yes"
12051 else
12052 echo "configure: failed program was:" >&5
12053 cat conftest.$ac_ext >&5
12054 rm -rf conftest*
12055 eval "ac_cv_lib_$ac_lib_var=no"
12057 rm -f conftest*
12058 LIBS="$ac_save_LIBS"
12061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12062 echo "$ac_t""yes" 1>&6
12063 LIBS="$LIBS -lcrypt";
12064 cat >> confdefs.h <<\EOF
12065 #define HAVE_CRYPT 1
12068 else
12069 echo "$ac_t""no" 1>&6
12076 ## moved after the check for -lcrypt in order to
12077 ## ensure that the necessary libraries are included
12078 ## check checking for truncated salt. Wrapped by the
12079 ## $with_pam_for_crypt variable as above --jerry
12081 if test $with_pam_for_crypt = no; then
12082 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12083 echo "configure:12084: checking for a crypt that needs truncated salt" >&5
12084 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12085 echo $ac_n "(cached) $ac_c" 1>&6
12086 else
12088 if test "$cross_compiling" = yes; then
12089 samba_cv_HAVE_TRUNCATED_SALT=cross
12090 else
12091 cat > conftest.$ac_ext <<EOF
12092 #line 12093 "configure"
12093 #include "confdefs.h"
12094 #include "${srcdir-.}/tests/crypttest.c"
12096 if { (eval echo configure:12097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12097 then
12098 samba_cv_HAVE_TRUNCATED_SALT=no
12099 else
12100 echo "configure: failed program was:" >&5
12101 cat conftest.$ac_ext >&5
12102 rm -fr conftest*
12103 samba_cv_HAVE_TRUNCATED_SALT=yes
12105 rm -fr conftest*
12110 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12111 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12112 cat >> confdefs.h <<\EOF
12113 #define HAVE_TRUNCATED_SALT 1
12119 ########################################################################################
12121 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12123 ########################################################################################
12125 ## set the with_smbpasswd_sam as the default
12126 with_smbpasswd_sam=yes
12130 #################################################
12131 # check for a TDB password database
12132 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12133 echo "configure:12134: checking whether to use TDB SAM database" >&5
12134 # Check whether --with-tdbsam or --without-tdbsam was given.
12135 if test "${with_tdbsam+set}" = set; then
12136 withval="$with_tdbsam"
12137 case "$withval" in
12138 yes)
12139 echo "$ac_t""yes" 1>&6
12140 cat >> confdefs.h <<\EOF
12141 #define WITH_TDB_SAM 1
12144 with_smbpasswd_sam=no
12147 echo "$ac_t""no" 1>&6
12149 esac
12150 else
12151 echo "$ac_t""no" 1>&6
12156 #################################################
12157 # check for a LDAP password database
12158 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12159 echo "configure:12160: checking whether to use LDAP SAM database" >&5
12160 # Check whether --with-ldapsam or --without-ldapsam was given.
12161 if test "${with_ldapsam+set}" = set; then
12162 withval="$with_ldapsam"
12163 case "$withval" in
12164 yes)
12165 echo "$ac_t""yes" 1>&6
12166 cat >> confdefs.h <<\EOF
12167 #define WITH_LDAP_SAM 1
12170 LIBS="-lldap $LIBS"
12171 echo $ac_n "checking for ber_bvfree in -llber""... $ac_c" 1>&6
12172 echo "configure:12173: checking for ber_bvfree in -llber" >&5
12173 ac_lib_var=`echo lber'_'ber_bvfree | sed 'y%./+-%__p_%'`
12174 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12175 echo $ac_n "(cached) $ac_c" 1>&6
12176 else
12177 ac_save_LIBS="$LIBS"
12178 LIBS="-llber $LIBS"
12179 cat > conftest.$ac_ext <<EOF
12180 #line 12181 "configure"
12181 #include "confdefs.h"
12182 /* Override any gcc2 internal prototype to avoid an error. */
12183 /* We use char because int might match the return type of a gcc2
12184 builtin and then its argument prototype would still apply. */
12185 char ber_bvfree();
12187 int main() {
12188 ber_bvfree()
12189 ; return 0; }
12191 if { (eval echo configure:12192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12192 rm -rf conftest*
12193 eval "ac_cv_lib_$ac_lib_var=yes"
12194 else
12195 echo "configure: failed program was:" >&5
12196 cat conftest.$ac_ext >&5
12197 rm -rf conftest*
12198 eval "ac_cv_lib_$ac_lib_var=no"
12200 rm -f conftest*
12201 LIBS="$ac_save_LIBS"
12204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12205 echo "$ac_t""yes" 1>&6
12206 LIBS="$LIBS -llber"
12207 else
12208 echo "$ac_t""no" 1>&6
12211 LIBS="-lresolv $LIBS"
12212 for ac_func in ldap_start_tls_s
12214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12215 echo "configure:12216: checking for $ac_func" >&5
12216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12217 echo $ac_n "(cached) $ac_c" 1>&6
12218 else
12219 cat > conftest.$ac_ext <<EOF
12220 #line 12221 "configure"
12221 #include "confdefs.h"
12222 /* System header to define __stub macros and hopefully few prototypes,
12223 which can conflict with char $ac_func(); below. */
12224 #include <assert.h>
12225 /* Override any gcc2 internal prototype to avoid an error. */
12226 /* We use char because int might match the return type of a gcc2
12227 builtin and then its argument prototype would still apply. */
12228 char $ac_func();
12230 int main() {
12232 /* The GNU C library defines this for functions which it implements
12233 to always fail with ENOSYS. Some functions are actually named
12234 something starting with __ and the normal name is an alias. */
12235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12236 choke me
12237 #else
12238 $ac_func();
12239 #endif
12241 ; return 0; }
12243 if { (eval echo configure:12244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12244 rm -rf conftest*
12245 eval "ac_cv_func_$ac_func=yes"
12246 else
12247 echo "configure: failed program was:" >&5
12248 cat conftest.$ac_ext >&5
12249 rm -rf conftest*
12250 eval "ac_cv_func_$ac_func=no"
12252 rm -f conftest*
12255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12256 echo "$ac_t""yes" 1>&6
12257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12258 cat >> confdefs.h <<EOF
12259 #define $ac_tr_func 1
12262 else
12263 echo "$ac_t""no" 1>&6
12265 done
12267 with_smbpasswd_sam=no
12270 echo "$ac_t""no" 1>&6
12272 esac
12273 else
12274 echo "$ac_t""no" 1>&6
12279 #################################################
12280 # check for a NISPLUS password database
12281 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12282 echo "configure:12283: checking whether to use NISPLUS SAM database" >&5
12283 # Check whether --with-nisplussam or --without-nisplussam was given.
12284 if test "${with_nisplussam+set}" = set; then
12285 withval="$with_nisplussam"
12286 case "$withval" in
12287 yes)
12288 echo "$ac_t""yes" 1>&6
12289 cat >> confdefs.h <<\EOF
12290 #define WITH_NISPLUS_SAM 1
12293 with_smbpasswd_sam=no
12296 echo "$ac_t""no" 1>&6
12298 esac
12299 else
12300 echo "$ac_t""no" 1>&6
12305 ################################################
12306 # This test should come last because the
12307 # smbpasswd SAM is only used if another format
12308 # has not been defined
12309 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12310 echo "configure:12311: checking whether to use traditional smbpasswd file" >&5
12311 if test $with_smbpasswd_sam = yes; then
12312 echo "$ac_t""yes" 1>&6
12313 cat >> confdefs.h <<\EOF
12314 #define WITH_SMBPASSWD_SAM 1
12317 PDBEDIT=""
12318 else
12319 echo "$ac_t""no" 1>&6
12320 PDBEDIT=bin/pdbedit
12323 ########################################################################################
12325 ## END OF TESTS FOR SAM BACKENDS.
12327 ########################################################################################
12329 #################################################
12330 # check for a NISPLUS_HOME support
12331 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12332 echo "configure:12333: checking whether to use NISPLUS_HOME" >&5
12333 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12334 if test "${with_nisplus_home+set}" = set; then
12335 withval="$with_nisplus_home"
12336 case "$withval" in
12337 yes)
12338 echo "$ac_t""yes" 1>&6
12339 cat >> confdefs.h <<\EOF
12340 #define WITH_NISPLUS_HOME 1
12345 echo "$ac_t""no" 1>&6
12347 esac
12348 else
12349 echo "$ac_t""no" 1>&6
12354 #################################################
12355 # check for the secure socket layer
12356 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12357 echo "configure:12358: checking whether to use SSL" >&5
12358 # Check whether --with-ssl or --without-ssl was given.
12359 if test "${with_ssl+set}" = set; then
12360 withval="$with_ssl"
12361 case "$withval" in
12362 yes)
12363 echo "$ac_t""yes" 1>&6
12364 cat >> confdefs.h <<\EOF
12365 #define WITH_SSL 1
12368 withval="/usr/local/ssl" # default
12370 if test "${with_sslinc+set}" = set; then
12372 withval="$with_sslinc"
12373 case "$withval" in
12374 yes|no)
12375 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12376 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12379 CFLAGS="-I${withval} $CFLAGS"
12381 esac
12383 else
12385 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12389 if test "${with_ssllib+set}" = set; then
12391 withval="$with_ssllib"
12392 case "$withval" in
12393 yes|no)
12394 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12395 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12398 LDFLAGS="-L${withval}/lib $LDFLAGS"
12400 esac
12402 else
12404 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12408 LIBS="-lssl -lcrypto $LIBS"
12410 # if test ! -d ${withval}; then
12411 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12412 # exit 1
12413 # fi
12415 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12419 echo "$ac_t""no" 1>&6
12421 esac
12422 else
12423 echo "$ac_t""no" 1>&6
12428 #################################################
12429 # check for syslog logging
12430 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12431 echo "configure:12432: checking whether to use syslog logging" >&5
12432 # Check whether --with-syslog or --without-syslog was given.
12433 if test "${with_syslog+set}" = set; then
12434 withval="$with_syslog"
12435 case "$withval" in
12436 yes)
12437 echo "$ac_t""yes" 1>&6
12438 cat >> confdefs.h <<\EOF
12439 #define WITH_SYSLOG 1
12444 echo "$ac_t""no" 1>&6
12446 esac
12447 else
12448 echo "$ac_t""no" 1>&6
12453 #################################################
12454 # check for a shared memory profiling support
12455 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12456 echo "configure:12457: checking whether to use profiling" >&5
12457 # Check whether --with-profiling-data or --without-profiling-data was given.
12458 if test "${with_profiling_data+set}" = set; then
12459 withval="$with_profiling_data"
12460 case "$withval" in
12461 yes)
12462 echo "$ac_t""yes" 1>&6
12463 cat >> confdefs.h <<\EOF
12464 #define WITH_PROFILE 1
12469 echo "$ac_t""no" 1>&6
12471 esac
12472 else
12473 echo "$ac_t""no" 1>&6
12479 #################################################
12480 # check for experimental disk-quotas support
12481 QUOTAOBJS=smbd/noquotas.o
12483 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12484 echo "configure:12485: checking whether to support disk-quotas" >&5
12485 # Check whether --with-quotas or --without-quotas was given.
12486 if test "${with_quotas+set}" = set; then
12487 withval="$with_quotas"
12488 case "$withval" in
12489 yes)
12490 echo "$ac_t""yes" 1>&6
12491 QUOTAOBJS=smbd/quotas.o
12492 case "$host_os" in
12493 *linux*)
12494 # Check for kernel 2.4.x quota braindamage...
12495 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12496 echo "configure:12497: checking for linux 2.4.x quota braindamage.." >&5
12497 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12498 echo $ac_n "(cached) $ac_c" 1>&6
12499 else
12501 cat > conftest.$ac_ext <<EOF
12502 #line 12503 "configure"
12503 #include "confdefs.h"
12504 #include <stdio.h>
12505 #include <sys/types.h>
12506 #include <asm/types.h>
12507 #include <linux/quota.h>
12508 #include <mntent.h>
12509 #include <linux/unistd.h>
12510 int main() {
12511 struct mem_dqblk D;
12512 ; return 0; }
12514 if { (eval echo configure:12515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12515 rm -rf conftest*
12516 samba_cv_linux_2_4_quota_braindamage=yes
12517 else
12518 echo "configure: failed program was:" >&5
12519 cat conftest.$ac_ext >&5
12520 rm -rf conftest*
12521 samba_cv_linux_2_4_quota_braindamage=no
12523 rm -f conftest*
12526 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12527 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
12528 cat >> confdefs.h <<\EOF
12529 #define LINUX_QUOTAS_2 1
12532 else
12533 cat >> confdefs.h <<\EOF
12534 #define LINUX_QUOTAS_1 1
12541 esac
12544 echo "$ac_t""no" 1>&6
12546 esac
12547 else
12548 echo "$ac_t""no" 1>&6
12554 #################################################
12555 # check for experimental utmp accounting
12557 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12558 echo "configure:12559: checking whether to support utmp accounting" >&5
12559 # Check whether --with-utmp or --without-utmp was given.
12560 if test "${with_utmp+set}" = set; then
12561 withval="$with_utmp"
12562 case "$withval" in
12563 yes)
12564 echo "$ac_t""yes" 1>&6
12565 cat >> confdefs.h <<\EOF
12566 #define WITH_UTMP 1
12571 echo "$ac_t""no" 1>&6
12573 esac
12574 else
12575 echo "$ac_t""no" 1>&6
12580 #################################################
12581 # check for MS Dfs support
12583 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12584 echo "configure:12585: checking whether to support Microsoft Dfs" >&5
12585 # Check whether --with-msdfs or --without-msdfs was given.
12586 if test "${with_msdfs+set}" = set; then
12587 withval="$with_msdfs"
12588 case "$withval" in
12589 yes)
12590 echo "$ac_t""yes" 1>&6
12591 cat >> confdefs.h <<\EOF
12592 #define WITH_MSDFS 1
12597 echo "$ac_t""no" 1>&6
12599 esac
12600 else
12601 echo "$ac_t""no" 1>&6
12606 #################################################
12607 # should we build libsmbclient?
12609 LIBSMBCLIENT_SHARED=
12610 LIBSMBCLIENT=
12611 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12612 echo "configure:12613: checking whether to build the libsmbclient shared library" >&5
12613 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12614 if test "${with_libsmbclient+set}" = set; then
12615 withval="$with_libsmbclient"
12616 case "$withval" in
12617 yes)
12618 if test $BLDSHARED = true; then
12619 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
12620 LIBSMBCLIENT=libsmbclient
12621 echo "$ac_t""yes" 1>&6
12622 else
12623 echo "$ac_t""no shared library support" 1>&6
12627 echo "$ac_t""no" 1>&6
12629 esac
12630 else
12631 echo "$ac_t""no" 1>&6
12636 #################################################
12637 # these tests are taken from the GNU fileutils package
12638 echo "checking how to get filesystem space usage" 1>&6
12639 echo "configure:12640: checking how to get filesystem space usage" >&5
12640 space=no
12642 # Test for statvfs64.
12643 if test $space = no; then
12644 # SVR4
12645 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12646 echo "configure:12647: checking statvfs64 function (SVR4)" >&5
12647 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12648 echo $ac_n "(cached) $ac_c" 1>&6
12649 else
12650 if test "$cross_compiling" = yes; then
12651 fu_cv_sys_stat_statvfs64=cross
12652 else
12653 cat > conftest.$ac_ext <<EOF
12654 #line 12655 "configure"
12655 #include "confdefs.h"
12657 #if defined(HAVE_UNISTD_H)
12658 #include <unistd.h>
12659 #endif
12660 #include <sys/types.h>
12661 #include <sys/statvfs.h>
12662 main ()
12664 struct statvfs64 fsd;
12665 exit (statvfs64 (".", &fsd));
12668 if { (eval echo configure:12669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12669 then
12670 fu_cv_sys_stat_statvfs64=yes
12671 else
12672 echo "configure: failed program was:" >&5
12673 cat conftest.$ac_ext >&5
12674 rm -fr conftest*
12675 fu_cv_sys_stat_statvfs64=no
12677 rm -fr conftest*
12682 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12683 if test $fu_cv_sys_stat_statvfs64 = yes; then
12684 space=yes
12685 cat >> confdefs.h <<\EOF
12686 #define STAT_STATVFS64 1
12692 # Perform only the link test since it seems there are no variants of the
12693 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12694 # because that got a false positive on SCO OSR5. Adding the declaration
12695 # of a `struct statvfs' causes this test to fail (as it should) on such
12696 # systems. That system is reported to work fine with STAT_STATFS4 which
12697 # is what it gets when this test fails.
12698 if test $space = no; then
12699 # SVR4
12700 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12701 echo "configure:12702: checking statvfs function (SVR4)" >&5
12702 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12703 echo $ac_n "(cached) $ac_c" 1>&6
12704 else
12705 cat > conftest.$ac_ext <<EOF
12706 #line 12707 "configure"
12707 #include "confdefs.h"
12708 #include <sys/types.h>
12709 #include <sys/statvfs.h>
12710 int main() {
12711 struct statvfs fsd; statvfs (0, &fsd);
12712 ; return 0; }
12714 if { (eval echo configure:12715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12715 rm -rf conftest*
12716 fu_cv_sys_stat_statvfs=yes
12717 else
12718 echo "configure: failed program was:" >&5
12719 cat conftest.$ac_ext >&5
12720 rm -rf conftest*
12721 fu_cv_sys_stat_statvfs=no
12723 rm -f conftest*
12726 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12727 if test $fu_cv_sys_stat_statvfs = yes; then
12728 space=yes
12729 cat >> confdefs.h <<\EOF
12730 #define STAT_STATVFS 1
12736 if test $space = no; then
12737 # DEC Alpha running OSF/1
12738 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12739 echo "configure:12740: checking for 3-argument statfs function (DEC OSF/1)" >&5
12740 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12741 echo $ac_n "(cached) $ac_c" 1>&6
12742 else
12743 if test "$cross_compiling" = yes; then
12744 fu_cv_sys_stat_statfs3_osf1=no
12745 else
12746 cat > conftest.$ac_ext <<EOF
12747 #line 12748 "configure"
12748 #include "confdefs.h"
12750 #include <sys/param.h>
12751 #include <sys/types.h>
12752 #include <sys/mount.h>
12753 main ()
12755 struct statfs fsd;
12756 fsd.f_fsize = 0;
12757 exit (statfs (".", &fsd, sizeof (struct statfs)));
12760 if { (eval echo configure:12761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12761 then
12762 fu_cv_sys_stat_statfs3_osf1=yes
12763 else
12764 echo "configure: failed program was:" >&5
12765 cat conftest.$ac_ext >&5
12766 rm -fr conftest*
12767 fu_cv_sys_stat_statfs3_osf1=no
12769 rm -fr conftest*
12774 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12775 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12776 space=yes
12777 cat >> confdefs.h <<\EOF
12778 #define STAT_STATFS3_OSF1 1
12784 if test $space = no; then
12785 # AIX
12786 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12787 echo "configure:12788: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12788 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12789 echo $ac_n "(cached) $ac_c" 1>&6
12790 else
12791 if test "$cross_compiling" = yes; then
12792 fu_cv_sys_stat_statfs2_bsize=no
12793 else
12794 cat > conftest.$ac_ext <<EOF
12795 #line 12796 "configure"
12796 #include "confdefs.h"
12798 #ifdef HAVE_SYS_PARAM_H
12799 #include <sys/param.h>
12800 #endif
12801 #ifdef HAVE_SYS_MOUNT_H
12802 #include <sys/mount.h>
12803 #endif
12804 #ifdef HAVE_SYS_VFS_H
12805 #include <sys/vfs.h>
12806 #endif
12807 main ()
12809 struct statfs fsd;
12810 fsd.f_bsize = 0;
12811 exit (statfs (".", &fsd));
12814 if { (eval echo configure:12815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12815 then
12816 fu_cv_sys_stat_statfs2_bsize=yes
12817 else
12818 echo "configure: failed program was:" >&5
12819 cat conftest.$ac_ext >&5
12820 rm -fr conftest*
12821 fu_cv_sys_stat_statfs2_bsize=no
12823 rm -fr conftest*
12828 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12829 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12830 space=yes
12831 cat >> confdefs.h <<\EOF
12832 #define STAT_STATFS2_BSIZE 1
12838 if test $space = no; then
12839 # SVR3
12840 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12841 echo "configure:12842: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12842 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12843 echo $ac_n "(cached) $ac_c" 1>&6
12844 else
12845 if test "$cross_compiling" = yes; then
12846 fu_cv_sys_stat_statfs4=no
12847 else
12848 cat > conftest.$ac_ext <<EOF
12849 #line 12850 "configure"
12850 #include "confdefs.h"
12851 #include <sys/types.h>
12852 #include <sys/statfs.h>
12853 main ()
12855 struct statfs fsd;
12856 exit (statfs (".", &fsd, sizeof fsd, 0));
12859 if { (eval echo configure:12860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12860 then
12861 fu_cv_sys_stat_statfs4=yes
12862 else
12863 echo "configure: failed program was:" >&5
12864 cat conftest.$ac_ext >&5
12865 rm -fr conftest*
12866 fu_cv_sys_stat_statfs4=no
12868 rm -fr conftest*
12873 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12874 if test $fu_cv_sys_stat_statfs4 = yes; then
12875 space=yes
12876 cat >> confdefs.h <<\EOF
12877 #define STAT_STATFS4 1
12883 if test $space = no; then
12884 # 4.4BSD and NetBSD
12885 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12886 echo "configure:12887: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12887 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12888 echo $ac_n "(cached) $ac_c" 1>&6
12889 else
12890 if test "$cross_compiling" = yes; then
12891 fu_cv_sys_stat_statfs2_fsize=no
12892 else
12893 cat > conftest.$ac_ext <<EOF
12894 #line 12895 "configure"
12895 #include "confdefs.h"
12896 #include <sys/types.h>
12897 #ifdef HAVE_SYS_PARAM_H
12898 #include <sys/param.h>
12899 #endif
12900 #ifdef HAVE_SYS_MOUNT_H
12901 #include <sys/mount.h>
12902 #endif
12903 main ()
12905 struct statfs fsd;
12906 fsd.f_fsize = 0;
12907 exit (statfs (".", &fsd));
12910 if { (eval echo configure:12911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12911 then
12912 fu_cv_sys_stat_statfs2_fsize=yes
12913 else
12914 echo "configure: failed program was:" >&5
12915 cat conftest.$ac_ext >&5
12916 rm -fr conftest*
12917 fu_cv_sys_stat_statfs2_fsize=no
12919 rm -fr conftest*
12924 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12925 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12926 space=yes
12927 cat >> confdefs.h <<\EOF
12928 #define STAT_STATFS2_FSIZE 1
12934 if test $space = no; then
12935 # Ultrix
12936 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12937 echo "configure:12938: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12938 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12939 echo $ac_n "(cached) $ac_c" 1>&6
12940 else
12941 if test "$cross_compiling" = yes; then
12942 fu_cv_sys_stat_fs_data=no
12943 else
12944 cat > conftest.$ac_ext <<EOF
12945 #line 12946 "configure"
12946 #include "confdefs.h"
12947 #include <sys/types.h>
12948 #ifdef HAVE_SYS_PARAM_H
12949 #include <sys/param.h>
12950 #endif
12951 #ifdef HAVE_SYS_MOUNT_H
12952 #include <sys/mount.h>
12953 #endif
12954 #ifdef HAVE_SYS_FS_TYPES_H
12955 #include <sys/fs_types.h>
12956 #endif
12957 main ()
12959 struct fs_data fsd;
12960 /* Ultrix's statfs returns 1 for success,
12961 0 for not mounted, -1 for failure. */
12962 exit (statfs (".", &fsd) != 1);
12965 if { (eval echo configure:12966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12966 then
12967 fu_cv_sys_stat_fs_data=yes
12968 else
12969 echo "configure: failed program was:" >&5
12970 cat conftest.$ac_ext >&5
12971 rm -fr conftest*
12972 fu_cv_sys_stat_fs_data=no
12974 rm -fr conftest*
12979 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12980 if test $fu_cv_sys_stat_fs_data = yes; then
12981 space=yes
12982 cat >> confdefs.h <<\EOF
12983 #define STAT_STATFS2_FS_DATA 1
12990 # As a gating factor for large file support, in order to
12991 # use <4GB files we must have the following minimal support
12992 # available.
12993 # long long, and a 64 bit off_t or off64_t.
12994 # If we don't have all of these then disable large
12995 # file support.
12997 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12998 echo "configure:12999: checking if large file support can be enabled" >&5
12999 cat > conftest.$ac_ext <<EOF
13000 #line 13001 "configure"
13001 #include "confdefs.h"
13003 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13004 #include <sys/types.h>
13005 #else
13006 __COMPILE_ERROR_
13007 #endif
13009 int main() {
13010 int i
13011 ; return 0; }
13013 if { (eval echo configure:13014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13014 rm -rf conftest*
13015 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13016 else
13017 echo "configure: failed program was:" >&5
13018 cat conftest.$ac_ext >&5
13019 rm -rf conftest*
13020 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13022 rm -f conftest*
13023 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13024 echo "$ac_t""yes" 1>&6
13025 cat >> confdefs.h <<\EOF
13026 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13029 else
13030 echo "$ac_t""no" 1>&6
13033 # Check whether --with-spinlocks or --without-spinlocks was given.
13034 if test "${with_spinlocks+set}" = set; then
13035 withval="$with_spinlocks"
13039 if test "x$with_spinlocks" = "xyes"; then
13040 cat >> confdefs.h <<\EOF
13041 #define USE_SPINLOCKS 1
13045 case "$host_cpu" in
13046 sparc)
13047 cat >> confdefs.h <<\EOF
13048 #define SPARC_SPINLOCKS 1
13053 i386|i486|i586|i686)
13054 cat >> confdefs.h <<\EOF
13055 #define INTEL_SPINLOCKS 1
13060 mips)
13061 cat >> confdefs.h <<\EOF
13062 #define MIPS_SPINLOCKS 1
13067 powerpc)
13068 cat >> confdefs.h <<\EOF
13069 #define POWERPC_SPINLOCKS 1
13073 esac
13076 #################################################
13077 # check for ACL support
13079 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13080 echo "configure:13081: checking whether to support ACLs" >&5
13081 # Check whether --with-acl-support or --without-acl-support was given.
13082 if test "${with_acl_support+set}" = set; then
13083 withval="$with_acl_support"
13084 case "$withval" in
13085 yes)
13087 case "$host_os" in
13088 *sysv5*)
13089 echo "$ac_t""Using UnixWare ACLs" 1>&6
13090 cat >> confdefs.h <<\EOF
13091 #define HAVE_UNIXWARE_ACLS 1
13095 *solaris*)
13096 echo "$ac_t""Using solaris ACLs" 1>&6
13097 cat >> confdefs.h <<\EOF
13098 #define HAVE_SOLARIS_ACLS 1
13102 *hpux*)
13103 echo "$ac_t""Using HPUX ACLs" 1>&6
13104 cat >> confdefs.h <<\EOF
13105 #define HAVE_HPUX_ACLS 1
13109 *irix*)
13110 echo "$ac_t""Using IRIX ACLs" 1>&6
13111 cat >> confdefs.h <<\EOF
13112 #define HAVE_IRIX_ACLS 1
13116 *aix*)
13117 echo "$ac_t""Using AIX ACLs" 1>&6
13118 cat >> confdefs.h <<\EOF
13119 #define HAVE_AIX_ACLS 1
13123 *osf*)
13124 echo "$ac_t""Using Tru64 ACLs" 1>&6
13125 cat >> confdefs.h <<\EOF
13126 #define HAVE_TRU64_ACLS 1
13129 LIBS="$LIBS -lpacl"
13132 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13133 echo "configure:13134: checking for acl_get_file in -lacl" >&5
13134 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13136 echo $ac_n "(cached) $ac_c" 1>&6
13137 else
13138 ac_save_LIBS="$LIBS"
13139 LIBS="-lacl $LIBS"
13140 cat > conftest.$ac_ext <<EOF
13141 #line 13142 "configure"
13142 #include "confdefs.h"
13143 /* Override any gcc2 internal prototype to avoid an error. */
13144 /* We use char because int might match the return type of a gcc2
13145 builtin and then its argument prototype would still apply. */
13146 char acl_get_file();
13148 int main() {
13149 acl_get_file()
13150 ; return 0; }
13152 if { (eval echo configure:13153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13153 rm -rf conftest*
13154 eval "ac_cv_lib_$ac_lib_var=yes"
13155 else
13156 echo "configure: failed program was:" >&5
13157 cat conftest.$ac_ext >&5
13158 rm -rf conftest*
13159 eval "ac_cv_lib_$ac_lib_var=no"
13161 rm -f conftest*
13162 LIBS="$ac_save_LIBS"
13165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13166 echo "$ac_t""yes" 1>&6
13167 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13168 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13169 cat >> confdefs.h <<EOF
13170 #define $ac_tr_lib 1
13173 LIBS="-lacl $LIBS"
13175 else
13176 echo "$ac_t""no" 1>&6
13179 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13180 echo "configure:13181: checking for ACL support" >&5
13181 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13182 echo $ac_n "(cached) $ac_c" 1>&6
13183 else
13185 cat > conftest.$ac_ext <<EOF
13186 #line 13187 "configure"
13187 #include "confdefs.h"
13188 #include <sys/types.h>
13189 #include <sys/acl.h>
13190 int main() {
13191 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13192 ; return 0; }
13194 if { (eval echo configure:13195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13195 rm -rf conftest*
13196 samba_cv_HAVE_POSIX_ACLS=yes
13197 else
13198 echo "configure: failed program was:" >&5
13199 cat conftest.$ac_ext >&5
13200 rm -rf conftest*
13201 samba_cv_HAVE_POSIX_ACLS=no
13203 rm -f conftest*
13206 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13207 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13208 echo "$ac_t""Using posix ACLs" 1>&6
13209 cat >> confdefs.h <<\EOF
13210 #define HAVE_POSIX_ACLS 1
13213 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13214 echo "configure:13215: checking for acl_get_perm_np" >&5
13215 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13216 echo $ac_n "(cached) $ac_c" 1>&6
13217 else
13219 cat > conftest.$ac_ext <<EOF
13220 #line 13221 "configure"
13221 #include "confdefs.h"
13222 #include <sys/types.h>
13223 #include <sys/acl.h>
13224 int main() {
13225 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13226 ; return 0; }
13228 if { (eval echo configure:13229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13229 rm -rf conftest*
13230 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13231 else
13232 echo "configure: failed program was:" >&5
13233 cat conftest.$ac_ext >&5
13234 rm -rf conftest*
13235 samba_cv_HAVE_ACL_GET_PERM_NP=no
13237 rm -f conftest*
13240 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13241 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13242 cat >> confdefs.h <<\EOF
13243 #define HAVE_ACL_GET_PERM_NP 1
13249 esac
13252 echo "$ac_t""no" 1>&6
13253 cat >> confdefs.h <<\EOF
13254 #define HAVE_NO_ACLS 1
13258 esac
13259 else
13260 cat >> confdefs.h <<\EOF
13261 #define HAVE_NO_ACLS 1
13264 echo "$ac_t""no" 1>&6
13269 #################################################
13270 # check for the historical SAMBA installation
13272 if test "x$prefix" = xNONE -a "$sbindir" = "\${exec_prefix}/sbin"; then
13273 # Put all binaries under the /usr/local/samba/bin directory.
13274 sbindir="$bindir"
13277 #################################################
13278 # Check whether winbind is supported on this platform. If so we need to
13279 # build and install client programs (WINBIND_TARGETS), sbin programs
13280 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13282 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13283 echo "configure:13284: checking whether to build winbind" >&5
13285 # Initially, the value of $host_os decides whether winbind is supported
13287 case "$host_os" in
13288 *linux*|*irix*)
13289 HAVE_WINBIND=yes
13291 *solaris*)
13292 HAVE_WINBIND=yes
13293 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13294 WINBIND_NSS_EXTRA_LIBS="-lsocket"
13296 *hpux11*)
13297 HAVE_WINBIND=yes
13298 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13300 *aix4*)
13301 HAVE_WINBIND=yes
13304 HAVE_WINBIND=no
13305 winbind_no_reason=", unsupported on $host_os"
13307 esac
13309 # Check the setting of --with-winbindd
13311 # Check whether --with-winbind or --without-winbind was given.
13312 if test "${with_winbind+set}" = set; then
13313 withval="$with_winbind"
13315 case "$withval" in
13316 yes)
13317 HAVE_WINBIND=yes
13320 HAVE_WINBIND=no
13321 winbind_reason=""
13323 esac
13327 # We need unix domain sockets for winbind
13329 if test x"$HAVE_WINBIND" = x"yes"; then
13330 if test x"$samba_cv_unixsocket" = x"no"; then
13331 winbind_no_reason=", no unix domain socket support on $host_os"
13332 HAVE_WINBIND=no
13336 # Display test results
13338 if test x"$HAVE_WINBIND" = x"yes"; then
13340 echo "$ac_t""yes" 1>&6
13342 WINBIND_TARGETS="bin/wbinfo"
13343 WINBIND_STARGETS="bin/winbindd"
13344 case "$host_os" in
13345 *irix*)
13346 WINBIND_LTARGETS="nsswitch/libns_winbind.so"
13349 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13351 esac
13354 case "$with_pam" in
13355 yes)
13356 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13358 esac
13359 else
13360 echo "$ac_t""no$winbind_no_reason" 1>&6
13362 WINBIND_TARGETS=""
13363 WINBIND_STARGETS=""
13364 WINBIND_LTARGETS=""
13365 WINBIND_PAM_TARGETS=""
13368 #################################################
13369 # check for a for inclusion of winbindd_pam_auth_crap
13370 echo $ac_n "checking whether to include challenge/response check in wbinfo""... $ac_c" 1>&6
13371 echo "configure:13372: checking whether to include challenge/response check in wbinfo" >&5
13372 # Check whether --with-auth-crap or --without-auth-crap was given.
13373 if test "${with_auth_crap+set}" = set; then
13374 withval="$with_auth_crap"
13375 case "$withval" in
13376 yes)
13377 echo "$ac_t""yes" 1>&6
13378 cat >> confdefs.h <<\EOF
13379 #define WITH_WINBIND_AUTH_CHALLENGE 1
13384 echo "$ac_t""no" 1>&6
13386 esac
13387 else
13388 echo "$ac_t""no" 1>&6
13393 # Check for FreeBSD problem with getgroups
13394 # It returns EGID too many times in the list of groups
13395 # and causes a security problem
13396 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
13397 echo "configure:13398: checking whether or not getgroups returns EGID too many times" >&5
13398 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
13399 echo $ac_n "(cached) $ac_c" 1>&6
13400 else
13401 if test "$cross_compiling" = yes; then
13402 samba_cv_have_getgroups_too_many_egids=cross
13403 else
13404 cat > conftest.$ac_ext <<EOF
13405 #line 13406 "configure"
13406 #include "confdefs.h"
13408 #include <sys/types.h>
13409 #include <stdio.h>
13411 int main(int argc, char *argv[])
13413 gid_t groups[10];
13414 int n = 10;
13416 n = getgroups(n, &groups);
13417 /* Could actually pass back the number of EGIDs there ... */
13418 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
13421 if { (eval echo configure:13422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13422 then
13423 samba_cv_have_getgroups_too_many_egids=no
13424 else
13425 echo "configure: failed program was:" >&5
13426 cat conftest.$ac_ext >&5
13427 rm -fr conftest*
13428 samba_cv_have_getgroups_too_many_egids=yes
13430 rm -fr conftest*
13435 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
13436 if test x"$samba_cv_have_getgroups_too_many_egids" = x"yes"; then
13437 cat >> confdefs.h <<\EOF
13438 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
13443 # Substitution time!
13452 # Solaris has some extra fields in struct passwd that need to be
13453 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13454 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13455 # this.
13457 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13458 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13459 # [#include <pwd.h>])
13461 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13462 echo "configure:13463: checking whether struct passwd has pw_comment" >&5
13463 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13464 echo $ac_n "(cached) $ac_c" 1>&6
13465 else
13467 cat > conftest.$ac_ext <<EOF
13468 #line 13469 "configure"
13469 #include "confdefs.h"
13470 #include <pwd.h>
13471 int main() {
13472 struct passwd p; p.pw_comment;
13473 ; return 0; }
13475 if { (eval echo configure:13476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13476 rm -rf conftest*
13477 samba_cv_passwd_pw_comment=yes
13478 else
13479 echo "configure: failed program was:" >&5
13480 cat conftest.$ac_ext >&5
13481 rm -rf conftest*
13482 samba_cv_passwd_pw_comment=no
13484 rm -f conftest*
13487 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13488 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
13489 cat >> confdefs.h <<\EOF
13490 #define HAVE_PASSWD_PW_COMMENT 1
13495 #AC_CHECK_MEMBER(struct passwd.pw_age,
13496 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13497 # [#include <pwd.h>])
13499 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13500 echo "configure:13501: checking whether struct passwd has pw_age" >&5
13501 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13502 echo $ac_n "(cached) $ac_c" 1>&6
13503 else
13505 cat > conftest.$ac_ext <<EOF
13506 #line 13507 "configure"
13507 #include "confdefs.h"
13508 #include <pwd.h>
13509 int main() {
13510 struct passwd p; p.pw_age;
13511 ; return 0; }
13513 if { (eval echo configure:13514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13514 rm -rf conftest*
13515 samba_cv_passwd_pw_age=yes
13516 else
13517 echo "configure: failed program was:" >&5
13518 cat conftest.$ac_ext >&5
13519 rm -rf conftest*
13520 samba_cv_passwd_pw_age=no
13522 rm -f conftest*
13525 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13526 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
13527 cat >> confdefs.h <<\EOF
13528 #define HAVE_PASSWD_PW_AGE 1
13533 #################################################
13534 # Check to see if we should use the included popt
13536 # Check whether --with-included-popt or --without-included-popt was given.
13537 if test "${with_included_popt+set}" = set; then
13538 withval="$with_included_popt"
13540 case "$withval" in
13541 yes)
13542 INCLUDED_POPT=yes
13545 INCLUDED_POPT=no
13547 esac
13550 if test x"$INCLUDED_POPT" != x"yes"; then
13551 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13552 echo "configure:13553: checking for poptGetContext in -lpopt" >&5
13553 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13554 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13555 echo $ac_n "(cached) $ac_c" 1>&6
13556 else
13557 ac_save_LIBS="$LIBS"
13558 LIBS="-lpopt $LIBS"
13559 cat > conftest.$ac_ext <<EOF
13560 #line 13561 "configure"
13561 #include "confdefs.h"
13562 /* Override any gcc2 internal prototype to avoid an error. */
13563 /* We use char because int might match the return type of a gcc2
13564 builtin and then its argument prototype would still apply. */
13565 char poptGetContext();
13567 int main() {
13568 poptGetContext()
13569 ; return 0; }
13571 if { (eval echo configure:13572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13572 rm -rf conftest*
13573 eval "ac_cv_lib_$ac_lib_var=yes"
13574 else
13575 echo "configure: failed program was:" >&5
13576 cat conftest.$ac_ext >&5
13577 rm -rf conftest*
13578 eval "ac_cv_lib_$ac_lib_var=no"
13580 rm -f conftest*
13581 LIBS="$ac_save_LIBS"
13584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13585 echo "$ac_t""yes" 1>&6
13586 INCLUDED_POPT=no
13587 else
13588 echo "$ac_t""no" 1>&6
13589 INCLUDED_POPT=yes
13594 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13595 echo "configure:13596: checking whether to use included popt" >&5
13596 if test x"$INCLUDED_POPT" = x"yes"; then
13597 echo "$ac_t""$srcdir/popt" 1>&6
13598 BUILD_POPT='$(POPT_OBJS)'
13599 FLAGS1="-I$srcdir/popt"
13600 else
13601 echo "$ac_t""no" 1>&6
13602 LIBS="$LIBS -lpopt"
13607 #################################################
13608 # final configure stuff
13609 echo $ac_n "checking configure summary""... $ac_c" 1>&6
13610 echo "configure:13611: checking configure summary" >&5
13611 if test "$cross_compiling" = yes; then
13612 echo "configure: warning: cannot run when cross-compiling" 1>&2
13613 else
13614 cat > conftest.$ac_ext <<EOF
13615 #line 13616 "configure"
13616 #include "confdefs.h"
13617 #include "${srcdir-.}/tests/summary.c"
13619 if { (eval echo configure:13620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13620 then
13621 echo "$ac_t""yes" 1>&6
13622 else
13623 echo "configure: failed program was:" >&5
13624 cat conftest.$ac_ext >&5
13625 rm -fr conftest*
13626 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
13628 rm -fr conftest*
13632 builddir=`pwd`
13635 trap '' 1 2 15
13636 cat > confcache <<\EOF
13637 # This file is a shell script that caches the results of configure
13638 # tests run on this system so they can be shared between configure
13639 # scripts and configure runs. It is not useful on other systems.
13640 # If it contains results you don't want to keep, you may remove or edit it.
13642 # By default, configure uses ./config.cache as the cache file,
13643 # creating it if it does not exist already. You can give configure
13644 # the --cache-file=FILE option to use a different cache file; that is
13645 # what configure does when it calls configure scripts in
13646 # subdirectories, so they share the cache.
13647 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13648 # config.status only pays attention to the cache file if you give it the
13649 # --recheck option to rerun configure.
13652 # The following way of writing the cache mishandles newlines in values,
13653 # but we know of no workaround that is simple, portable, and efficient.
13654 # So, don't put newlines in cache variables' values.
13655 # Ultrix sh set writes to stderr and can't be redirected directly,
13656 # and sets the high bit in the cache file unless we assign to the vars.
13657 (set) 2>&1 |
13658 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13659 *ac_space=\ *)
13660 # `set' does not quote correctly, so add quotes (double-quote substitution
13661 # turns \\\\ into \\, and sed turns \\ into \).
13662 sed -n \
13663 -e "s/'/'\\\\''/g" \
13664 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13667 # `set' quotes correctly as required by POSIX, so do not add quotes.
13668 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13670 esac >> confcache
13671 if cmp -s $cache_file confcache; then
13673 else
13674 if test -w $cache_file; then
13675 echo "updating cache $cache_file"
13676 cat confcache > $cache_file
13677 else
13678 echo "not updating unwritable cache $cache_file"
13681 rm -f confcache
13683 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13685 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13686 # Let make expand exec_prefix.
13687 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13689 # Any assignment to VPATH causes Sun make to only execute
13690 # the first set of double-colon rules, so remove it if not needed.
13691 # If there is a colon in the path, we need to keep it.
13692 if test "x$srcdir" = x.; then
13693 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13696 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13698 DEFS=-DHAVE_CONFIG_H
13700 # Without the "./", some shells look in PATH for config.status.
13701 : ${CONFIG_STATUS=./config.status}
13703 echo creating $CONFIG_STATUS
13704 rm -f $CONFIG_STATUS
13705 cat > $CONFIG_STATUS <<EOF
13706 #! /bin/sh
13707 # Generated automatically by configure.
13708 # Run this file to recreate the current configuration.
13709 # This directory was configured as follows,
13710 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13712 # $0 $ac_configure_args
13714 # Compiler output produced by configure, useful for debugging
13715 # configure, is in ./config.log if it exists.
13717 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13718 for ac_option
13720 case "\$ac_option" in
13721 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13722 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13723 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13724 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13725 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13726 exit 0 ;;
13727 -help | --help | --hel | --he | --h)
13728 echo "\$ac_cs_usage"; exit 0 ;;
13729 *) echo "\$ac_cs_usage"; exit 1 ;;
13730 esac
13731 done
13733 ac_given_srcdir=$srcdir
13734 ac_given_INSTALL="$INSTALL"
13736 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13738 cat >> $CONFIG_STATUS <<EOF
13740 # Protect against being on the right side of a sed subst in config.status.
13741 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13742 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13743 $ac_vpsub
13744 $extrasub
13745 s%@SHELL@%$SHELL%g
13746 s%@CFLAGS@%$CFLAGS%g
13747 s%@CPPFLAGS@%$CPPFLAGS%g
13748 s%@CXXFLAGS@%$CXXFLAGS%g
13749 s%@FFLAGS@%$FFLAGS%g
13750 s%@DEFS@%$DEFS%g
13751 s%@LDFLAGS@%$LDFLAGS%g
13752 s%@LIBS@%$LIBS%g
13753 s%@exec_prefix@%$exec_prefix%g
13754 s%@prefix@%$prefix%g
13755 s%@program_transform_name@%$program_transform_name%g
13756 s%@bindir@%$bindir%g
13757 s%@sbindir@%$sbindir%g
13758 s%@libexecdir@%$libexecdir%g
13759 s%@datadir@%$datadir%g
13760 s%@sysconfdir@%$sysconfdir%g
13761 s%@sharedstatedir@%$sharedstatedir%g
13762 s%@localstatedir@%$localstatedir%g
13763 s%@libdir@%$libdir%g
13764 s%@includedir@%$includedir%g
13765 s%@oldincludedir@%$oldincludedir%g
13766 s%@infodir@%$infodir%g
13767 s%@mandir@%$mandir%g
13768 s%@codepagedir@%$codepagedir%g
13769 s%@configdir@%$configdir%g
13770 s%@lockdir@%$lockdir%g
13771 s%@piddir@%$piddir%g
13772 s%@logfilebase@%$logfilebase%g
13773 s%@privatedir@%$privatedir%g
13774 s%@swatdir@%$swatdir%g
13775 s%@RUNPROG@%$RUNPROG%g
13776 s%@MPROGS@%$MPROGS%g
13777 s%@LDSHFLAGS@%$LDSHFLAGS%g
13778 s%@SONAMEFLAG@%$SONAMEFLAG%g
13779 s%@SHLD@%$SHLD%g
13780 s%@HOST_OS@%$HOST_OS%g
13781 s%@PAM_MOD@%$PAM_MOD%g
13782 s%@PDBEDIT@%$PDBEDIT%g
13783 s%@WRAP@%$WRAP%g
13784 s%@WRAP32@%$WRAP32%g
13785 s%@WRAPPROG@%$WRAPPROG%g
13786 s%@PICFLAG@%$PICFLAG%g
13787 s%@PICSUFFIX@%$PICSUFFIX%g
13788 s%@SHLIBEXT@%$SHLIBEXT%g
13789 s%@BLDSHARED@%$BLDSHARED%g
13790 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13791 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
13792 s%@CC@%$CC%g
13793 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13794 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13795 s%@INSTALL_DATA@%$INSTALL_DATA%g
13796 s%@AWK@%$AWK%g
13797 s%@passwd_program@%$passwd_program%g
13798 s%@BROKEN_CC@%$BROKEN_CC%g
13799 s%@host@%$host%g
13800 s%@host_alias@%$host_alias%g
13801 s%@host_cpu@%$host_cpu%g
13802 s%@host_vendor@%$host_vendor%g
13803 s%@host_os@%$host_os%g
13804 s%@target@%$target%g
13805 s%@target_alias@%$target_alias%g
13806 s%@target_cpu@%$target_cpu%g
13807 s%@target_vendor@%$target_vendor%g
13808 s%@target_os@%$target_os%g
13809 s%@build@%$build%g
13810 s%@build_alias@%$build_alias%g
13811 s%@build_cpu@%$build_cpu%g
13812 s%@build_vendor@%$build_vendor%g
13813 s%@build_os@%$build_os%g
13814 s%@CPP@%$CPP%g
13815 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
13816 s%@LIBOBJS@%$LIBOBJS%g
13817 s%@TERMLIBS@%$TERMLIBS%g
13818 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13819 s%@ROFF@%$ROFF%g
13820 s%@DYNEXP@%$DYNEXP%g
13821 s%@QUOTAOBJS@%$QUOTAOBJS%g
13822 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13823 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13824 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13825 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13826 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
13827 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
13828 s%@BUILD_POPT@%$BUILD_POPT%g
13829 s%@FLAGS1@%$FLAGS1%g
13830 s%@builddir@%$builddir%g
13832 CEOF
13835 cat >> $CONFIG_STATUS <<\EOF
13837 # Split the substitutions into bite-sized pieces for seds with
13838 # small command number limits, like on Digital OSF/1 and HP-UX.
13839 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13840 ac_file=1 # Number of current file.
13841 ac_beg=1 # First line for current file.
13842 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13843 ac_more_lines=:
13844 ac_sed_cmds=""
13845 while $ac_more_lines; do
13846 if test $ac_beg -gt 1; then
13847 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13848 else
13849 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13851 if test ! -s conftest.s$ac_file; then
13852 ac_more_lines=false
13853 rm -f conftest.s$ac_file
13854 else
13855 if test -z "$ac_sed_cmds"; then
13856 ac_sed_cmds="sed -f conftest.s$ac_file"
13857 else
13858 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13860 ac_file=`expr $ac_file + 1`
13861 ac_beg=$ac_end
13862 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13864 done
13865 if test -z "$ac_sed_cmds"; then
13866 ac_sed_cmds=cat
13870 cat >> $CONFIG_STATUS <<EOF
13872 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
13874 cat >> $CONFIG_STATUS <<\EOF
13875 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13876 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13877 case "$ac_file" in
13878 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13879 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13880 *) ac_file_in="${ac_file}.in" ;;
13881 esac
13883 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13885 # Remove last slash and all that follows it. Not all systems have dirname.
13886 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13887 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13888 # The file is in a subdirectory.
13889 test ! -d "$ac_dir" && mkdir "$ac_dir"
13890 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13891 # A "../" for each directory in $ac_dir_suffix.
13892 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13893 else
13894 ac_dir_suffix= ac_dots=
13897 case "$ac_given_srcdir" in
13898 .) srcdir=.
13899 if test -z "$ac_dots"; then top_srcdir=.
13900 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13901 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13902 *) # Relative path.
13903 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13904 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13905 esac
13907 case "$ac_given_INSTALL" in
13908 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13909 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13910 esac
13912 echo creating "$ac_file"
13913 rm -f "$ac_file"
13914 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13915 case "$ac_file" in
13916 *Makefile*) ac_comsub="1i\\
13917 # $configure_input" ;;
13918 *) ac_comsub= ;;
13919 esac
13921 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13922 sed -e "$ac_comsub
13923 s%@configure_input@%$configure_input%g
13924 s%@srcdir@%$srcdir%g
13925 s%@top_srcdir@%$top_srcdir%g
13926 s%@INSTALL@%$INSTALL%g
13927 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13928 fi; done
13929 rm -f conftest.s*
13931 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13932 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13934 # ac_d sets the value in "#define NAME VALUE" lines.
13935 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13936 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13937 ac_dC='\3'
13938 ac_dD='%g'
13939 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13940 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13941 ac_uB='\([ ]\)%\1#\2define\3'
13942 ac_uC=' '
13943 ac_uD='\4%g'
13944 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13945 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13946 ac_eB='$%\1#\2define\3'
13947 ac_eC=' '
13948 ac_eD='%g'
13950 if test "${CONFIG_HEADERS+set}" != set; then
13952 cat >> $CONFIG_STATUS <<EOF
13953 CONFIG_HEADERS="include/config.h"
13955 cat >> $CONFIG_STATUS <<\EOF
13957 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13958 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13959 case "$ac_file" in
13960 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13961 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13962 *) ac_file_in="${ac_file}.in" ;;
13963 esac
13965 echo creating $ac_file
13967 rm -f conftest.frag conftest.in conftest.out
13968 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13969 cat $ac_file_inputs > conftest.in
13973 # Transform confdefs.h into a sed script conftest.vals that substitutes
13974 # the proper values into config.h.in to produce config.h. And first:
13975 # Protect against being on the right side of a sed subst in config.status.
13976 # Protect against being in an unquoted here document in config.status.
13977 rm -f conftest.vals
13978 cat > conftest.hdr <<\EOF
13979 s/[\\&%]/\\&/g
13980 s%[\\$`]%\\&%g
13981 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13982 s%ac_d%ac_u%gp
13983 s%ac_u%ac_e%gp
13985 sed -n -f conftest.hdr confdefs.h > conftest.vals
13986 rm -f conftest.hdr
13988 # This sed command replaces #undef with comments. This is necessary, for
13989 # example, in the case of _POSIX_SOURCE, which is predefined and required
13990 # on some systems where configure will not decide to define it.
13991 cat >> conftest.vals <<\EOF
13992 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13995 # Break up conftest.vals because some shells have a limit on
13996 # the size of here documents, and old seds have small limits too.
13998 rm -f conftest.tail
13999 while :
14001 ac_lines=`grep -c . conftest.vals`
14002 # grep -c gives empty output for an empty file on some AIX systems.
14003 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14004 # Write a limited-size here document to conftest.frag.
14005 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14006 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14007 echo 'CEOF
14008 sed -f conftest.frag conftest.in > conftest.out
14009 rm -f conftest.in
14010 mv conftest.out conftest.in
14011 ' >> $CONFIG_STATUS
14012 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14013 rm -f conftest.vals
14014 mv conftest.tail conftest.vals
14015 done
14016 rm -f conftest.vals
14018 cat >> $CONFIG_STATUS <<\EOF
14019 rm -f conftest.frag conftest.h
14020 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14021 cat conftest.in >> conftest.h
14022 rm -f conftest.in
14023 if cmp -s $ac_file conftest.h 2>/dev/null; then
14024 echo "$ac_file is unchanged"
14025 rm -f conftest.h
14026 else
14027 # Remove last slash and all that follows it. Not all systems have dirname.
14028 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14029 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14030 # The file is in a subdirectory.
14031 test ! -d "$ac_dir" && mkdir "$ac_dir"
14033 rm -f $ac_file
14034 mv conftest.h $ac_file
14036 fi; done
14039 cat >> $CONFIG_STATUS <<EOF
14042 cat >> $CONFIG_STATUS <<\EOF
14044 exit 0
14046 chmod +x $CONFIG_STATUS
14047 rm -fr confdefs* $ac_clean_files
14048 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1