Add BROKEN_GETGRNAM and POSIX_ACL_NEEDS_MASK to systems that need them.
[Samba.git] / source / configure
blobb7d7b6e4ebee36d4fe0768eefcca1c02789afc72
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-sendfile-support Check for sendfile support (default=no)"
85 ac_help="$ac_help
86 --with-winbind Build winbind (default, if supported by OS)"
87 ac_help="$ac_help
88 --with-winbind-auth-challenge Enable winbindd_pam_auth_crap() functionality (default no)"
89 ac_help="$ac_help
90 --with-winbind-ldap-hack Enable winbindd_ldap_hack() functionality (default no)"
91 ac_help="$ac_help
92 --with-included-popt use bundled popt library, not from system"
94 # Initialize some variables set by options.
95 # The variables have the same names as the options, with
96 # dashes changed to underlines.
97 build=NONE
98 cache_file=./config.cache
99 exec_prefix=NONE
100 host=NONE
101 no_create=
102 nonopt=NONE
103 no_recursion=
104 prefix=NONE
105 program_prefix=NONE
106 program_suffix=NONE
107 program_transform_name=s,x,x,
108 silent=
109 site=
110 srcdir=
111 target=NONE
112 verbose=
113 x_includes=NONE
114 x_libraries=NONE
115 bindir='${exec_prefix}/bin'
116 sbindir='${exec_prefix}/sbin'
117 libexecdir='${exec_prefix}/libexec'
118 datadir='${prefix}/share'
119 sysconfdir='${prefix}/etc'
120 sharedstatedir='${prefix}/com'
121 localstatedir='${prefix}/var'
122 libdir='${exec_prefix}/lib'
123 includedir='${prefix}/include'
124 oldincludedir='/usr/include'
125 infodir='${prefix}/info'
126 mandir='${prefix}/man'
128 # Initialize some other variables.
129 subdirs=
130 MFLAGS= MAKEFLAGS=
131 SHELL=${CONFIG_SHELL-/bin/sh}
132 # Maximum number of lines to put in a shell here document.
133 ac_max_here_lines=12
135 ac_prev=
136 for ac_option
139 # If the previous option needs an argument, assign it.
140 if test -n "$ac_prev"; then
141 eval "$ac_prev=\$ac_option"
142 ac_prev=
143 continue
146 case "$ac_option" in
147 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
148 *) ac_optarg= ;;
149 esac
151 # Accept the important Cygnus configure options, so we can diagnose typos.
153 case "$ac_option" in
155 -bindir | --bindir | --bindi | --bind | --bin | --bi)
156 ac_prev=bindir ;;
157 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
158 bindir="$ac_optarg" ;;
160 -build | --build | --buil | --bui | --bu)
161 ac_prev=build ;;
162 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
163 build="$ac_optarg" ;;
165 -cache-file | --cache-file | --cache-fil | --cache-fi \
166 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
167 ac_prev=cache_file ;;
168 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
169 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
170 cache_file="$ac_optarg" ;;
172 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
173 ac_prev=datadir ;;
174 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
175 | --da=*)
176 datadir="$ac_optarg" ;;
178 -disable-* | --disable-*)
179 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}=no" ;;
187 -enable-* | --enable-*)
188 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
193 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
194 case "$ac_option" in
195 *=*) ;;
196 *) ac_optarg=yes ;;
197 esac
198 eval "enable_${ac_feature}='$ac_optarg'" ;;
200 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
201 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
202 | --exec | --exe | --ex)
203 ac_prev=exec_prefix ;;
204 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
205 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
206 | --exec=* | --exe=* | --ex=*)
207 exec_prefix="$ac_optarg" ;;
209 -gas | --gas | --ga | --g)
210 # Obsolete; use --with-gas.
211 with_gas=yes ;;
213 -help | --help | --hel | --he)
214 # Omit some internal or obsolete options to make the list less imposing.
215 # This message is too long to be a string in the A/UX 3.1 sh.
216 cat << EOF
217 Usage: configure [options] [host]
218 Options: [defaults in brackets after descriptions]
219 Configuration:
220 --cache-file=FILE cache test results in FILE
221 --help print this message
222 --no-create do not create output files
223 --quiet, --silent do not print \`checking...' messages
224 --version print the version of autoconf that created configure
225 Directory and file names:
226 --prefix=PREFIX install architecture-independent files in PREFIX
227 [$ac_default_prefix]
228 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
229 [same as prefix]
230 --bindir=DIR user executables in DIR [EPREFIX/bin]
231 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
232 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
233 --datadir=DIR read-only architecture-independent data in DIR
234 [PREFIX/share]
235 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
236 --sharedstatedir=DIR modifiable architecture-independent data in DIR
237 [PREFIX/com]
238 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
239 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
240 --includedir=DIR C header files in DIR [PREFIX/include]
241 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
242 --infodir=DIR info documentation in DIR [PREFIX/info]
243 --mandir=DIR man documentation in DIR [PREFIX/man]
244 --srcdir=DIR find the sources in DIR [configure dir or ..]
245 --program-prefix=PREFIX prepend PREFIX to installed program names
246 --program-suffix=SUFFIX append SUFFIX to installed program names
247 --program-transform-name=PROGRAM
248 run sed PROGRAM on installed program names
250 cat << EOF
251 Host type:
252 --build=BUILD configure for building on BUILD [BUILD=HOST]
253 --host=HOST configure for HOST [guessed]
254 --target=TARGET configure for TARGET [TARGET=HOST]
255 Features and packages:
256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
258 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
259 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
260 --x-includes=DIR X include files are in DIR
261 --x-libraries=DIR X library files are in DIR
263 if test -n "$ac_help"; then
264 echo "--enable and --with options recognized:$ac_help"
266 exit 0 ;;
268 -host | --host | --hos | --ho)
269 ac_prev=host ;;
270 -host=* | --host=* | --hos=* | --ho=*)
271 host="$ac_optarg" ;;
273 -includedir | --includedir | --includedi | --included | --include \
274 | --includ | --inclu | --incl | --inc)
275 ac_prev=includedir ;;
276 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
277 | --includ=* | --inclu=* | --incl=* | --inc=*)
278 includedir="$ac_optarg" ;;
280 -infodir | --infodir | --infodi | --infod | --info | --inf)
281 ac_prev=infodir ;;
282 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
283 infodir="$ac_optarg" ;;
285 -libdir | --libdir | --libdi | --libd)
286 ac_prev=libdir ;;
287 -libdir=* | --libdir=* | --libdi=* | --libd=*)
288 libdir="$ac_optarg" ;;
290 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
291 | --libexe | --libex | --libe)
292 ac_prev=libexecdir ;;
293 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
294 | --libexe=* | --libex=* | --libe=*)
295 libexecdir="$ac_optarg" ;;
297 -localstatedir | --localstatedir | --localstatedi | --localstated \
298 | --localstate | --localstat | --localsta | --localst \
299 | --locals | --local | --loca | --loc | --lo)
300 ac_prev=localstatedir ;;
301 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
302 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
303 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
304 localstatedir="$ac_optarg" ;;
306 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
307 ac_prev=mandir ;;
308 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
309 mandir="$ac_optarg" ;;
311 -nfp | --nfp | --nf)
312 # Obsolete; use --without-fp.
313 with_fp=no ;;
315 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
316 | --no-cr | --no-c)
317 no_create=yes ;;
319 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
320 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
321 no_recursion=yes ;;
323 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
324 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
325 | --oldin | --oldi | --old | --ol | --o)
326 ac_prev=oldincludedir ;;
327 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
328 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
329 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
330 oldincludedir="$ac_optarg" ;;
332 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
333 ac_prev=prefix ;;
334 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
335 prefix="$ac_optarg" ;;
337 -program-prefix | --program-prefix | --program-prefi | --program-pref \
338 | --program-pre | --program-pr | --program-p)
339 ac_prev=program_prefix ;;
340 -program-prefix=* | --program-prefix=* | --program-prefi=* \
341 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
342 program_prefix="$ac_optarg" ;;
344 -program-suffix | --program-suffix | --program-suffi | --program-suff \
345 | --program-suf | --program-su | --program-s)
346 ac_prev=program_suffix ;;
347 -program-suffix=* | --program-suffix=* | --program-suffi=* \
348 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
349 program_suffix="$ac_optarg" ;;
351 -program-transform-name | --program-transform-name \
352 | --program-transform-nam | --program-transform-na \
353 | --program-transform-n | --program-transform- \
354 | --program-transform | --program-transfor \
355 | --program-transfo | --program-transf \
356 | --program-trans | --program-tran \
357 | --progr-tra | --program-tr | --program-t)
358 ac_prev=program_transform_name ;;
359 -program-transform-name=* | --program-transform-name=* \
360 | --program-transform-nam=* | --program-transform-na=* \
361 | --program-transform-n=* | --program-transform-=* \
362 | --program-transform=* | --program-transfor=* \
363 | --program-transfo=* | --program-transf=* \
364 | --program-trans=* | --program-tran=* \
365 | --progr-tra=* | --program-tr=* | --program-t=*)
366 program_transform_name="$ac_optarg" ;;
368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
369 | -silent | --silent | --silen | --sile | --sil)
370 silent=yes ;;
372 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
373 ac_prev=sbindir ;;
374 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
375 | --sbi=* | --sb=*)
376 sbindir="$ac_optarg" ;;
378 -sharedstatedir | --sharedstatedir | --sharedstatedi \
379 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
380 | --sharedst | --shareds | --shared | --share | --shar \
381 | --sha | --sh)
382 ac_prev=sharedstatedir ;;
383 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
384 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
385 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
386 | --sha=* | --sh=*)
387 sharedstatedir="$ac_optarg" ;;
389 -site | --site | --sit)
390 ac_prev=site ;;
391 -site=* | --site=* | --sit=*)
392 site="$ac_optarg" ;;
394 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
395 ac_prev=srcdir ;;
396 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
397 srcdir="$ac_optarg" ;;
399 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
400 | --syscon | --sysco | --sysc | --sys | --sy)
401 ac_prev=sysconfdir ;;
402 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
403 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
404 sysconfdir="$ac_optarg" ;;
406 -target | --target | --targe | --targ | --tar | --ta | --t)
407 ac_prev=target ;;
408 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
409 target="$ac_optarg" ;;
411 -v | -verbose | --verbose | --verbos | --verbo | --verb)
412 verbose=yes ;;
414 -version | --version | --versio | --versi | --vers)
415 echo "configure generated by autoconf version 2.13"
416 exit 0 ;;
418 -with-* | --with-*)
419 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package=`echo $ac_package| sed 's/-/_/g'`
425 case "$ac_option" in
426 *=*) ;;
427 *) ac_optarg=yes ;;
428 esac
429 eval "with_${ac_package}='$ac_optarg'" ;;
431 -without-* | --without-*)
432 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
433 # Reject names that are not valid shell variable names.
434 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
435 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
437 ac_package=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}=no" ;;
440 --x)
441 # Obsolete; use --with-x.
442 with_x=yes ;;
444 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
445 | --x-incl | --x-inc | --x-in | --x-i)
446 ac_prev=x_includes ;;
447 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
448 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
449 x_includes="$ac_optarg" ;;
451 -x-libraries | --x-libraries | --x-librarie | --x-librari \
452 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
453 ac_prev=x_libraries ;;
454 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
455 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
456 x_libraries="$ac_optarg" ;;
458 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
462 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
463 echo "configure: warning: $ac_option: invalid host type" 1>&2
465 if test "x$nonopt" != xNONE; then
466 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
468 nonopt="$ac_option"
471 esac
472 done
474 if test -n "$ac_prev"; then
475 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
478 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
480 # File descriptor usage:
481 # 0 standard input
482 # 1 file creation
483 # 2 errors and warnings
484 # 3 some systems may open it to /dev/tty
485 # 4 used on the Kubota Titan
486 # 6 checking for... messages and results
487 # 5 compiler messages saved in config.log
488 if test "$silent" = yes; then
489 exec 6>/dev/null
490 else
491 exec 6>&1
493 exec 5>./config.log
495 echo "\
496 This file contains any messages produced by compilers while
497 running configure, to aid debugging if configure makes a mistake.
498 " 1>&5
500 # Strip out --no-create and --no-recursion so they do not pile up.
501 # Also quote any args containing shell metacharacters.
502 ac_configure_args=
503 for ac_arg
505 case "$ac_arg" in
506 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
507 | --no-cr | --no-c) ;;
508 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
509 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
510 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
511 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
512 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
513 esac
514 done
516 # NLS nuisances.
517 # Only set these to C if already set. These must not be set unconditionally
518 # because not all systems understand e.g. LANG=C (notably SCO).
519 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
520 # Non-C LC_CTYPE values break the ctype check.
521 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
522 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
523 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
524 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
527 rm -rf conftest* confdefs.h
528 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
529 echo > confdefs.h
531 # A filename unique to this package, relative to the directory that
532 # configure is in, which we can look for to find out if srcdir is correct.
533 ac_unique_file=include/includes.h
535 # Find the source files, if location was not specified.
536 if test -z "$srcdir"; then
537 ac_srcdir_defaulted=yes
538 # Try the directory containing this script, then its parent.
539 ac_prog=$0
540 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
541 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
542 srcdir=$ac_confdir
543 if test ! -r $srcdir/$ac_unique_file; then
544 srcdir=..
546 else
547 ac_srcdir_defaulted=no
549 if test ! -r $srcdir/$ac_unique_file; then
550 if test "$ac_srcdir_defaulted" = yes; then
551 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
552 else
553 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
556 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
558 # Prefer explicitly selected file to automatically selected ones.
559 if test -z "$CONFIG_SITE"; then
560 if test "x$prefix" != xNONE; then
561 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
562 else
563 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
566 for ac_site_file in $CONFIG_SITE; do
567 if test -r "$ac_site_file"; then
568 echo "loading site script $ac_site_file"
569 . "$ac_site_file"
571 done
573 if test -r "$cache_file"; then
574 echo "loading cache $cache_file"
575 . $cache_file
576 else
577 echo "creating cache $cache_file"
578 > $cache_file
581 ac_ext=c
582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
583 ac_cpp='$CPP $CPPFLAGS'
584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
586 cross_compiling=$ac_cv_prog_cc_cross
588 ac_exeext=
589 ac_objext=o
590 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
591 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
592 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
593 ac_n= ac_c='
594 ' ac_t=' '
595 else
596 ac_n=-n ac_c= ac_t=
598 else
599 ac_n= ac_c='\c' ac_t=
605 #################################################
606 # Directory handling stuff to support both the
607 # legacy SAMBA directories and FHS compliant
608 # ones...
611 # Check whether --with-fhs or --without-fhs was given.
612 if test "${with_fhs+set}" = set; then
613 withval="$with_fhs"
614 codepagedir="\$(DATADIR)/samba/codepages"
615 configdir="${sysconfdir}/samba"
616 lockdir="\${VARDIR}/cache/samba"
617 piddir="\$(VARDIR)/run/samba"
618 logfilebase="\${VARDIR}/log/samba"
619 privatedir="\${CONFIGDIR}/private"
620 swatdir="\${DATADIR}/samba/swat"
621 else
622 codepagedir="\$(LIBDIR)/codepages"
623 configdir="\$(LIBDIR)"
624 logfilebase="\$(VARDIR)"
625 lockdir="\${VARDIR}/locks"
626 piddir="\$(VARDIR)/locks"
627 privatedir="\${prefix}/private"
628 swatdir="\${prefix}/swat"
632 #################################################
633 # set private directory location
634 # Check whether --with-privatedir or --without-privatedir was given.
635 if test "${with_privatedir+set}" = set; then
636 withval="$with_privatedir"
637 case "$withval" in
638 yes|no)
640 # Just in case anybody calls it without argument
642 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
645 privatedir="$withval"
647 esac
651 #################################################
652 # set lock directory location
653 # Check whether --with-lockdir or --without-lockdir was given.
654 if test "${with_lockdir+set}" = set; then
655 withval="$with_lockdir"
656 case "$withval" in
657 yes|no)
659 # Just in case anybody calls it without argument
661 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
664 lockdir="$withval"
666 esac
670 #################################################
671 # set pid directory location
672 # Check whether --with-piddir or --without-piddir was given.
673 if test "${with_piddir+set}" = set; then
674 withval="$with_piddir"
675 case "$withval" in
676 yes|no)
678 # Just in case anybody calls it without argument
680 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
683 piddir="$withval"
685 esac
689 #################################################
690 # set SWAT directory location
691 # Check whether --with-swatdir or --without-swatdir was given.
692 if test "${with_swatdir+set}" = set; then
693 withval="$with_swatdir"
694 case "$withval" in
695 yes|no)
697 # Just in case anybody does it
699 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
702 swatdir="$withval"
704 esac
708 #################################################
709 # set configuration directory location
710 # Check whether --with-configdir or --without-configdir was given.
711 if test "${with_configdir+set}" = set; then
712 withval="$with_configdir"
713 case "$withval" in
714 yes|no)
716 # Just in case anybody does it
718 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
721 configdir="$withval"
723 esac
727 #################################################
728 # set codepage directory location
729 # Check whether --with-codepagedir or --without-codepagedir was given.
730 if test "${with_codepagedir+set}" = set; then
731 withval="$with_codepagedir"
732 case "$withval" in
733 yes|no)
735 # Just in case anybody does it
737 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
740 codepagedir="$withval"
742 esac
746 #################################################
747 # set log directory location
748 # Check whether --with-logfilebase or --without-logfilebase was given.
749 if test "${with_logfilebase+set}" = set; then
750 withval="$with_logfilebase"
751 case "$withval" in
752 yes|no)
754 # Just in case anybody does it
756 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
759 logfilebase="$withval"
761 esac
796 # compile with optimization and without debugging by default
797 CFLAGS="-O ${CFLAGS}"
799 # Check whether --enable-debug or --disable-debug was given.
800 if test "${enable_debug+set}" = set; then
801 enableval="$enable_debug"
802 if eval "test x$enable_debug = xyes"; then
803 CFLAGS="${CFLAGS} -g"
810 # Extract the first word of "gcc", so it can be a program name with args.
811 set dummy gcc; ac_word=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
816 else
817 if test -n "$CC"; then
818 ac_cv_prog_CC="$CC" # Let the user override the test.
819 else
820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
821 ac_dummy="$PATH"
822 for ac_dir in $ac_dummy; do
823 test -z "$ac_dir" && ac_dir=.
824 if test -f $ac_dir/$ac_word; then
825 ac_cv_prog_CC="gcc"
826 break
828 done
829 IFS="$ac_save_ifs"
832 CC="$ac_cv_prog_CC"
833 if test -n "$CC"; then
834 echo "$ac_t""$CC" 1>&6
835 else
836 echo "$ac_t""no" 1>&6
839 if test -z "$CC"; then
840 # Extract the first word of "cc", so it can be a program name with args.
841 set dummy cc; ac_word=$2
842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
843 echo "configure:844: checking for $ac_word" >&5
844 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
845 echo $ac_n "(cached) $ac_c" 1>&6
846 else
847 if test -n "$CC"; then
848 ac_cv_prog_CC="$CC" # Let the user override the test.
849 else
850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
851 ac_prog_rejected=no
852 ac_dummy="$PATH"
853 for ac_dir in $ac_dummy; do
854 test -z "$ac_dir" && ac_dir=.
855 if test -f $ac_dir/$ac_word; then
856 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
857 ac_prog_rejected=yes
858 continue
860 ac_cv_prog_CC="cc"
861 break
863 done
864 IFS="$ac_save_ifs"
865 if test $ac_prog_rejected = yes; then
866 # We found a bogon in the path, so make sure we never use it.
867 set dummy $ac_cv_prog_CC
868 shift
869 if test $# -gt 0; then
870 # We chose a different compiler from the bogus one.
871 # However, it has the same basename, so the bogon will be chosen
872 # first if we set CC to just the basename; use the full file name.
873 shift
874 set dummy "$ac_dir/$ac_word" "$@"
875 shift
876 ac_cv_prog_CC="$@"
881 CC="$ac_cv_prog_CC"
882 if test -n "$CC"; then
883 echo "$ac_t""$CC" 1>&6
884 else
885 echo "$ac_t""no" 1>&6
888 if test -z "$CC"; then
889 case "`uname -s`" in
890 *win32* | *WIN32*)
891 # Extract the first word of "cl", so it can be a program name with args.
892 set dummy cl; ac_word=$2
893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
894 echo "configure:895: checking for $ac_word" >&5
895 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
897 else
898 if test -n "$CC"; then
899 ac_cv_prog_CC="$CC" # Let the user override the test.
900 else
901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
902 ac_dummy="$PATH"
903 for ac_dir in $ac_dummy; do
904 test -z "$ac_dir" && ac_dir=.
905 if test -f $ac_dir/$ac_word; then
906 ac_cv_prog_CC="cl"
907 break
909 done
910 IFS="$ac_save_ifs"
913 CC="$ac_cv_prog_CC"
914 if test -n "$CC"; then
915 echo "$ac_t""$CC" 1>&6
916 else
917 echo "$ac_t""no" 1>&6
920 esac
922 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
925 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
926 echo "configure:927: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
928 ac_ext=c
929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930 ac_cpp='$CPP $CPPFLAGS'
931 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933 cross_compiling=$ac_cv_prog_cc_cross
935 cat > conftest.$ac_ext << EOF
937 #line 938 "configure"
938 #include "confdefs.h"
940 main(){return(0);}
942 if { (eval echo configure:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
943 ac_cv_prog_cc_works=yes
944 # If we can't run a trivial program, we are probably using a cross compiler.
945 if (./conftest; exit) 2>/dev/null; then
946 ac_cv_prog_cc_cross=no
947 else
948 ac_cv_prog_cc_cross=yes
950 else
951 echo "configure: failed program was:" >&5
952 cat conftest.$ac_ext >&5
953 ac_cv_prog_cc_works=no
955 rm -fr conftest*
956 ac_ext=c
957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
958 ac_cpp='$CPP $CPPFLAGS'
959 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
960 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
961 cross_compiling=$ac_cv_prog_cc_cross
963 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
964 if test $ac_cv_prog_cc_works = no; then
965 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
967 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
968 echo "configure:969: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
969 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
970 cross_compiling=$ac_cv_prog_cc_cross
972 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
973 echo "configure:974: checking whether we are using GNU C" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
976 else
977 cat > conftest.c <<EOF
978 #ifdef __GNUC__
979 yes;
980 #endif
982 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
983 ac_cv_prog_gcc=yes
984 else
985 ac_cv_prog_gcc=no
989 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
991 if test $ac_cv_prog_gcc = yes; then
992 GCC=yes
993 else
994 GCC=
997 ac_test_CFLAGS="${CFLAGS+set}"
998 ac_save_CFLAGS="$CFLAGS"
999 CFLAGS=
1000 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1001 echo "configure:1002: checking whether ${CC-cc} accepts -g" >&5
1002 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1004 else
1005 echo 'void f(){}' > conftest.c
1006 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1007 ac_cv_prog_cc_g=yes
1008 else
1009 ac_cv_prog_cc_g=no
1011 rm -f conftest*
1015 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1016 if test "$ac_test_CFLAGS" = set; then
1017 CFLAGS="$ac_save_CFLAGS"
1018 elif test $ac_cv_prog_cc_g = yes; then
1019 if test "$GCC" = yes; then
1020 CFLAGS="-g -O2"
1021 else
1022 CFLAGS="-g"
1024 else
1025 if test "$GCC" = yes; then
1026 CFLAGS="-O2"
1027 else
1028 CFLAGS=
1032 ac_aux_dir=
1033 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1034 if test -f $ac_dir/install-sh; then
1035 ac_aux_dir=$ac_dir
1036 ac_install_sh="$ac_aux_dir/install-sh -c"
1037 break
1038 elif test -f $ac_dir/install.sh; then
1039 ac_aux_dir=$ac_dir
1040 ac_install_sh="$ac_aux_dir/install.sh -c"
1041 break
1043 done
1044 if test -z "$ac_aux_dir"; then
1045 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1047 ac_config_guess=$ac_aux_dir/config.guess
1048 ac_config_sub=$ac_aux_dir/config.sub
1049 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1051 # Find a good install program. We prefer a C program (faster),
1052 # so one script is as good as another. But avoid the broken or
1053 # incompatible versions:
1054 # SysV /etc/install, /usr/sbin/install
1055 # SunOS /usr/etc/install
1056 # IRIX /sbin/install
1057 # AIX /bin/install
1058 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1059 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1060 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1061 # ./install, which can be erroneously created by make from ./install.sh.
1062 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1063 echo "configure:1064: checking for a BSD compatible install" >&5
1064 if test -z "$INSTALL"; then
1065 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1067 else
1068 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1069 for ac_dir in $PATH; do
1070 # Account for people who put trailing slashes in PATH elements.
1071 case "$ac_dir/" in
1072 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1074 # OSF1 and SCO ODT 3.0 have their own names for install.
1075 # Don't use installbsd from OSF since it installs stuff as root
1076 # by default.
1077 for ac_prog in ginstall scoinst install; do
1078 if test -f $ac_dir/$ac_prog; then
1079 if test $ac_prog = install &&
1080 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1081 # AIX install. It has an incompatible calling convention.
1083 else
1084 ac_cv_path_install="$ac_dir/$ac_prog -c"
1085 break 2
1088 done
1090 esac
1091 done
1092 IFS="$ac_save_IFS"
1095 if test "${ac_cv_path_install+set}" = set; then
1096 INSTALL="$ac_cv_path_install"
1097 else
1098 # As a last resort, use the slow shell script. We don't cache a
1099 # path for INSTALL within a source directory, because that will
1100 # break other packages using the cache if that directory is
1101 # removed, or if the path is relative.
1102 INSTALL="$ac_install_sh"
1105 echo "$ac_t""$INSTALL" 1>&6
1107 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1108 # It thinks the first close brace ends the variable substitution.
1109 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1111 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1113 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1115 for ac_prog in gawk mawk nawk awk
1117 # Extract the first word of "$ac_prog", so it can be a program name with args.
1118 set dummy $ac_prog; ac_word=$2
1119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1120 echo "configure:1121: checking for $ac_word" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1123 else
1124 if test -n "$AWK"; then
1125 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1126 else
1127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1128 ac_dummy="$PATH"
1129 for ac_dir in $ac_dummy; do
1130 test -z "$ac_dir" && ac_dir=.
1131 if test -f $ac_dir/$ac_word; then
1132 ac_cv_prog_AWK="$ac_prog"
1133 break
1135 done
1136 IFS="$ac_save_ifs"
1139 AWK="$ac_cv_prog_AWK"
1140 if test -n "$AWK"; then
1141 echo "$ac_t""$AWK" 1>&6
1142 else
1143 echo "$ac_t""no" 1>&6
1146 test -n "$AWK" && break
1147 done
1149 LD=ld
1150 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1151 echo "configure:1152: checking if the linker ($LD) is GNU ld" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1154 else
1155 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1156 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1157 ac_cv_prog_gnu_ld=yes
1158 else
1159 ac_cv_prog_gnu_ld=no
1163 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1165 # Extract the first word of "passwd", so it can be a program name with args.
1166 set dummy passwd; ac_word=$2
1167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1168 echo "configure:1169: checking for $ac_word" >&5
1169 if eval "test \"`echo '$''{'ac_cv_path_passwd_program'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1171 else
1172 case "$passwd_program" in
1174 ac_cv_path_passwd_program="$passwd_program" # Let the user override the test with a path.
1176 ?:/*)
1177 ac_cv_path_passwd_program="$passwd_program" # Let the user override the test with a dos path.
1180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1181 ac_dummy="$PATH"
1182 for ac_dir in $ac_dummy; do
1183 test -z "$ac_dir" && ac_dir=.
1184 if test -f $ac_dir/$ac_word; then
1185 ac_cv_path_passwd_program="$ac_dir/$ac_word"
1186 break
1188 done
1189 IFS="$ac_save_ifs"
1190 test -z "$ac_cv_path_passwd_program" && ac_cv_path_passwd_program="/bin/passwd"
1192 esac
1194 passwd_program="$ac_cv_path_passwd_program"
1195 if test -n "$passwd_program"; then
1196 echo "$ac_t""$passwd_program" 1>&6
1197 else
1198 echo "$ac_t""no" 1>&6
1203 if test "x$CC" != xcc; then
1204 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1205 echo "configure:1206: checking whether $CC and cc understand -c and -o together" >&5
1206 else
1207 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1208 echo "configure:1209: checking whether cc understands -c and -o together" >&5
1210 set dummy $CC; ac_cc="`echo $2 |
1211 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1212 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1214 else
1215 echo 'foo(){}' > conftest.c
1216 # Make sure it works both with $CC and with simple cc.
1217 # We do the test twice because some compilers refuse to overwrite an
1218 # existing .o file with -o, though they will create one.
1219 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1220 if { (eval echo configure:1221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1221 test -f conftest.o && { (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1222 then
1223 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1224 if test "x$CC" != xcc; then
1225 # Test first that cc exists at all.
1226 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1227 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1228 if { (eval echo configure:1229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1229 test -f conftest.o && { (eval echo configure:1230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1230 then
1231 # cc works too.
1233 else
1234 # cc exists but doesn't like -o.
1235 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1239 else
1240 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1242 rm -f conftest*
1245 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1246 echo "$ac_t""yes" 1>&6
1247 else
1248 echo "$ac_t""no" 1>&6
1249 cat >> confdefs.h <<\EOF
1250 #define NO_MINUS_C_MINUS_O 1
1255 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1256 BROKEN_CC=
1257 else
1258 BROKEN_CC=#
1262 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1263 echo "configure:1264: checking that the C compiler understands volatile" >&5
1264 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1266 else
1268 cat > conftest.$ac_ext <<EOF
1269 #line 1270 "configure"
1270 #include "confdefs.h"
1271 #include <sys/types.h>
1272 int main() {
1273 volatile int i = 0
1274 ; return 0; }
1276 if { (eval echo configure:1277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1277 rm -rf conftest*
1278 samba_cv_volatile=yes
1279 else
1280 echo "configure: failed program was:" >&5
1281 cat conftest.$ac_ext >&5
1282 rm -rf conftest*
1283 samba_cv_volatile=no
1285 rm -f conftest*
1288 echo "$ac_t""$samba_cv_volatile" 1>&6
1289 if test x"$samba_cv_volatile" = x"yes"; then
1290 cat >> confdefs.h <<\EOF
1291 #define HAVE_VOLATILE 1
1299 # Do some error checking and defaulting for the host and target type.
1300 # The inputs are:
1301 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1303 # The rules are:
1304 # 1. You are not allowed to specify --host, --target, and nonopt at the
1305 # same time.
1306 # 2. Host defaults to nonopt.
1307 # 3. If nonopt is not specified, then host defaults to the current host,
1308 # as determined by config.guess.
1309 # 4. Target and build default to nonopt.
1310 # 5. If nonopt is not specified, then target and build default to host.
1312 # The aliases save the names the user supplied, while $host etc.
1313 # will get canonicalized.
1314 case $host---$target---$nonopt in
1315 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1316 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1317 esac
1320 # Make sure we can run config.sub.
1321 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1322 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1325 echo $ac_n "checking host system type""... $ac_c" 1>&6
1326 echo "configure:1327: checking host system type" >&5
1328 host_alias=$host
1329 case "$host_alias" in
1330 NONE)
1331 case $nonopt in
1332 NONE)
1333 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1334 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1335 fi ;;
1336 *) host_alias=$nonopt ;;
1337 esac ;;
1338 esac
1340 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1341 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1342 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1343 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1344 echo "$ac_t""$host" 1>&6
1346 echo $ac_n "checking target system type""... $ac_c" 1>&6
1347 echo "configure:1348: checking target system type" >&5
1349 target_alias=$target
1350 case "$target_alias" in
1351 NONE)
1352 case $nonopt in
1353 NONE) target_alias=$host_alias ;;
1354 *) target_alias=$nonopt ;;
1355 esac ;;
1356 esac
1358 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1359 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1360 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1361 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1362 echo "$ac_t""$target" 1>&6
1364 echo $ac_n "checking build system type""... $ac_c" 1>&6
1365 echo "configure:1366: checking build system type" >&5
1367 build_alias=$build
1368 case "$build_alias" in
1369 NONE)
1370 case $nonopt in
1371 NONE) build_alias=$host_alias ;;
1372 *) build_alias=$nonopt ;;
1373 esac ;;
1374 esac
1376 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1377 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380 echo "$ac_t""$build" 1>&6
1382 test "$host_alias" != "$target_alias" &&
1383 test "$program_prefix$program_suffix$program_transform_name" = \
1384 NONENONEs,x,x, &&
1385 program_prefix=${target_alias}-
1388 case "$host_os" in
1389 *irix6*) cat >> confdefs.h <<\EOF
1390 #include <standards.h>
1394 esac
1398 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1399 echo "configure:1400: checking config.cache system type" >&5
1400 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1401 test x"$ac_cv_host_system_type" != x"$host"; } ||
1402 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1403 test x"$ac_cv_build_system_type" != x"$build"; } ||
1404 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1405 test x"$ac_cv_target_system_type" != x"$target"; }; then
1406 echo "$ac_t""different" 1>&6
1407 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1408 else
1409 echo "$ac_t""same" 1>&6
1411 ac_cv_host_system_type="$host"
1412 ac_cv_build_system_type="$build"
1413 ac_cv_target_system_type="$target"
1416 DYNEXP=
1419 # Config CPPFLAG settings for strange OS's that must be set
1420 # before other tests.
1422 case "$host_os" in
1423 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1424 *hpux*)
1425 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1426 echo "configure:1427: checking whether ${CC-cc} accepts -Ae" >&5
1427 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1429 else
1430 echo 'void f(){}' > conftest.c
1431 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1432 ac_cv_prog_cc_Ae=yes
1433 else
1434 ac_cv_prog_cc_Ae=no
1436 rm -f conftest*
1440 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1441 # mmap on HPUX is completely broken...
1442 cat >> confdefs.h <<\EOF
1443 #define MMAP_BLACKLIST 1
1446 if test $ac_cv_prog_cc_Ae = yes; then
1447 CPPFLAGS="$CPPFLAGS -Ae"
1450 # Defines needed for HPUX support.
1451 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1452 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1454 case `uname -r` in
1455 *9*|*10*)
1456 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 -DMAX_POSITIVE_LOCK_OFFSET=0x1ffffffffffLL"
1457 cat >> confdefs.h <<\EOF
1458 #define USE_BOTH_CRYPT_CALLS 1
1461 cat >> confdefs.h <<\EOF
1462 #define _HPUX_SOURCE 1
1465 cat >> confdefs.h <<\EOF
1466 #define _POSIX_SOURCE 1
1469 cat >> confdefs.h <<\EOF
1470 #define _ALIGNMENT_REQUIRED 1
1473 cat >> confdefs.h <<\EOF
1474 #define _MAX_ALIGNMENT 4
1478 *11*)
1479 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 -DMAX_POSITIVE_LOCK_OFFSET=0x1ffffffffffLL"
1480 cat >> confdefs.h <<\EOF
1481 #define _HPUX_SOURCE 1
1484 cat >> confdefs.h <<\EOF
1485 #define _POSIX_SOURCE 1
1488 cat >> confdefs.h <<\EOF
1489 #define _LARGEFILE64_SOURCE 1
1492 cat >> confdefs.h <<\EOF
1493 #define POSIX_ACL_NEEDS_MASK 1
1496 cat >> confdefs.h <<\EOF
1497 #define _ALIGNMENT_REQUIRED 1
1500 cat >> confdefs.h <<\EOF
1501 #define _MAX_ALIGNMENT 4
1504 cat >> confdefs.h <<\EOF
1505 #define USE_BOTH_CRYPT_CALLS 1
1509 esac
1510 DYNEXP="-Wl,-E"
1515 # CRAY Unicos has broken const handling
1516 *unicos*)
1517 echo "$ac_t""disabling const" 1>&6
1518 CPPFLAGS="$CPPFLAGS -Dconst="
1522 # AIX4.x doesn't even admit to having large
1523 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1525 *aix4*)
1526 echo "$ac_t""enabling large file support" 1>&6
1527 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1528 cat >> confdefs.h <<\EOF
1529 #define _LARGE_FILES 1
1534 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1535 # to the existance of large files..
1536 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1537 # recommendations on large file support, however it makes the
1538 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1539 # recommendation makes the compile fail on gcc2.7. JRA.
1541 *solaris*)
1542 case `uname -r` in
1543 5.0*|5.1*|5.2*|5.3*|5.5*)
1544 echo "$ac_t""no large file support" 1>&6
1546 5.*)
1547 echo "$ac_t""enabling large file support" 1>&6
1548 if test "$ac_cv_prog_gcc" = yes; then
1549 ${CC-cc} -v >conftest.c 2>&1
1550 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1551 rm -fr conftest.c
1552 case "$ac_cv_gcc_compiler_version_number" in
1553 *"gcc version 2.6"*|*"gcc version 2.7"*)
1554 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1555 cat >> confdefs.h <<\EOF
1556 #define _LARGEFILE64_SOURCE 1
1561 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1562 cat >> confdefs.h <<\EOF
1563 #define _LARGEFILE64_SOURCE 1
1566 cat >> confdefs.h <<\EOF
1567 #define _FILE_OFFSET_BITS 64
1571 esac
1572 else
1573 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1574 cat >> confdefs.h <<\EOF
1575 #define _LARGEFILE64_SOURCE 1
1578 cat >> confdefs.h <<\EOF
1579 #define _FILE_OFFSET_BITS 64
1584 esac
1587 # VOS may need to have POSIX support and System V compatibility enabled.
1589 *vos*)
1590 case "$CPPFLAGS" in
1591 *-D_POSIX_C_SOURCE*)
1594 CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=199506L"
1595 cat >> confdefs.h <<\EOF
1596 #define _POSIX_C_SOURCE 199506L
1600 esac
1601 case "$CPPFLAGS" in
1602 *-D_SYSV*|*-D_SVID_SOURCE*)
1605 CPPFLAGS="$CPPFLAGS -D_SYSV"
1606 cat >> confdefs.h <<\EOF
1607 #define _SYSV 1
1610 esac
1613 # Tests needed for SINIX large file support.
1615 *sysv4*)
1616 if test $host = mips-sni-sysv4 ; then
1617 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1618 echo "configure:1619: checking for LFS support" >&5
1619 old_CPPFLAGS="$CPPFLAGS"
1620 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1621 if test "$cross_compiling" = yes; then
1622 SINIX_LFS_SUPPORT=cross
1623 else
1624 cat > conftest.$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1628 #include <unistd.h>
1629 main () {
1630 #if _LFS64_LARGEFILE == 1
1631 exit(0);
1632 #else
1633 exit(1);
1634 #endif
1637 if { (eval echo configure:1638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1638 then
1639 SINIX_LFS_SUPPORT=yes
1640 else
1641 echo "configure: failed program was:" >&5
1642 cat conftest.$ac_ext >&5
1643 rm -fr conftest*
1644 SINIX_LFS_SUPPORT=no
1646 rm -fr conftest*
1649 CPPFLAGS="$old_CPPFLAGS"
1650 if test x$SINIX_LFS_SUPPORT = xyes ; then
1651 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1652 cat >> confdefs.h <<\EOF
1653 #define _LARGEFILE64_SOURCE 1
1656 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1657 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1658 LIBS="`getconf LFS64_LIBS` $LIBS"
1660 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1664 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1666 *linux*)
1667 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1668 echo "configure:1669: checking for LFS support" >&5
1669 old_CPPFLAGS="$CPPFLAGS"
1670 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1671 if test "$cross_compiling" = yes; then
1672 LINUX_LFS_SUPPORT=cross
1673 else
1674 cat > conftest.$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1678 #include <unistd.h>
1679 #include <sys/utsname.h>
1680 main() {
1681 #if _LFS64_LARGEFILE == 1
1682 struct utsname uts;
1683 char *release;
1684 int major, minor;
1686 /* Ensure this is glibc 2.2 or higher */
1687 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1688 int libc_major = __GLIBC__;
1689 int libc_minor = __GLIBC_MINOR__;
1691 if (libc_major < 2)
1692 exit(1);
1693 if (libc_minor < 2)
1694 exit(1);
1695 #endif
1697 /* Ensure this is kernel 2.4 or higher */
1699 uname(&uts);
1700 release = uts.release;
1701 major = atoi(strsep(&release, "."));
1702 minor = atoi(strsep(&release, "."));
1704 if (major > 2 || (major == 2 && minor > 3))
1705 exit(0);
1706 exit(1);
1707 #else
1708 exit(1);
1709 #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 LINUX_LFS_SUPPORT=yes
1716 else
1717 echo "configure: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1719 rm -fr conftest*
1720 LINUX_LFS_SUPPORT=no
1722 rm -fr conftest*
1725 CPPFLAGS="$old_CPPFLAGS"
1726 if test x$LINUX_LFS_SUPPORT = xyes ; then
1727 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1728 cat >> confdefs.h <<\EOF
1729 #define _LARGEFILE64_SOURCE 1
1732 cat >> confdefs.h <<\EOF
1733 #define _FILE_OFFSET_BITS 64
1736 cat >> confdefs.h <<\EOF
1737 #define _GNU_SOURCE 1
1741 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1744 *hurd*)
1745 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1746 echo "configure:1747: checking for LFS support" >&5
1747 old_CPPFLAGS="$CPPFLAGS"
1748 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1749 if test "$cross_compiling" = yes; then
1750 GLIBC_LFS_SUPPORT=cross
1751 else
1752 cat > conftest.$ac_ext <<EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1756 #include <unistd.h>
1757 main () {
1758 #if _LFS64_LARGEFILE == 1
1759 exit(0);
1760 #else
1761 exit(1);
1762 #endif
1765 if { (eval echo configure:1766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1766 then
1767 GLIBC_LFS_SUPPORT=yes
1768 else
1769 echo "configure: failed program was:" >&5
1770 cat conftest.$ac_ext >&5
1771 rm -fr conftest*
1772 GLIBC_LFS_SUPPORT=no
1774 rm -fr conftest*
1777 CPPFLAGS="$old_CPPFLAGS"
1778 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1779 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1780 cat >> confdefs.h <<\EOF
1781 #define _LARGEFILE64_SOURCE 1
1784 cat >> confdefs.h <<\EOF
1785 #define _GNU_SOURCE 1
1789 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1792 esac
1794 echo $ac_n "checking for inline""... $ac_c" 1>&6
1795 echo "configure:1796: checking for inline" >&5
1796 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1798 else
1799 ac_cv_c_inline=no
1800 for ac_kw in inline __inline__ __inline; do
1801 cat > conftest.$ac_ext <<EOF
1802 #line 1803 "configure"
1803 #include "confdefs.h"
1805 int main() {
1806 } $ac_kw foo() {
1807 ; return 0; }
1809 if { (eval echo configure:1810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1810 rm -rf conftest*
1811 ac_cv_c_inline=$ac_kw; break
1812 else
1813 echo "configure: failed program was:" >&5
1814 cat conftest.$ac_ext >&5
1816 rm -f conftest*
1817 done
1821 echo "$ac_t""$ac_cv_c_inline" 1>&6
1822 case "$ac_cv_c_inline" in
1823 inline | yes) ;;
1824 no) cat >> confdefs.h <<\EOF
1825 #define inline
1828 *) cat >> confdefs.h <<EOF
1829 #define inline $ac_cv_c_inline
1832 esac
1834 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1835 echo "configure:1836: checking how to run the C preprocessor" >&5
1836 # On Suns, sometimes $CPP names a directory.
1837 if test -n "$CPP" && test -d "$CPP"; then
1838 CPP=
1840 if test -z "$CPP"; then
1841 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1843 else
1844 # This must be in double quotes, not single quotes, because CPP may get
1845 # substituted into the Makefile and "${CC-cc}" will confuse make.
1846 CPP="${CC-cc} -E"
1847 # On the NeXT, cc -E runs the code through the compiler's parser,
1848 # not just through cpp.
1849 cat > conftest.$ac_ext <<EOF
1850 #line 1851 "configure"
1851 #include "confdefs.h"
1852 #include <assert.h>
1853 Syntax Error
1855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1856 { (eval echo configure:1857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1858 if test -z "$ac_err"; then
1860 else
1861 echo "$ac_err" >&5
1862 echo "configure: failed program was:" >&5
1863 cat conftest.$ac_ext >&5
1864 rm -rf conftest*
1865 CPP="${CC-cc} -E -traditional-cpp"
1866 cat > conftest.$ac_ext <<EOF
1867 #line 1868 "configure"
1868 #include "confdefs.h"
1869 #include <assert.h>
1870 Syntax Error
1872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1873 { (eval echo configure:1874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1875 if test -z "$ac_err"; then
1877 else
1878 echo "$ac_err" >&5
1879 echo "configure: failed program was:" >&5
1880 cat conftest.$ac_ext >&5
1881 rm -rf conftest*
1882 CPP="${CC-cc} -nologo -E"
1883 cat > conftest.$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1886 #include <assert.h>
1887 Syntax Error
1889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1890 { (eval echo configure:1891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1892 if test -z "$ac_err"; then
1894 else
1895 echo "$ac_err" >&5
1896 echo "configure: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1898 rm -rf conftest*
1899 CPP=/lib/cpp
1901 rm -f conftest*
1903 rm -f conftest*
1905 rm -f conftest*
1906 ac_cv_prog_CPP="$CPP"
1908 CPP="$ac_cv_prog_CPP"
1909 else
1910 ac_cv_prog_CPP="$CPP"
1912 echo "$ac_t""$CPP" 1>&6
1914 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1915 echo "configure:1916: checking for ANSI C header files" >&5
1916 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1918 else
1919 cat > conftest.$ac_ext <<EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1922 #include <stdlib.h>
1923 #include <stdarg.h>
1924 #include <string.h>
1925 #include <float.h>
1927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1928 { (eval echo configure:1929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1930 if test -z "$ac_err"; then
1931 rm -rf conftest*
1932 ac_cv_header_stdc=yes
1933 else
1934 echo "$ac_err" >&5
1935 echo "configure: failed program was:" >&5
1936 cat conftest.$ac_ext >&5
1937 rm -rf conftest*
1938 ac_cv_header_stdc=no
1940 rm -f conftest*
1942 if test $ac_cv_header_stdc = yes; then
1943 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1944 cat > conftest.$ac_ext <<EOF
1945 #line 1946 "configure"
1946 #include "confdefs.h"
1947 #include <string.h>
1949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1950 egrep "memchr" >/dev/null 2>&1; then
1952 else
1953 rm -rf conftest*
1954 ac_cv_header_stdc=no
1956 rm -f conftest*
1960 if test $ac_cv_header_stdc = yes; then
1961 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1962 cat > conftest.$ac_ext <<EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1965 #include <stdlib.h>
1967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1968 egrep "free" >/dev/null 2>&1; then
1970 else
1971 rm -rf conftest*
1972 ac_cv_header_stdc=no
1974 rm -f conftest*
1978 if test $ac_cv_header_stdc = yes; then
1979 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1980 if test "$cross_compiling" = yes; then
1982 else
1983 cat > conftest.$ac_ext <<EOF
1984 #line 1985 "configure"
1985 #include "confdefs.h"
1986 #include <ctype.h>
1987 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1988 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1989 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1990 int main () { int i; for (i = 0; i < 256; i++)
1991 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1992 exit (0); }
1995 if { (eval echo configure:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1996 then
1998 else
1999 echo "configure: failed program was:" >&5
2000 cat conftest.$ac_ext >&5
2001 rm -fr conftest*
2002 ac_cv_header_stdc=no
2004 rm -fr conftest*
2010 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2011 if test $ac_cv_header_stdc = yes; then
2012 cat >> confdefs.h <<\EOF
2013 #define STDC_HEADERS 1
2018 ac_header_dirent=no
2019 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2021 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2022 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2023 echo "configure:2024: checking for $ac_hdr that defines DIR" >&5
2024 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2026 else
2027 cat > conftest.$ac_ext <<EOF
2028 #line 2029 "configure"
2029 #include "confdefs.h"
2030 #include <sys/types.h>
2031 #include <$ac_hdr>
2032 int main() {
2033 DIR *dirp = 0;
2034 ; return 0; }
2036 if { (eval echo configure:2037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2037 rm -rf conftest*
2038 eval "ac_cv_header_dirent_$ac_safe=yes"
2039 else
2040 echo "configure: failed program was:" >&5
2041 cat conftest.$ac_ext >&5
2042 rm -rf conftest*
2043 eval "ac_cv_header_dirent_$ac_safe=no"
2045 rm -f conftest*
2047 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2048 echo "$ac_t""yes" 1>&6
2049 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2050 cat >> confdefs.h <<EOF
2051 #define $ac_tr_hdr 1
2053 ac_header_dirent=$ac_hdr; break
2054 else
2055 echo "$ac_t""no" 1>&6
2057 done
2058 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2059 if test $ac_header_dirent = dirent.h; then
2060 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2061 echo "configure:2062: checking for opendir in -ldir" >&5
2062 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2065 else
2066 ac_save_LIBS="$LIBS"
2067 LIBS="-ldir $LIBS"
2068 cat > conftest.$ac_ext <<EOF
2069 #line 2070 "configure"
2070 #include "confdefs.h"
2071 /* Override any gcc2 internal prototype to avoid an error. */
2072 /* We use char because int might match the return type of a gcc2
2073 builtin and then its argument prototype would still apply. */
2074 char opendir();
2076 int main() {
2077 opendir()
2078 ; return 0; }
2080 if { (eval echo configure:2081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2081 rm -rf conftest*
2082 eval "ac_cv_lib_$ac_lib_var=yes"
2083 else
2084 echo "configure: failed program was:" >&5
2085 cat conftest.$ac_ext >&5
2086 rm -rf conftest*
2087 eval "ac_cv_lib_$ac_lib_var=no"
2089 rm -f conftest*
2090 LIBS="$ac_save_LIBS"
2093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2094 echo "$ac_t""yes" 1>&6
2095 LIBS="$LIBS -ldir"
2096 else
2097 echo "$ac_t""no" 1>&6
2100 else
2101 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2102 echo "configure:2103: checking for opendir in -lx" >&5
2103 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2106 else
2107 ac_save_LIBS="$LIBS"
2108 LIBS="-lx $LIBS"
2109 cat > conftest.$ac_ext <<EOF
2110 #line 2111 "configure"
2111 #include "confdefs.h"
2112 /* Override any gcc2 internal prototype to avoid an error. */
2113 /* We use char because int might match the return type of a gcc2
2114 builtin and then its argument prototype would still apply. */
2115 char opendir();
2117 int main() {
2118 opendir()
2119 ; return 0; }
2121 if { (eval echo configure:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2122 rm -rf conftest*
2123 eval "ac_cv_lib_$ac_lib_var=yes"
2124 else
2125 echo "configure: failed program was:" >&5
2126 cat conftest.$ac_ext >&5
2127 rm -rf conftest*
2128 eval "ac_cv_lib_$ac_lib_var=no"
2130 rm -f conftest*
2131 LIBS="$ac_save_LIBS"
2134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2135 echo "$ac_t""yes" 1>&6
2136 LIBS="$LIBS -lx"
2137 else
2138 echo "$ac_t""no" 1>&6
2143 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2144 echo "configure:2145: checking whether time.h and sys/time.h may both be included" >&5
2145 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2147 else
2148 cat > conftest.$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2151 #include <sys/types.h>
2152 #include <sys/time.h>
2153 #include <time.h>
2154 int main() {
2155 struct tm *tp;
2156 ; return 0; }
2158 if { (eval echo configure:2159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2159 rm -rf conftest*
2160 ac_cv_header_time=yes
2161 else
2162 echo "configure: failed program was:" >&5
2163 cat conftest.$ac_ext >&5
2164 rm -rf conftest*
2165 ac_cv_header_time=no
2167 rm -f conftest*
2170 echo "$ac_t""$ac_cv_header_time" 1>&6
2171 if test $ac_cv_header_time = yes; then
2172 cat >> confdefs.h <<\EOF
2173 #define TIME_WITH_SYS_TIME 1
2178 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2179 echo "configure:2180: checking for sys/wait.h that is POSIX.1 compatible" >&5
2180 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2182 else
2183 cat > conftest.$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2186 #include <sys/types.h>
2187 #include <sys/wait.h>
2188 #ifndef WEXITSTATUS
2189 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2190 #endif
2191 #ifndef WIFEXITED
2192 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2193 #endif
2194 int main() {
2195 int s;
2196 wait (&s);
2197 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2198 ; return 0; }
2200 if { (eval echo configure:2201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2201 rm -rf conftest*
2202 ac_cv_header_sys_wait_h=yes
2203 else
2204 echo "configure: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2206 rm -rf conftest*
2207 ac_cv_header_sys_wait_h=no
2209 rm -f conftest*
2212 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2213 if test $ac_cv_header_sys_wait_h = yes; then
2214 cat >> confdefs.h <<\EOF
2215 #define HAVE_SYS_WAIT_H 1
2220 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2222 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2223 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2224 echo "configure:2225: checking for $ac_hdr" >&5
2225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2227 else
2228 cat > conftest.$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2231 #include <$ac_hdr>
2233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2234 { (eval echo configure:2235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2236 if test -z "$ac_err"; then
2237 rm -rf conftest*
2238 eval "ac_cv_header_$ac_safe=yes"
2239 else
2240 echo "$ac_err" >&5
2241 echo "configure: failed program was:" >&5
2242 cat conftest.$ac_ext >&5
2243 rm -rf conftest*
2244 eval "ac_cv_header_$ac_safe=no"
2246 rm -f conftest*
2248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2249 echo "$ac_t""yes" 1>&6
2250 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2251 cat >> confdefs.h <<EOF
2252 #define $ac_tr_hdr 1
2255 else
2256 echo "$ac_t""no" 1>&6
2258 done
2260 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2262 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2263 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2264 echo "configure:2265: checking for $ac_hdr" >&5
2265 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2267 else
2268 cat > conftest.$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2271 #include <$ac_hdr>
2273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2274 { (eval echo configure:2275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2276 if test -z "$ac_err"; then
2277 rm -rf conftest*
2278 eval "ac_cv_header_$ac_safe=yes"
2279 else
2280 echo "$ac_err" >&5
2281 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2283 rm -rf conftest*
2284 eval "ac_cv_header_$ac_safe=no"
2286 rm -f conftest*
2288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2289 echo "$ac_t""yes" 1>&6
2290 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2291 cat >> confdefs.h <<EOF
2292 #define $ac_tr_hdr 1
2295 else
2296 echo "$ac_t""no" 1>&6
2298 done
2300 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2304 echo "configure:2305: checking for $ac_hdr" >&5
2305 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2307 else
2308 cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2311 #include <$ac_hdr>
2313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2314 { (eval echo configure:2315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2316 if test -z "$ac_err"; then
2317 rm -rf conftest*
2318 eval "ac_cv_header_$ac_safe=yes"
2319 else
2320 echo "$ac_err" >&5
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2323 rm -rf conftest*
2324 eval "ac_cv_header_$ac_safe=no"
2326 rm -f conftest*
2328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2329 echo "$ac_t""yes" 1>&6
2330 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2331 cat >> confdefs.h <<EOF
2332 #define $ac_tr_hdr 1
2335 else
2336 echo "$ac_t""no" 1>&6
2338 done
2340 for ac_hdr in stdlib.h string.h strings.h syslog.h sys/file.h
2342 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2343 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2344 echo "configure:2345: checking for $ac_hdr" >&5
2345 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2347 else
2348 cat > conftest.$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2351 #include <$ac_hdr>
2353 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2354 { (eval echo configure:2355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2355 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2356 if test -z "$ac_err"; then
2357 rm -rf conftest*
2358 eval "ac_cv_header_$ac_safe=yes"
2359 else
2360 echo "$ac_err" >&5
2361 echo "configure: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2363 rm -rf conftest*
2364 eval "ac_cv_header_$ac_safe=no"
2366 rm -f conftest*
2368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2369 echo "$ac_t""yes" 1>&6
2370 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2371 cat >> confdefs.h <<EOF
2372 #define $ac_tr_hdr 1
2375 else
2376 echo "$ac_t""no" 1>&6
2378 done
2380 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2384 echo "configure:2385: checking for $ac_hdr" >&5
2385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2387 else
2388 cat > conftest.$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2391 #include <$ac_hdr>
2393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2394 { (eval echo configure:2395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2396 if test -z "$ac_err"; then
2397 rm -rf conftest*
2398 eval "ac_cv_header_$ac_safe=yes"
2399 else
2400 echo "$ac_err" >&5
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2403 rm -rf conftest*
2404 eval "ac_cv_header_$ac_safe=no"
2406 rm -f conftest*
2408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2409 echo "$ac_t""yes" 1>&6
2410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2411 cat >> confdefs.h <<EOF
2412 #define $ac_tr_hdr 1
2415 else
2416 echo "$ac_t""no" 1>&6
2418 done
2420 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h sys/socket.h
2422 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2424 echo "configure:2425: checking for $ac_hdr" >&5
2425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2427 else
2428 cat > conftest.$ac_ext <<EOF
2429 #line 2430 "configure"
2430 #include "confdefs.h"
2431 #include <$ac_hdr>
2433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2434 { (eval echo configure:2435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2436 if test -z "$ac_err"; then
2437 rm -rf conftest*
2438 eval "ac_cv_header_$ac_safe=yes"
2439 else
2440 echo "$ac_err" >&5
2441 echo "configure: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2443 rm -rf conftest*
2444 eval "ac_cv_header_$ac_safe=no"
2446 rm -f conftest*
2448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2451 cat >> confdefs.h <<EOF
2452 #define $ac_tr_hdr 1
2455 else
2456 echo "$ac_t""no" 1>&6
2458 done
2460 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
2462 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2464 echo "configure:2465: checking for $ac_hdr" >&5
2465 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2467 else
2468 cat > conftest.$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2471 #include <$ac_hdr>
2473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2474 { (eval echo configure:2475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2476 if test -z "$ac_err"; then
2477 rm -rf conftest*
2478 eval "ac_cv_header_$ac_safe=yes"
2479 else
2480 echo "$ac_err" >&5
2481 echo "configure: failed program was:" >&5
2482 cat conftest.$ac_ext >&5
2483 rm -rf conftest*
2484 eval "ac_cv_header_$ac_safe=no"
2486 rm -f conftest*
2488 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2489 echo "$ac_t""yes" 1>&6
2490 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2491 cat >> confdefs.h <<EOF
2492 #define $ac_tr_hdr 1
2495 else
2496 echo "$ac_t""no" 1>&6
2498 done
2500 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2502 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2504 echo "configure:2505: checking for $ac_hdr" >&5
2505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2507 else
2508 cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2511 #include <$ac_hdr>
2513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2514 { (eval echo configure:2515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2516 if test -z "$ac_err"; then
2517 rm -rf conftest*
2518 eval "ac_cv_header_$ac_safe=yes"
2519 else
2520 echo "$ac_err" >&5
2521 echo "configure: failed program was:" >&5
2522 cat conftest.$ac_ext >&5
2523 rm -rf conftest*
2524 eval "ac_cv_header_$ac_safe=no"
2526 rm -f conftest*
2528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2530 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2531 cat >> confdefs.h <<EOF
2532 #define $ac_tr_hdr 1
2535 else
2536 echo "$ac_t""no" 1>&6
2538 done
2540 for ac_hdr in security/pam_modules.h security/_pam_macros.h dlfcn.h synch.h pthread.h nsswitch.h
2542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2544 echo "configure:2545: checking for $ac_hdr" >&5
2545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2547 else
2548 cat > conftest.$ac_ext <<EOF
2549 #line 2550 "configure"
2550 #include "confdefs.h"
2551 #include <$ac_hdr>
2553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2554 { (eval echo configure:2555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2556 if test -z "$ac_err"; then
2557 rm -rf conftest*
2558 eval "ac_cv_header_$ac_safe=yes"
2559 else
2560 echo "$ac_err" >&5
2561 echo "configure: failed program was:" >&5
2562 cat conftest.$ac_ext >&5
2563 rm -rf conftest*
2564 eval "ac_cv_header_$ac_safe=no"
2566 rm -f conftest*
2568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2569 echo "$ac_t""yes" 1>&6
2570 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2571 cat >> confdefs.h <<EOF
2572 #define $ac_tr_hdr 1
2575 else
2576 echo "$ac_t""no" 1>&6
2578 done
2582 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2583 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2585 case "$host_os" in
2586 *hpux*)
2587 cat > conftest.$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2590 #include <shadow.h>
2591 int main() {
2592 struct spwd testme
2593 ; return 0; }
2595 if { (eval echo configure:2596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2596 rm -rf conftest*
2597 ac_cv_header_shadow_h=yes
2598 else
2599 echo "configure: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2601 rm -rf conftest*
2602 ac_cv_header_shadow_h=no
2604 rm -f conftest*
2605 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2606 cat >> confdefs.h <<\EOF
2607 #define HAVE_SHADOW_H 1
2612 esac
2613 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2615 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2616 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2617 echo "configure:2618: checking for $ac_hdr" >&5
2618 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2619 echo $ac_n "(cached) $ac_c" 1>&6
2620 else
2621 cat > conftest.$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2624 #include <$ac_hdr>
2626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2627 { (eval echo configure:2628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2629 if test -z "$ac_err"; then
2630 rm -rf conftest*
2631 eval "ac_cv_header_$ac_safe=yes"
2632 else
2633 echo "$ac_err" >&5
2634 echo "configure: failed program was:" >&5
2635 cat conftest.$ac_ext >&5
2636 rm -rf conftest*
2637 eval "ac_cv_header_$ac_safe=no"
2639 rm -f conftest*
2641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2642 echo "$ac_t""yes" 1>&6
2643 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2644 cat >> confdefs.h <<EOF
2645 #define $ac_tr_hdr 1
2648 else
2649 echo "$ac_t""no" 1>&6
2651 done
2653 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2655 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2656 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2657 echo "configure:2658: checking for $ac_hdr" >&5
2658 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2659 echo $ac_n "(cached) $ac_c" 1>&6
2660 else
2661 cat > conftest.$ac_ext <<EOF
2662 #line 2663 "configure"
2663 #include "confdefs.h"
2664 #include <$ac_hdr>
2666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2667 { (eval echo configure:2668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2668 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2669 if test -z "$ac_err"; then
2670 rm -rf conftest*
2671 eval "ac_cv_header_$ac_safe=yes"
2672 else
2673 echo "$ac_err" >&5
2674 echo "configure: failed program was:" >&5
2675 cat conftest.$ac_ext >&5
2676 rm -rf conftest*
2677 eval "ac_cv_header_$ac_safe=no"
2679 rm -f conftest*
2681 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2682 echo "$ac_t""yes" 1>&6
2683 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2684 cat >> confdefs.h <<EOF
2685 #define $ac_tr_hdr 1
2688 else
2689 echo "$ac_t""no" 1>&6
2691 done
2693 for ac_hdr in stropts.h poll.h
2695 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2697 echo "configure:2698: checking for $ac_hdr" >&5
2698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2700 else
2701 cat > conftest.$ac_ext <<EOF
2702 #line 2703 "configure"
2703 #include "confdefs.h"
2704 #include <$ac_hdr>
2706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2707 { (eval echo configure:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2709 if test -z "$ac_err"; then
2710 rm -rf conftest*
2711 eval "ac_cv_header_$ac_safe=yes"
2712 else
2713 echo "$ac_err" >&5
2714 echo "configure: failed program was:" >&5
2715 cat conftest.$ac_ext >&5
2716 rm -rf conftest*
2717 eval "ac_cv_header_$ac_safe=no"
2719 rm -f conftest*
2721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2722 echo "$ac_t""yes" 1>&6
2723 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2724 cat >> confdefs.h <<EOF
2725 #define $ac_tr_hdr 1
2728 else
2729 echo "$ac_t""no" 1>&6
2731 done
2733 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2737 echo "configure:2738: checking for $ac_hdr" >&5
2738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2740 else
2741 cat > conftest.$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2744 #include <$ac_hdr>
2746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2747 { (eval echo configure:2748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2749 if test -z "$ac_err"; then
2750 rm -rf conftest*
2751 eval "ac_cv_header_$ac_safe=yes"
2752 else
2753 echo "$ac_err" >&5
2754 echo "configure: failed program was:" >&5
2755 cat conftest.$ac_ext >&5
2756 rm -rf conftest*
2757 eval "ac_cv_header_$ac_safe=no"
2759 rm -f conftest*
2761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2762 echo "$ac_t""yes" 1>&6
2763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2764 cat >> confdefs.h <<EOF
2765 #define $ac_tr_hdr 1
2768 else
2769 echo "$ac_t""no" 1>&6
2771 done
2773 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2775 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2777 echo "configure:2778: checking for $ac_hdr" >&5
2778 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2779 echo $ac_n "(cached) $ac_c" 1>&6
2780 else
2781 cat > conftest.$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2784 #include <$ac_hdr>
2786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2787 { (eval echo configure:2788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2788 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2789 if test -z "$ac_err"; then
2790 rm -rf conftest*
2791 eval "ac_cv_header_$ac_safe=yes"
2792 else
2793 echo "$ac_err" >&5
2794 echo "configure: failed program was:" >&5
2795 cat conftest.$ac_ext >&5
2796 rm -rf conftest*
2797 eval "ac_cv_header_$ac_safe=no"
2799 rm -f conftest*
2801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2802 echo "$ac_t""yes" 1>&6
2803 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2804 cat >> confdefs.h <<EOF
2805 #define $ac_tr_hdr 1
2808 else
2809 echo "$ac_t""no" 1>&6
2811 done
2814 # For experimental utmp support (lastlog on some BSD-like systems)
2815 for ac_hdr in utmp.h utmpx.h lastlog.h
2817 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2819 echo "configure:2820: checking for $ac_hdr" >&5
2820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2821 echo $ac_n "(cached) $ac_c" 1>&6
2822 else
2823 cat > conftest.$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2826 #include <$ac_hdr>
2828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2829 { (eval echo configure:2830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2831 if test -z "$ac_err"; then
2832 rm -rf conftest*
2833 eval "ac_cv_header_$ac_safe=yes"
2834 else
2835 echo "$ac_err" >&5
2836 echo "configure: failed program was:" >&5
2837 cat conftest.$ac_ext >&5
2838 rm -rf conftest*
2839 eval "ac_cv_header_$ac_safe=no"
2841 rm -f conftest*
2843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2844 echo "$ac_t""yes" 1>&6
2845 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2846 cat >> confdefs.h <<EOF
2847 #define $ac_tr_hdr 1
2850 else
2851 echo "$ac_t""no" 1>&6
2853 done
2856 # For quotas on Veritas VxFS filesystems
2857 for ac_hdr in sys/fs/vx_quota.h
2859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2861 echo "configure:2862: checking for $ac_hdr" >&5
2862 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2863 echo $ac_n "(cached) $ac_c" 1>&6
2864 else
2865 cat > conftest.$ac_ext <<EOF
2866 #line 2867 "configure"
2867 #include "confdefs.h"
2868 #include <$ac_hdr>
2870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2871 { (eval echo configure:2872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2873 if test -z "$ac_err"; then
2874 rm -rf conftest*
2875 eval "ac_cv_header_$ac_safe=yes"
2876 else
2877 echo "$ac_err" >&5
2878 echo "configure: failed program was:" >&5
2879 cat conftest.$ac_ext >&5
2880 rm -rf conftest*
2881 eval "ac_cv_header_$ac_safe=no"
2883 rm -f conftest*
2885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2886 echo "$ac_t""yes" 1>&6
2887 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2888 cat >> confdefs.h <<EOF
2889 #define $ac_tr_hdr 1
2892 else
2893 echo "$ac_t""no" 1>&6
2895 done
2898 # For quotas on Linux XFS filesystems
2899 for ac_hdr in linux/xqm.h
2901 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2902 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2903 echo "configure:2904: checking for $ac_hdr" >&5
2904 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2906 else
2907 cat > conftest.$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2910 #include <$ac_hdr>
2912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2913 { (eval echo configure:2914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2915 if test -z "$ac_err"; then
2916 rm -rf conftest*
2917 eval "ac_cv_header_$ac_safe=yes"
2918 else
2919 echo "$ac_err" >&5
2920 echo "configure: failed program was:" >&5
2921 cat conftest.$ac_ext >&5
2922 rm -rf conftest*
2923 eval "ac_cv_header_$ac_safe=no"
2925 rm -f conftest*
2927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2928 echo "$ac_t""yes" 1>&6
2929 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2930 cat >> confdefs.h <<EOF
2931 #define $ac_tr_hdr 1
2934 else
2935 echo "$ac_t""no" 1>&6
2937 done
2940 echo $ac_n "checking size of int""... $ac_c" 1>&6
2941 echo "configure:2942: checking size of int" >&5
2942 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2944 else
2945 if test "$cross_compiling" = yes; then
2946 ac_cv_sizeof_int=cross
2947 else
2948 cat > conftest.$ac_ext <<EOF
2949 #line 2950 "configure"
2950 #include "confdefs.h"
2951 #include <stdio.h>
2952 int main()
2954 FILE *f=fopen("conftestval", "w");
2955 if (!f) return(1);
2956 fprintf(f, "%d\n", sizeof(int));
2957 return(0);
2960 if { (eval echo configure:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2961 then
2962 ac_cv_sizeof_int=`cat conftestval`
2963 else
2964 echo "configure: failed program was:" >&5
2965 cat conftest.$ac_ext >&5
2966 rm -fr conftest*
2967 ac_cv_sizeof_int=0
2969 rm -fr conftest*
2973 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2974 cat >> confdefs.h <<EOF
2975 #define SIZEOF_INT $ac_cv_sizeof_int
2979 echo $ac_n "checking size of long""... $ac_c" 1>&6
2980 echo "configure:2981: checking size of long" >&5
2981 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2983 else
2984 if test "$cross_compiling" = yes; then
2985 ac_cv_sizeof_long=cross
2986 else
2987 cat > conftest.$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2990 #include <stdio.h>
2991 int main()
2993 FILE *f=fopen("conftestval", "w");
2994 if (!f) return(1);
2995 fprintf(f, "%d\n", sizeof(long));
2996 return(0);
2999 if { (eval echo configure:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3000 then
3001 ac_cv_sizeof_long=`cat conftestval`
3002 else
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3005 rm -fr conftest*
3006 ac_cv_sizeof_long=0
3008 rm -fr conftest*
3012 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3013 cat >> confdefs.h <<EOF
3014 #define SIZEOF_LONG $ac_cv_sizeof_long
3018 echo $ac_n "checking size of short""... $ac_c" 1>&6
3019 echo "configure:3020: checking size of short" >&5
3020 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3022 else
3023 if test "$cross_compiling" = yes; then
3024 ac_cv_sizeof_short=cross
3025 else
3026 cat > conftest.$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3029 #include <stdio.h>
3030 int main()
3032 FILE *f=fopen("conftestval", "w");
3033 if (!f) return(1);
3034 fprintf(f, "%d\n", sizeof(short));
3035 return(0);
3038 if { (eval echo configure:3039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3039 then
3040 ac_cv_sizeof_short=`cat conftestval`
3041 else
3042 echo "configure: failed program was:" >&5
3043 cat conftest.$ac_ext >&5
3044 rm -fr conftest*
3045 ac_cv_sizeof_short=0
3047 rm -fr conftest*
3051 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3052 cat >> confdefs.h <<EOF
3053 #define SIZEOF_SHORT $ac_cv_sizeof_short
3058 echo $ac_n "checking for working const""... $ac_c" 1>&6
3059 echo "configure:3060: checking for working const" >&5
3060 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3062 else
3063 cat > conftest.$ac_ext <<EOF
3064 #line 3065 "configure"
3065 #include "confdefs.h"
3067 int main() {
3069 /* Ultrix mips cc rejects this. */
3070 typedef int charset[2]; const charset x;
3071 /* SunOS 4.1.1 cc rejects this. */
3072 char const *const *ccp;
3073 char **p;
3074 /* NEC SVR4.0.2 mips cc rejects this. */
3075 struct point {int x, y;};
3076 static struct point const zero = {0,0};
3077 /* AIX XL C 1.02.0.0 rejects this.
3078 It does not let you subtract one const X* pointer from another in an arm
3079 of an if-expression whose if-part is not a constant expression */
3080 const char *g = "string";
3081 ccp = &g + (g ? g-g : 0);
3082 /* HPUX 7.0 cc rejects these. */
3083 ++ccp;
3084 p = (char**) ccp;
3085 ccp = (char const *const *) p;
3086 { /* SCO 3.2v4 cc rejects this. */
3087 char *t;
3088 char const *s = 0 ? (char *) 0 : (char const *) 0;
3090 *t++ = 0;
3092 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3093 int x[] = {25, 17};
3094 const int *foo = &x[0];
3095 ++foo;
3097 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3098 typedef const int *iptr;
3099 iptr p = 0;
3100 ++p;
3102 { /* AIX XL C 1.02.0.0 rejects this saying
3103 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3104 struct s { int j; const int *ap[3]; };
3105 struct s *b; b->j = 5;
3107 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3108 const int foo = 10;
3111 ; return 0; }
3113 if { (eval echo configure:3114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3114 rm -rf conftest*
3115 ac_cv_c_const=yes
3116 else
3117 echo "configure: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3119 rm -rf conftest*
3120 ac_cv_c_const=no
3122 rm -f conftest*
3125 echo "$ac_t""$ac_cv_c_const" 1>&6
3126 if test $ac_cv_c_const = no; then
3127 cat >> confdefs.h <<\EOF
3128 #define const
3133 echo $ac_n "checking for inline""... $ac_c" 1>&6
3134 echo "configure:3135: checking for inline" >&5
3135 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3136 echo $ac_n "(cached) $ac_c" 1>&6
3137 else
3138 ac_cv_c_inline=no
3139 for ac_kw in inline __inline__ __inline; do
3140 cat > conftest.$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3144 int main() {
3145 } $ac_kw foo() {
3146 ; return 0; }
3148 if { (eval echo configure:3149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3149 rm -rf conftest*
3150 ac_cv_c_inline=$ac_kw; break
3151 else
3152 echo "configure: failed program was:" >&5
3153 cat conftest.$ac_ext >&5
3155 rm -f conftest*
3156 done
3160 echo "$ac_t""$ac_cv_c_inline" 1>&6
3161 case "$ac_cv_c_inline" in
3162 inline | yes) ;;
3163 no) cat >> confdefs.h <<\EOF
3164 #define inline
3167 *) cat >> confdefs.h <<EOF
3168 #define inline $ac_cv_c_inline
3171 esac
3173 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3174 echo "configure:3175: checking whether byte ordering is bigendian" >&5
3175 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3176 echo $ac_n "(cached) $ac_c" 1>&6
3177 else
3178 ac_cv_c_bigendian=unknown
3179 # See if sys/param.h defines the BYTE_ORDER macro.
3180 cat > conftest.$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3183 #include <sys/types.h>
3184 #include <sys/param.h>
3185 int main() {
3187 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3188 bogus endian macros
3189 #endif
3190 ; return 0; }
3192 if { (eval echo configure:3193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3193 rm -rf conftest*
3194 # It does; now see whether it defined to BIG_ENDIAN or not.
3195 cat > conftest.$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3198 #include <sys/types.h>
3199 #include <sys/param.h>
3200 int main() {
3202 #if BYTE_ORDER != BIG_ENDIAN
3203 not big endian
3204 #endif
3205 ; return 0; }
3207 if { (eval echo configure:3208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3208 rm -rf conftest*
3209 ac_cv_c_bigendian=yes
3210 else
3211 echo "configure: failed program was:" >&5
3212 cat conftest.$ac_ext >&5
3213 rm -rf conftest*
3214 ac_cv_c_bigendian=no
3216 rm -f conftest*
3217 else
3218 echo "configure: failed program was:" >&5
3219 cat conftest.$ac_ext >&5
3221 rm -f conftest*
3222 if test $ac_cv_c_bigendian = unknown; then
3223 if test "$cross_compiling" = yes; then
3224 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3225 else
3226 cat > conftest.$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3229 main () {
3230 /* Are we little or big endian? From Harbison&Steele. */
3231 union
3233 long l;
3234 char c[sizeof (long)];
3235 } u;
3236 u.l = 1;
3237 exit (u.c[sizeof (long) - 1] == 1);
3240 if { (eval echo configure:3241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3241 then
3242 ac_cv_c_bigendian=no
3243 else
3244 echo "configure: failed program was:" >&5
3245 cat conftest.$ac_ext >&5
3246 rm -fr conftest*
3247 ac_cv_c_bigendian=yes
3249 rm -fr conftest*
3255 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3256 if test $ac_cv_c_bigendian = yes; then
3257 cat >> confdefs.h <<\EOF
3258 #define WORDS_BIGENDIAN 1
3263 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3264 echo "configure:3265: checking whether char is unsigned" >&5
3265 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3266 echo $ac_n "(cached) $ac_c" 1>&6
3267 else
3268 if test "$GCC" = yes; then
3269 # GCC predefines this symbol on systems where it applies.
3270 cat > conftest.$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3273 #ifdef __CHAR_UNSIGNED__
3275 #endif
3278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3279 egrep "yes" >/dev/null 2>&1; then
3280 rm -rf conftest*
3281 ac_cv_c_char_unsigned=yes
3282 else
3283 rm -rf conftest*
3284 ac_cv_c_char_unsigned=no
3286 rm -f conftest*
3288 else
3289 if test "$cross_compiling" = yes; then
3290 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3291 else
3292 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3296 #if !defined(__STDC__) || __STDC__ != 1
3297 #define volatile
3298 #endif
3299 main() {
3300 volatile char c = 255; exit(c < 0);
3303 if { (eval echo configure:3304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3304 then
3305 ac_cv_c_char_unsigned=yes
3306 else
3307 echo "configure: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3309 rm -fr conftest*
3310 ac_cv_c_char_unsigned=no
3312 rm -fr conftest*
3318 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3319 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3320 cat >> confdefs.h <<\EOF
3321 #define __CHAR_UNSIGNED__ 1
3327 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3328 echo "configure:3329: checking return type of signal handlers" >&5
3329 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3330 echo $ac_n "(cached) $ac_c" 1>&6
3331 else
3332 cat > conftest.$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3335 #include <sys/types.h>
3336 #include <signal.h>
3337 #ifdef signal
3338 #undef signal
3339 #endif
3340 #ifdef __cplusplus
3341 extern "C" void (*signal (int, void (*)(int)))(int);
3342 #else
3343 void (*signal ()) ();
3344 #endif
3346 int main() {
3347 int i;
3348 ; return 0; }
3350 if { (eval echo configure:3351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3351 rm -rf conftest*
3352 ac_cv_type_signal=void
3353 else
3354 echo "configure: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3356 rm -rf conftest*
3357 ac_cv_type_signal=int
3359 rm -f conftest*
3362 echo "$ac_t""$ac_cv_type_signal" 1>&6
3363 cat >> confdefs.h <<EOF
3364 #define RETSIGTYPE $ac_cv_type_signal
3368 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3369 echo "configure:3370: checking for uid_t in sys/types.h" >&5
3370 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3371 echo $ac_n "(cached) $ac_c" 1>&6
3372 else
3373 cat > conftest.$ac_ext <<EOF
3374 #line 3375 "configure"
3375 #include "confdefs.h"
3376 #include <sys/types.h>
3378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3379 egrep "uid_t" >/dev/null 2>&1; then
3380 rm -rf conftest*
3381 ac_cv_type_uid_t=yes
3382 else
3383 rm -rf conftest*
3384 ac_cv_type_uid_t=no
3386 rm -f conftest*
3390 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3391 if test $ac_cv_type_uid_t = no; then
3392 cat >> confdefs.h <<\EOF
3393 #define uid_t int
3396 cat >> confdefs.h <<\EOF
3397 #define gid_t int
3402 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3403 echo "configure:3404: checking for mode_t" >&5
3404 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3405 echo $ac_n "(cached) $ac_c" 1>&6
3406 else
3407 cat > conftest.$ac_ext <<EOF
3408 #line 3409 "configure"
3409 #include "confdefs.h"
3410 #include <sys/types.h>
3411 #if STDC_HEADERS
3412 #include <stdlib.h>
3413 #include <stddef.h>
3414 #endif
3416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3417 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3418 rm -rf conftest*
3419 ac_cv_type_mode_t=yes
3420 else
3421 rm -rf conftest*
3422 ac_cv_type_mode_t=no
3424 rm -f conftest*
3427 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3428 if test $ac_cv_type_mode_t = no; then
3429 cat >> confdefs.h <<\EOF
3430 #define mode_t int
3435 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3436 echo "configure:3437: checking for off_t" >&5
3437 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3439 else
3440 cat > conftest.$ac_ext <<EOF
3441 #line 3442 "configure"
3442 #include "confdefs.h"
3443 #include <sys/types.h>
3444 #if STDC_HEADERS
3445 #include <stdlib.h>
3446 #include <stddef.h>
3447 #endif
3449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3450 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3451 rm -rf conftest*
3452 ac_cv_type_off_t=yes
3453 else
3454 rm -rf conftest*
3455 ac_cv_type_off_t=no
3457 rm -f conftest*
3460 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3461 if test $ac_cv_type_off_t = no; then
3462 cat >> confdefs.h <<\EOF
3463 #define off_t long
3468 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3469 echo "configure:3470: checking for size_t" >&5
3470 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3471 echo $ac_n "(cached) $ac_c" 1>&6
3472 else
3473 cat > conftest.$ac_ext <<EOF
3474 #line 3475 "configure"
3475 #include "confdefs.h"
3476 #include <sys/types.h>
3477 #if STDC_HEADERS
3478 #include <stdlib.h>
3479 #include <stddef.h>
3480 #endif
3482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3483 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3484 rm -rf conftest*
3485 ac_cv_type_size_t=yes
3486 else
3487 rm -rf conftest*
3488 ac_cv_type_size_t=no
3490 rm -f conftest*
3493 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3494 if test $ac_cv_type_size_t = no; then
3495 cat >> confdefs.h <<\EOF
3496 #define size_t unsigned
3501 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3502 echo "configure:3503: checking for pid_t" >&5
3503 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3504 echo $ac_n "(cached) $ac_c" 1>&6
3505 else
3506 cat > conftest.$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3509 #include <sys/types.h>
3510 #if STDC_HEADERS
3511 #include <stdlib.h>
3512 #include <stddef.h>
3513 #endif
3515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3516 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3517 rm -rf conftest*
3518 ac_cv_type_pid_t=yes
3519 else
3520 rm -rf conftest*
3521 ac_cv_type_pid_t=no
3523 rm -f conftest*
3526 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3527 if test $ac_cv_type_pid_t = no; then
3528 cat >> confdefs.h <<\EOF
3529 #define pid_t int
3534 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3535 echo "configure:3536: checking for st_rdev in struct stat" >&5
3536 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3538 else
3539 cat > conftest.$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3542 #include <sys/types.h>
3543 #include <sys/stat.h>
3544 int main() {
3545 struct stat s; s.st_rdev;
3546 ; return 0; }
3548 if { (eval echo configure:3549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3549 rm -rf conftest*
3550 ac_cv_struct_st_rdev=yes
3551 else
3552 echo "configure: failed program was:" >&5
3553 cat conftest.$ac_ext >&5
3554 rm -rf conftest*
3555 ac_cv_struct_st_rdev=no
3557 rm -f conftest*
3560 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3561 if test $ac_cv_struct_st_rdev = yes; then
3562 cat >> confdefs.h <<\EOF
3563 #define HAVE_ST_RDEV 1
3568 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3569 echo "configure:3570: checking for d_off in dirent" >&5
3570 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3572 else
3573 cat > conftest.$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3577 #include <unistd.h>
3578 #include <sys/types.h>
3579 #include <dirent.h>
3580 int main() {
3581 struct dirent d; d.d_off;
3582 ; return 0; }
3584 if { (eval echo configure:3585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3585 rm -rf conftest*
3586 ac_cv_dirent_d_off=yes
3587 else
3588 echo "configure: failed program was:" >&5
3589 cat conftest.$ac_ext >&5
3590 rm -rf conftest*
3591 ac_cv_dirent_d_off=no
3593 rm -f conftest*
3596 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3597 if test $ac_cv_dirent_d_off = yes; then
3598 cat >> confdefs.h <<\EOF
3599 #define HAVE_DIRENT_D_OFF 1
3604 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3605 echo "configure:3606: checking for ino_t" >&5
3606 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3607 echo $ac_n "(cached) $ac_c" 1>&6
3608 else
3609 cat > conftest.$ac_ext <<EOF
3610 #line 3611 "configure"
3611 #include "confdefs.h"
3612 #include <sys/types.h>
3613 #if STDC_HEADERS
3614 #include <stdlib.h>
3615 #include <stddef.h>
3616 #endif
3618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3619 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3620 rm -rf conftest*
3621 ac_cv_type_ino_t=yes
3622 else
3623 rm -rf conftest*
3624 ac_cv_type_ino_t=no
3626 rm -f conftest*
3629 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3630 if test $ac_cv_type_ino_t = no; then
3631 cat >> confdefs.h <<\EOF
3632 #define ino_t unsigned
3637 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3638 echo "configure:3639: checking for loff_t" >&5
3639 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3640 echo $ac_n "(cached) $ac_c" 1>&6
3641 else
3642 cat > conftest.$ac_ext <<EOF
3643 #line 3644 "configure"
3644 #include "confdefs.h"
3645 #include <sys/types.h>
3646 #if STDC_HEADERS
3647 #include <stdlib.h>
3648 #include <stddef.h>
3649 #endif
3651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3652 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3653 rm -rf conftest*
3654 ac_cv_type_loff_t=yes
3655 else
3656 rm -rf conftest*
3657 ac_cv_type_loff_t=no
3659 rm -f conftest*
3662 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3663 if test $ac_cv_type_loff_t = no; then
3664 cat >> confdefs.h <<\EOF
3665 #define loff_t off_t
3670 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3671 echo "configure:3672: checking for offset_t" >&5
3672 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3674 else
3675 cat > conftest.$ac_ext <<EOF
3676 #line 3677 "configure"
3677 #include "confdefs.h"
3678 #include <sys/types.h>
3679 #if STDC_HEADERS
3680 #include <stdlib.h>
3681 #include <stddef.h>
3682 #endif
3684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3685 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3686 rm -rf conftest*
3687 ac_cv_type_offset_t=yes
3688 else
3689 rm -rf conftest*
3690 ac_cv_type_offset_t=no
3692 rm -f conftest*
3695 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3696 if test $ac_cv_type_offset_t = no; then
3697 cat >> confdefs.h <<\EOF
3698 #define offset_t loff_t
3703 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3704 echo "configure:3705: checking for ssize_t" >&5
3705 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3706 echo $ac_n "(cached) $ac_c" 1>&6
3707 else
3708 cat > conftest.$ac_ext <<EOF
3709 #line 3710 "configure"
3710 #include "confdefs.h"
3711 #include <sys/types.h>
3712 #if STDC_HEADERS
3713 #include <stdlib.h>
3714 #include <stddef.h>
3715 #endif
3717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3718 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3719 rm -rf conftest*
3720 ac_cv_type_ssize_t=yes
3721 else
3722 rm -rf conftest*
3723 ac_cv_type_ssize_t=no
3725 rm -f conftest*
3728 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3729 if test $ac_cv_type_ssize_t = no; then
3730 cat >> confdefs.h <<\EOF
3731 #define ssize_t int
3736 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3737 echo "configure:3738: checking for wchar_t" >&5
3738 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
3740 else
3741 cat > conftest.$ac_ext <<EOF
3742 #line 3743 "configure"
3743 #include "confdefs.h"
3744 #include <sys/types.h>
3745 #if STDC_HEADERS
3746 #include <stdlib.h>
3747 #include <stddef.h>
3748 #endif
3750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3751 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3752 rm -rf conftest*
3753 ac_cv_type_wchar_t=yes
3754 else
3755 rm -rf conftest*
3756 ac_cv_type_wchar_t=no
3758 rm -f conftest*
3761 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3762 if test $ac_cv_type_wchar_t = no; then
3763 cat >> confdefs.h <<\EOF
3764 #define wchar_t unsigned short
3770 ############################################
3771 # for cups support we need libcups, and a handful of header files
3773 # Check whether --enable-cups or --disable-cups was given.
3774 if test "${enable_cups+set}" = set; then
3775 enableval="$enable_cups"
3780 if test x$enable_cups != xno; then
3781 # Extract the first word of "cups-config", so it can be a program name with args.
3782 set dummy cups-config; ac_word=$2
3783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3784 echo "configure:3785: checking for $ac_word" >&5
3785 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3787 else
3788 case "$CUPS_CONFIG" in
3790 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
3792 ?:/*)
3793 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
3796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3797 ac_dummy="$PATH"
3798 for ac_dir in $ac_dummy; do
3799 test -z "$ac_dir" && ac_dir=.
3800 if test -f $ac_dir/$ac_word; then
3801 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
3802 break
3804 done
3805 IFS="$ac_save_ifs"
3807 esac
3809 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
3810 if test -n "$CUPS_CONFIG"; then
3811 echo "$ac_t""$CUPS_CONFIG" 1>&6
3812 else
3813 echo "$ac_t""no" 1>&6
3817 if test "x$CUPS_CONFIG" != x; then
3818 cat >> confdefs.h <<\EOF
3819 #define HAVE_CUPS 1
3822 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
3823 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3824 LIBS="$LIBS `$CUPS_CONFIG --libs`"
3828 ############################################
3829 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3830 for ac_func in dlopen
3832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3833 echo "configure:3834: checking for $ac_func" >&5
3834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3836 else
3837 cat > conftest.$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3840 /* System header to define __stub macros and hopefully few prototypes,
3841 which can conflict with char $ac_func(); below. */
3842 #include <assert.h>
3843 /* Override any gcc2 internal prototype to avoid an error. */
3844 /* We use char because int might match the return type of a gcc2
3845 builtin and then its argument prototype would still apply. */
3846 char $ac_func();
3848 int main() {
3850 /* The GNU C library defines this for functions which it implements
3851 to always fail with ENOSYS. Some functions are actually named
3852 something starting with __ and the normal name is an alias. */
3853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3854 choke me
3855 #else
3856 $ac_func();
3857 #endif
3859 ; return 0; }
3861 if { (eval echo configure:3862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3862 rm -rf conftest*
3863 eval "ac_cv_func_$ac_func=yes"
3864 else
3865 echo "configure: failed program was:" >&5
3866 cat conftest.$ac_ext >&5
3867 rm -rf conftest*
3868 eval "ac_cv_func_$ac_func=no"
3870 rm -f conftest*
3873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3874 echo "$ac_t""yes" 1>&6
3875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3876 cat >> confdefs.h <<EOF
3877 #define $ac_tr_func 1
3880 else
3881 echo "$ac_t""no" 1>&6
3883 done
3885 if test x"$ac_cv_func_dlopen" = x"no"; then
3886 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3887 echo "configure:3888: checking for dlopen in -ldl" >&5
3888 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3890 echo $ac_n "(cached) $ac_c" 1>&6
3891 else
3892 ac_save_LIBS="$LIBS"
3893 LIBS="-ldl $LIBS"
3894 cat > conftest.$ac_ext <<EOF
3895 #line 3896 "configure"
3896 #include "confdefs.h"
3897 /* Override any gcc2 internal prototype to avoid an error. */
3898 /* We use char because int might match the return type of a gcc2
3899 builtin and then its argument prototype would still apply. */
3900 char dlopen();
3902 int main() {
3903 dlopen()
3904 ; return 0; }
3906 if { (eval echo configure:3907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3907 rm -rf conftest*
3908 eval "ac_cv_lib_$ac_lib_var=yes"
3909 else
3910 echo "configure: failed program was:" >&5
3911 cat conftest.$ac_ext >&5
3912 rm -rf conftest*
3913 eval "ac_cv_lib_$ac_lib_var=no"
3915 rm -f conftest*
3916 LIBS="$ac_save_LIBS"
3919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3920 echo "$ac_t""yes" 1>&6
3921 LIBS="$LIBS -ldl";
3922 cat >> confdefs.h <<\EOF
3923 #define HAVE_DLOPEN 1
3926 else
3927 echo "$ac_t""no" 1>&6
3931 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3933 ############################################
3934 # check if the compiler can do immediate structures
3935 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3936 echo "configure:3937: checking for immediate structures" >&5
3937 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3939 else
3941 cat > conftest.$ac_ext <<EOF
3942 #line 3943 "configure"
3943 #include "confdefs.h"
3945 #include <stdio.h>
3946 int main() {
3948 typedef struct {unsigned x;} FOOBAR;
3949 #define X_FOOBAR(x) ((FOOBAR) { x })
3950 #define FOO_ONE X_FOOBAR(1)
3951 FOOBAR f = FOO_ONE;
3952 static struct {
3953 FOOBAR y;
3954 } f2[] = {
3955 {FOO_ONE}
3958 ; return 0; }
3960 if { (eval echo configure:3961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3961 rm -rf conftest*
3962 samba_cv_immediate_structures=yes
3963 else
3964 echo "configure: failed program was:" >&5
3965 cat conftest.$ac_ext >&5
3966 rm -rf conftest*
3967 samba_cv_immediate_structures=no
3969 rm -f conftest*
3972 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3973 if test x"$samba_cv_immediate_structures" = x"yes"; then
3974 cat >> confdefs.h <<\EOF
3975 #define HAVE_IMMEDIATE_STRUCTURES 1
3980 ############################################
3981 # check for unix domain sockets
3982 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3983 echo "configure:3984: checking for unix domain sockets" >&5
3984 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3985 echo $ac_n "(cached) $ac_c" 1>&6
3986 else
3988 cat > conftest.$ac_ext <<EOF
3989 #line 3990 "configure"
3990 #include "confdefs.h"
3992 #include <sys/types.h>
3993 #include <stdlib.h>
3994 #include <stddef.h>
3995 #include <sys/socket.h>
3996 #include <sys/un.h>
3997 int main() {
3999 struct sockaddr_un sunaddr;
4000 sunaddr.sun_family = AF_UNIX;
4002 ; return 0; }
4004 if { (eval echo configure:4005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4005 rm -rf conftest*
4006 samba_cv_unixsocket=yes
4007 else
4008 echo "configure: failed program was:" >&5
4009 cat conftest.$ac_ext >&5
4010 rm -rf conftest*
4011 samba_cv_unixsocket=no
4013 rm -f conftest*
4016 echo "$ac_t""$samba_cv_unixsocket" 1>&6
4017 if test x"$samba_cv_unixsocket" = x"yes"; then
4018 cat >> confdefs.h <<\EOF
4019 #define HAVE_UNIXSOCKET 1
4024 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
4025 echo "configure:4026: checking for socklen_t type" >&5
4026 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
4027 echo $ac_n "(cached) $ac_c" 1>&6
4028 else
4030 cat > conftest.$ac_ext <<EOF
4031 #line 4032 "configure"
4032 #include "confdefs.h"
4034 #include <sys/types.h>
4035 #if STDC_HEADERS
4036 #include <stdlib.h>
4037 #include <stddef.h>
4038 #endif
4039 #include <sys/socket.h>
4040 int main() {
4041 socklen_t i = 0
4042 ; return 0; }
4044 if { (eval echo configure:4045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4045 rm -rf conftest*
4046 samba_cv_socklen_t=yes
4047 else
4048 echo "configure: failed program was:" >&5
4049 cat conftest.$ac_ext >&5
4050 rm -rf conftest*
4051 samba_cv_socklen_t=no
4053 rm -f conftest*
4056 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4057 if test x"$samba_cv_socklen_t" = x"yes"; then
4058 cat >> confdefs.h <<\EOF
4059 #define HAVE_SOCKLEN_T_TYPE 1
4064 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4065 echo "configure:4066: checking for sig_atomic_t type" >&5
4066 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4067 echo $ac_n "(cached) $ac_c" 1>&6
4068 else
4070 cat > conftest.$ac_ext <<EOF
4071 #line 4072 "configure"
4072 #include "confdefs.h"
4074 #include <sys/types.h>
4075 #if STDC_HEADERS
4076 #include <stdlib.h>
4077 #include <stddef.h>
4078 #endif
4079 #include <signal.h>
4080 int main() {
4081 sig_atomic_t i = 0
4082 ; return 0; }
4084 if { (eval echo configure:4085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4085 rm -rf conftest*
4086 samba_cv_sig_atomic_t=yes
4087 else
4088 echo "configure: failed program was:" >&5
4089 cat conftest.$ac_ext >&5
4090 rm -rf conftest*
4091 samba_cv_sig_atomic_t=no
4093 rm -f conftest*
4096 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4097 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4098 cat >> confdefs.h <<\EOF
4099 #define HAVE_SIG_ATOMIC_T_TYPE 1
4104 # stupid headers have the functions but no declaration. grrrr.
4106 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4107 echo "configure:4108: checking for errno declaration" >&5
4108 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4110 else
4112 cat > conftest.$ac_ext <<EOF
4113 #line 4114 "configure"
4114 #include "confdefs.h"
4115 #include <errno.h>
4116 int main() {
4117 int i = (int)errno
4118 ; return 0; }
4120 if { (eval echo configure:4121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4121 rm -rf conftest*
4122 ac_cv_have_errno_decl=yes
4123 else
4124 echo "configure: failed program was:" >&5
4125 cat conftest.$ac_ext >&5
4126 rm -rf conftest*
4127 ac_cv_have_errno_decl=no
4129 rm -f conftest*
4132 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4133 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4134 cat >> confdefs.h <<\EOF
4135 #define HAVE_ERRNO_DECL 1
4141 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4142 echo "configure:4143: checking for setresuid declaration" >&5
4143 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4144 echo $ac_n "(cached) $ac_c" 1>&6
4145 else
4147 cat > conftest.$ac_ext <<EOF
4148 #line 4149 "configure"
4149 #include "confdefs.h"
4150 #include <unistd.h>
4151 int main() {
4152 int i = (int)setresuid
4153 ; return 0; }
4155 if { (eval echo configure:4156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4156 rm -rf conftest*
4157 ac_cv_have_setresuid_decl=yes
4158 else
4159 echo "configure: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
4161 rm -rf conftest*
4162 ac_cv_have_setresuid_decl=no
4164 rm -f conftest*
4167 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4168 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4169 cat >> confdefs.h <<\EOF
4170 #define HAVE_SETRESUID_DECL 1
4176 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4177 echo "configure:4178: checking for setresgid declaration" >&5
4178 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
4180 else
4182 cat > conftest.$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4185 #include <unistd.h>
4186 int main() {
4187 int i = (int)setresgid
4188 ; return 0; }
4190 if { (eval echo configure:4191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4191 rm -rf conftest*
4192 ac_cv_have_setresgid_decl=yes
4193 else
4194 echo "configure: failed program was:" >&5
4195 cat conftest.$ac_ext >&5
4196 rm -rf conftest*
4197 ac_cv_have_setresgid_decl=no
4199 rm -f conftest*
4202 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4203 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4204 cat >> confdefs.h <<\EOF
4205 #define HAVE_SETRESGID_DECL 1
4211 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4212 echo "configure:4213: checking for asprintf declaration" >&5
4213 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4214 echo $ac_n "(cached) $ac_c" 1>&6
4215 else
4217 cat > conftest.$ac_ext <<EOF
4218 #line 4219 "configure"
4219 #include "confdefs.h"
4220 #include <stdio.h>
4221 int main() {
4222 int i = (int)asprintf
4223 ; return 0; }
4225 if { (eval echo configure:4226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4226 rm -rf conftest*
4227 ac_cv_have_asprintf_decl=yes
4228 else
4229 echo "configure: failed program was:" >&5
4230 cat conftest.$ac_ext >&5
4231 rm -rf conftest*
4232 ac_cv_have_asprintf_decl=no
4234 rm -f conftest*
4237 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4238 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4239 cat >> confdefs.h <<\EOF
4240 #define HAVE_ASPRINTF_DECL 1
4246 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4247 echo "configure:4248: checking for vasprintf declaration" >&5
4248 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4249 echo $ac_n "(cached) $ac_c" 1>&6
4250 else
4252 cat > conftest.$ac_ext <<EOF
4253 #line 4254 "configure"
4254 #include "confdefs.h"
4255 #include <stdio.h>
4256 int main() {
4257 int i = (int)vasprintf
4258 ; return 0; }
4260 if { (eval echo configure:4261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4261 rm -rf conftest*
4262 ac_cv_have_vasprintf_decl=yes
4263 else
4264 echo "configure: failed program was:" >&5
4265 cat conftest.$ac_ext >&5
4266 rm -rf conftest*
4267 ac_cv_have_vasprintf_decl=no
4269 rm -f conftest*
4272 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4273 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4274 cat >> confdefs.h <<\EOF
4275 #define HAVE_VASPRINTF_DECL 1
4281 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4282 echo "configure:4283: checking for vsnprintf declaration" >&5
4283 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4284 echo $ac_n "(cached) $ac_c" 1>&6
4285 else
4287 cat > conftest.$ac_ext <<EOF
4288 #line 4289 "configure"
4289 #include "confdefs.h"
4290 #include <stdio.h>
4291 int main() {
4292 int i = (int)vsnprintf
4293 ; return 0; }
4295 if { (eval echo configure:4296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4296 rm -rf conftest*
4297 ac_cv_have_vsnprintf_decl=yes
4298 else
4299 echo "configure: failed program was:" >&5
4300 cat conftest.$ac_ext >&5
4301 rm -rf conftest*
4302 ac_cv_have_vsnprintf_decl=no
4304 rm -f conftest*
4307 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4308 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4309 cat >> confdefs.h <<\EOF
4310 #define HAVE_VSNPRINTF_DECL 1
4316 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4317 echo "configure:4318: checking for snprintf declaration" >&5
4318 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4319 echo $ac_n "(cached) $ac_c" 1>&6
4320 else
4322 cat > conftest.$ac_ext <<EOF
4323 #line 4324 "configure"
4324 #include "confdefs.h"
4325 #include <stdio.h>
4326 int main() {
4327 int i = (int)snprintf
4328 ; return 0; }
4330 if { (eval echo configure:4331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4331 rm -rf conftest*
4332 ac_cv_have_snprintf_decl=yes
4333 else
4334 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4336 rm -rf conftest*
4337 ac_cv_have_snprintf_decl=no
4339 rm -f conftest*
4342 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4343 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4344 cat >> confdefs.h <<\EOF
4345 #define HAVE_SNPRINTF_DECL 1
4351 # and glibc has setresuid under linux but the function does
4352 # nothing until kernel 2.1.44! very dumb.
4353 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4354 echo "configure:4355: checking for real setresuid" >&5
4355 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4356 echo $ac_n "(cached) $ac_c" 1>&6
4357 else
4359 if test "$cross_compiling" = yes; then
4360 samba_cv_have_setresuid=cross
4361 else
4362 cat > conftest.$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4365 #include <errno.h>
4366 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4368 if { (eval echo configure:4369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4369 then
4370 samba_cv_have_setresuid=yes
4371 else
4372 echo "configure: failed program was:" >&5
4373 cat conftest.$ac_ext >&5
4374 rm -fr conftest*
4375 samba_cv_have_setresuid=no
4377 rm -fr conftest*
4382 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4383 if test x"$samba_cv_have_setresuid" = x"yes"; then
4384 cat >> confdefs.h <<\EOF
4385 #define HAVE_SETRESUID 1
4390 # Do the same check for setresguid...
4392 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4393 echo "configure:4394: checking for real setresgid" >&5
4394 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4395 echo $ac_n "(cached) $ac_c" 1>&6
4396 else
4398 if test "$cross_compiling" = yes; then
4399 samba_cv_have_setresgid=cross
4400 else
4401 cat > conftest.$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4404 #include <unistd.h>
4405 #include <errno.h>
4406 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4408 if { (eval echo configure:4409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4409 then
4410 samba_cv_have_setresgid=yes
4411 else
4412 echo "configure: failed program was:" >&5
4413 cat conftest.$ac_ext >&5
4414 rm -fr conftest*
4415 samba_cv_have_setresgid=no
4417 rm -fr conftest*
4422 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4423 if test x"$samba_cv_have_setresgid" = x"yes"; then
4424 cat >> confdefs.h <<\EOF
4425 #define HAVE_SETRESGID 1
4430 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4431 echo "configure:4432: checking for 8-bit clean memcmp" >&5
4432 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4434 else
4435 if test "$cross_compiling" = yes; then
4436 ac_cv_func_memcmp_clean=no
4437 else
4438 cat > conftest.$ac_ext <<EOF
4439 #line 4440 "configure"
4440 #include "confdefs.h"
4442 main()
4444 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4445 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4449 if { (eval echo configure:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4450 then
4451 ac_cv_func_memcmp_clean=yes
4452 else
4453 echo "configure: failed program was:" >&5
4454 cat conftest.$ac_ext >&5
4455 rm -fr conftest*
4456 ac_cv_func_memcmp_clean=no
4458 rm -fr conftest*
4463 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4464 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4467 ###############################################
4468 # Readline included by default unless explicitly asked not to
4469 test "${with_readline+set}" != "set" && with_readline=yes
4471 # test for where we get readline() from
4472 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4473 echo "configure:4474: checking whether to use readline" >&5
4474 # Check whether --with-readline or --without-readline was given.
4475 if test "${with_readline+set}" = set; then
4476 withval="$with_readline"
4477 case "$with_readline" in
4478 yes)
4479 echo "$ac_t""yes" 1>&6
4481 for ac_hdr in readline.h history.h readline/readline.h
4483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4485 echo "configure:4486: checking for $ac_hdr" >&5
4486 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4487 echo $ac_n "(cached) $ac_c" 1>&6
4488 else
4489 cat > conftest.$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.h"
4492 #include <$ac_hdr>
4494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4495 { (eval echo configure:4496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4497 if test -z "$ac_err"; then
4498 rm -rf conftest*
4499 eval "ac_cv_header_$ac_safe=yes"
4500 else
4501 echo "$ac_err" >&5
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4504 rm -rf conftest*
4505 eval "ac_cv_header_$ac_safe=no"
4507 rm -f conftest*
4509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4510 echo "$ac_t""yes" 1>&6
4511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4512 cat >> confdefs.h <<EOF
4513 #define $ac_tr_hdr 1
4516 else
4517 echo "$ac_t""no" 1>&6
4519 done
4521 for ac_hdr in readline/history.h
4523 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4524 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4525 echo "configure:4526: checking for $ac_hdr" >&5
4526 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4527 echo $ac_n "(cached) $ac_c" 1>&6
4528 else
4529 cat > conftest.$ac_ext <<EOF
4530 #line 4531 "configure"
4531 #include "confdefs.h"
4532 #include <$ac_hdr>
4534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4535 { (eval echo configure:4536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4536 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4537 if test -z "$ac_err"; then
4538 rm -rf conftest*
4539 eval "ac_cv_header_$ac_safe=yes"
4540 else
4541 echo "$ac_err" >&5
4542 echo "configure: failed program was:" >&5
4543 cat conftest.$ac_ext >&5
4544 rm -rf conftest*
4545 eval "ac_cv_header_$ac_safe=no"
4547 rm -f conftest*
4549 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4550 echo "$ac_t""yes" 1>&6
4551 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4552 cat >> confdefs.h <<EOF
4553 #define $ac_tr_hdr 1
4556 else
4557 echo "$ac_t""no" 1>&6
4559 done
4562 for ac_hdr in readline.h readline/readline.h
4564 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4565 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4566 echo "configure:4567: checking for $ac_hdr" >&5
4567 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4569 else
4570 cat > conftest.$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4573 #include <$ac_hdr>
4575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4576 { (eval echo configure:4577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4578 if test -z "$ac_err"; then
4579 rm -rf conftest*
4580 eval "ac_cv_header_$ac_safe=yes"
4581 else
4582 echo "$ac_err" >&5
4583 echo "configure: failed program was:" >&5
4584 cat conftest.$ac_ext >&5
4585 rm -rf conftest*
4586 eval "ac_cv_header_$ac_safe=no"
4588 rm -f conftest*
4590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4591 echo "$ac_t""yes" 1>&6
4592 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4593 cat >> confdefs.h <<EOF
4594 #define $ac_tr_hdr 1
4597 for termlib in ncurses curses termcap terminfo termlib; do
4598 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4599 echo "configure:4600: checking for tgetent in -l${termlib}" >&5
4600 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4602 echo $ac_n "(cached) $ac_c" 1>&6
4603 else
4604 ac_save_LIBS="$LIBS"
4605 LIBS="-l${termlib} $LIBS"
4606 cat > conftest.$ac_ext <<EOF
4607 #line 4608 "configure"
4608 #include "confdefs.h"
4609 /* Override any gcc2 internal prototype to avoid an error. */
4610 /* We use char because int might match the return type of a gcc2
4611 builtin and then its argument prototype would still apply. */
4612 char tgetent();
4614 int main() {
4615 tgetent()
4616 ; return 0; }
4618 if { (eval echo configure:4619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4619 rm -rf conftest*
4620 eval "ac_cv_lib_$ac_lib_var=yes"
4621 else
4622 echo "configure: failed program was:" >&5
4623 cat conftest.$ac_ext >&5
4624 rm -rf conftest*
4625 eval "ac_cv_lib_$ac_lib_var=no"
4627 rm -f conftest*
4628 LIBS="$ac_save_LIBS"
4631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4632 echo "$ac_t""yes" 1>&6
4633 TERMLIBS="-l${termlib}"; break
4634 else
4635 echo "$ac_t""no" 1>&6
4638 done
4639 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4640 echo "configure:4641: checking for rl_callback_handler_install in -lreadline" >&5
4641 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4643 echo $ac_n "(cached) $ac_c" 1>&6
4644 else
4645 ac_save_LIBS="$LIBS"
4646 LIBS="-lreadline $TERMLIBS $LIBS"
4647 cat > conftest.$ac_ext <<EOF
4648 #line 4649 "configure"
4649 #include "confdefs.h"
4650 /* Override any gcc2 internal prototype to avoid an error. */
4651 /* We use char because int might match the return type of a gcc2
4652 builtin and then its argument prototype would still apply. */
4653 char rl_callback_handler_install();
4655 int main() {
4656 rl_callback_handler_install()
4657 ; return 0; }
4659 if { (eval echo configure:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4660 rm -rf conftest*
4661 eval "ac_cv_lib_$ac_lib_var=yes"
4662 else
4663 echo "configure: failed program was:" >&5
4664 cat conftest.$ac_ext >&5
4665 rm -rf conftest*
4666 eval "ac_cv_lib_$ac_lib_var=no"
4668 rm -f conftest*
4669 LIBS="$ac_save_LIBS"
4672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4673 echo "$ac_t""yes" 1>&6
4674 TERMLIBS="-lreadline $TERMLIBS"
4675 cat >> confdefs.h <<\EOF
4676 #define HAVE_LIBREADLINE 1
4679 break
4680 else
4681 echo "$ac_t""no" 1>&6
4682 TERMLIBS=
4685 else
4686 echo "$ac_t""no" 1>&6
4688 done
4692 echo "$ac_t""no" 1>&6
4695 echo "$ac_t""yes" 1>&6
4697 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4698 # alternate readline path
4699 _ldflags=${LDFLAGS}
4700 _cppflags=${CPPFLAGS}
4702 # Add additional search path
4703 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4704 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4706 for ac_hdr in readline.h history.h readline/readline.h
4708 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4709 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4710 echo "configure:4711: checking for $ac_hdr" >&5
4711 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4712 echo $ac_n "(cached) $ac_c" 1>&6
4713 else
4714 cat > conftest.$ac_ext <<EOF
4715 #line 4716 "configure"
4716 #include "confdefs.h"
4717 #include <$ac_hdr>
4719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4720 { (eval echo configure:4721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4722 if test -z "$ac_err"; then
4723 rm -rf conftest*
4724 eval "ac_cv_header_$ac_safe=yes"
4725 else
4726 echo "$ac_err" >&5
4727 echo "configure: failed program was:" >&5
4728 cat conftest.$ac_ext >&5
4729 rm -rf conftest*
4730 eval "ac_cv_header_$ac_safe=no"
4732 rm -f conftest*
4734 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4735 echo "$ac_t""yes" 1>&6
4736 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4737 cat >> confdefs.h <<EOF
4738 #define $ac_tr_hdr 1
4741 else
4742 echo "$ac_t""no" 1>&6
4744 done
4746 for ac_hdr in readline/history.h
4748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4750 echo "configure:4751: checking for $ac_hdr" >&5
4751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4752 echo $ac_n "(cached) $ac_c" 1>&6
4753 else
4754 cat > conftest.$ac_ext <<EOF
4755 #line 4756 "configure"
4756 #include "confdefs.h"
4757 #include <$ac_hdr>
4759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4760 { (eval echo configure:4761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4762 if test -z "$ac_err"; then
4763 rm -rf conftest*
4764 eval "ac_cv_header_$ac_safe=yes"
4765 else
4766 echo "$ac_err" >&5
4767 echo "configure: failed program was:" >&5
4768 cat conftest.$ac_ext >&5
4769 rm -rf conftest*
4770 eval "ac_cv_header_$ac_safe=no"
4772 rm -f conftest*
4774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4775 echo "$ac_t""yes" 1>&6
4776 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4777 cat >> confdefs.h <<EOF
4778 #define $ac_tr_hdr 1
4781 else
4782 echo "$ac_t""no" 1>&6
4784 done
4787 for ac_hdr in readline.h readline/readline.h
4789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4791 echo "configure:4792: checking for $ac_hdr" >&5
4792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4794 else
4795 cat > conftest.$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4798 #include <$ac_hdr>
4800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4801 { (eval echo configure:4802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4803 if test -z "$ac_err"; then
4804 rm -rf conftest*
4805 eval "ac_cv_header_$ac_safe=yes"
4806 else
4807 echo "$ac_err" >&5
4808 echo "configure: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4810 rm -rf conftest*
4811 eval "ac_cv_header_$ac_safe=no"
4813 rm -f conftest*
4815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4816 echo "$ac_t""yes" 1>&6
4817 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4818 cat >> confdefs.h <<EOF
4819 #define $ac_tr_hdr 1
4822 for termlib in ncurses curses termcap terminfo termlib; do
4823 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4824 echo "configure:4825: checking for tgetent in -l${termlib}" >&5
4825 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4826 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4827 echo $ac_n "(cached) $ac_c" 1>&6
4828 else
4829 ac_save_LIBS="$LIBS"
4830 LIBS="-l${termlib} $LIBS"
4831 cat > conftest.$ac_ext <<EOF
4832 #line 4833 "configure"
4833 #include "confdefs.h"
4834 /* Override any gcc2 internal prototype to avoid an error. */
4835 /* We use char because int might match the return type of a gcc2
4836 builtin and then its argument prototype would still apply. */
4837 char tgetent();
4839 int main() {
4840 tgetent()
4841 ; return 0; }
4843 if { (eval echo configure:4844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4844 rm -rf conftest*
4845 eval "ac_cv_lib_$ac_lib_var=yes"
4846 else
4847 echo "configure: failed program was:" >&5
4848 cat conftest.$ac_ext >&5
4849 rm -rf conftest*
4850 eval "ac_cv_lib_$ac_lib_var=no"
4852 rm -f conftest*
4853 LIBS="$ac_save_LIBS"
4856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4857 echo "$ac_t""yes" 1>&6
4858 TERMLIBS="-l${termlib}"; break
4859 else
4860 echo "$ac_t""no" 1>&6
4863 done
4864 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4865 echo "configure:4866: checking for rl_callback_handler_install in -lreadline" >&5
4866 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4867 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4868 echo $ac_n "(cached) $ac_c" 1>&6
4869 else
4870 ac_save_LIBS="$LIBS"
4871 LIBS="-lreadline $TERMLIBS $LIBS"
4872 cat > conftest.$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4875 /* Override any gcc2 internal prototype to avoid an error. */
4876 /* We use char because int might match the return type of a gcc2
4877 builtin and then its argument prototype would still apply. */
4878 char rl_callback_handler_install();
4880 int main() {
4881 rl_callback_handler_install()
4882 ; return 0; }
4884 if { (eval echo configure:4885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4885 rm -rf conftest*
4886 eval "ac_cv_lib_$ac_lib_var=yes"
4887 else
4888 echo "configure: failed program was:" >&5
4889 cat conftest.$ac_ext >&5
4890 rm -rf conftest*
4891 eval "ac_cv_lib_$ac_lib_var=no"
4893 rm -f conftest*
4894 LIBS="$ac_save_LIBS"
4897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4898 echo "$ac_t""yes" 1>&6
4899 TERMLDFLAGS="-L$with_readline/lib"
4900 TERMCPPFLAGS="-I$with_readline/include"
4901 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4902 TERMLIBS="-lreadline $TERMLIBS"
4903 cat >> confdefs.h <<\EOF
4904 #define HAVE_LIBREADLINE 1
4907 break
4908 else
4909 echo "$ac_t""no" 1>&6
4910 TERMLIBS= CPPFLAGS=$_cppflags
4913 else
4914 echo "$ac_t""no" 1>&6
4916 done
4919 LDFLAGS=$_ldflags
4921 esac
4922 else
4923 echo "$ac_t""no" 1>&6
4930 # The following test taken from the cvs sources
4931 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4932 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4933 # libsocket.so which has a bad implementation of gethostbyname (it
4934 # only looks in /etc/hosts), so we only look for -lsocket if we need
4935 # it.
4936 for ac_func in connect
4938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4939 echo "configure:4940: checking for $ac_func" >&5
4940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4942 else
4943 cat > conftest.$ac_ext <<EOF
4944 #line 4945 "configure"
4945 #include "confdefs.h"
4946 /* System header to define __stub macros and hopefully few prototypes,
4947 which can conflict with char $ac_func(); below. */
4948 #include <assert.h>
4949 /* Override any gcc2 internal prototype to avoid an error. */
4950 /* We use char because int might match the return type of a gcc2
4951 builtin and then its argument prototype would still apply. */
4952 char $ac_func();
4954 int main() {
4956 /* The GNU C library defines this for functions which it implements
4957 to always fail with ENOSYS. Some functions are actually named
4958 something starting with __ and the normal name is an alias. */
4959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4960 choke me
4961 #else
4962 $ac_func();
4963 #endif
4965 ; return 0; }
4967 if { (eval echo configure:4968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4968 rm -rf conftest*
4969 eval "ac_cv_func_$ac_func=yes"
4970 else
4971 echo "configure: failed program was:" >&5
4972 cat conftest.$ac_ext >&5
4973 rm -rf conftest*
4974 eval "ac_cv_func_$ac_func=no"
4976 rm -f conftest*
4979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4980 echo "$ac_t""yes" 1>&6
4981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4982 cat >> confdefs.h <<EOF
4983 #define $ac_tr_func 1
4986 else
4987 echo "$ac_t""no" 1>&6
4989 done
4991 if test x"$ac_cv_func_connect" = x"no"; then
4992 case "$LIBS" in
4993 *-lnsl*) ;;
4994 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4995 echo "configure:4996: checking for printf in -lnsl_s" >&5
4996 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4997 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4998 echo $ac_n "(cached) $ac_c" 1>&6
4999 else
5000 ac_save_LIBS="$LIBS"
5001 LIBS="-lnsl_s $LIBS"
5002 cat > conftest.$ac_ext <<EOF
5003 #line 5004 "configure"
5004 #include "confdefs.h"
5005 /* Override any gcc2 internal prototype to avoid an error. */
5006 /* We use char because int might match the return type of a gcc2
5007 builtin and then its argument prototype would still apply. */
5008 char printf();
5010 int main() {
5011 printf()
5012 ; return 0; }
5014 if { (eval echo configure:5015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5015 rm -rf conftest*
5016 eval "ac_cv_lib_$ac_lib_var=yes"
5017 else
5018 echo "configure: failed program was:" >&5
5019 cat conftest.$ac_ext >&5
5020 rm -rf conftest*
5021 eval "ac_cv_lib_$ac_lib_var=no"
5023 rm -f conftest*
5024 LIBS="$ac_save_LIBS"
5027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5028 echo "$ac_t""yes" 1>&6
5029 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5030 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5031 cat >> confdefs.h <<EOF
5032 #define $ac_tr_lib 1
5035 LIBS="-lnsl_s $LIBS"
5037 else
5038 echo "$ac_t""no" 1>&6
5041 esac
5042 case "$LIBS" in
5043 *-lnsl*) ;;
5044 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5045 echo "configure:5046: checking for printf in -lnsl" >&5
5046 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5048 echo $ac_n "(cached) $ac_c" 1>&6
5049 else
5050 ac_save_LIBS="$LIBS"
5051 LIBS="-lnsl $LIBS"
5052 cat > conftest.$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5055 /* Override any gcc2 internal prototype to avoid an error. */
5056 /* We use char because int might match the return type of a gcc2
5057 builtin and then its argument prototype would still apply. */
5058 char printf();
5060 int main() {
5061 printf()
5062 ; return 0; }
5064 if { (eval echo configure:5065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5065 rm -rf conftest*
5066 eval "ac_cv_lib_$ac_lib_var=yes"
5067 else
5068 echo "configure: failed program was:" >&5
5069 cat conftest.$ac_ext >&5
5070 rm -rf conftest*
5071 eval "ac_cv_lib_$ac_lib_var=no"
5073 rm -f conftest*
5074 LIBS="$ac_save_LIBS"
5077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5078 echo "$ac_t""yes" 1>&6
5079 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5080 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5081 cat >> confdefs.h <<EOF
5082 #define $ac_tr_lib 1
5085 LIBS="-lnsl $LIBS"
5087 else
5088 echo "$ac_t""no" 1>&6
5091 esac
5092 case "$LIBS" in
5093 *-lsocket*) ;;
5094 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5095 echo "configure:5096: checking for connect in -lsocket" >&5
5096 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5099 else
5100 ac_save_LIBS="$LIBS"
5101 LIBS="-lsocket $LIBS"
5102 cat > conftest.$ac_ext <<EOF
5103 #line 5104 "configure"
5104 #include "confdefs.h"
5105 /* Override any gcc2 internal prototype to avoid an error. */
5106 /* We use char because int might match the return type of a gcc2
5107 builtin and then its argument prototype would still apply. */
5108 char connect();
5110 int main() {
5111 connect()
5112 ; return 0; }
5114 if { (eval echo configure:5115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5115 rm -rf conftest*
5116 eval "ac_cv_lib_$ac_lib_var=yes"
5117 else
5118 echo "configure: failed program was:" >&5
5119 cat conftest.$ac_ext >&5
5120 rm -rf conftest*
5121 eval "ac_cv_lib_$ac_lib_var=no"
5123 rm -f conftest*
5124 LIBS="$ac_save_LIBS"
5127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5128 echo "$ac_t""yes" 1>&6
5129 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5130 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5131 cat >> confdefs.h <<EOF
5132 #define $ac_tr_lib 1
5135 LIBS="-lsocket $LIBS"
5137 else
5138 echo "$ac_t""no" 1>&6
5141 esac
5142 case "$LIBS" in
5143 *-linet*) ;;
5144 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5145 echo "configure:5146: checking for connect in -linet" >&5
5146 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5147 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5148 echo $ac_n "(cached) $ac_c" 1>&6
5149 else
5150 ac_save_LIBS="$LIBS"
5151 LIBS="-linet $LIBS"
5152 cat > conftest.$ac_ext <<EOF
5153 #line 5154 "configure"
5154 #include "confdefs.h"
5155 /* Override any gcc2 internal prototype to avoid an error. */
5156 /* We use char because int might match the return type of a gcc2
5157 builtin and then its argument prototype would still apply. */
5158 char connect();
5160 int main() {
5161 connect()
5162 ; return 0; }
5164 if { (eval echo configure:5165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5165 rm -rf conftest*
5166 eval "ac_cv_lib_$ac_lib_var=yes"
5167 else
5168 echo "configure: failed program was:" >&5
5169 cat conftest.$ac_ext >&5
5170 rm -rf conftest*
5171 eval "ac_cv_lib_$ac_lib_var=no"
5173 rm -f conftest*
5174 LIBS="$ac_save_LIBS"
5177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5178 echo "$ac_t""yes" 1>&6
5179 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5180 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5181 cat >> confdefs.h <<EOF
5182 #define $ac_tr_lib 1
5185 LIBS="-linet $LIBS"
5187 else
5188 echo "$ac_t""no" 1>&6
5191 esac
5192 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5193 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5194 # ac_cv_func_connect=yes
5195 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5196 cat >> confdefs.h <<\EOF
5197 #define HAVE_CONNECT 1
5203 ###############################################
5204 # test for where we get get_yp_default_domain() from
5205 for ac_func in yp_get_default_domain
5207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5208 echo "configure:5209: checking for $ac_func" >&5
5209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5210 echo $ac_n "(cached) $ac_c" 1>&6
5211 else
5212 cat > conftest.$ac_ext <<EOF
5213 #line 5214 "configure"
5214 #include "confdefs.h"
5215 /* System header to define __stub macros and hopefully few prototypes,
5216 which can conflict with char $ac_func(); below. */
5217 #include <assert.h>
5218 /* Override any gcc2 internal prototype to avoid an error. */
5219 /* We use char because int might match the return type of a gcc2
5220 builtin and then its argument prototype would still apply. */
5221 char $ac_func();
5223 int main() {
5225 /* The GNU C library defines this for functions which it implements
5226 to always fail with ENOSYS. Some functions are actually named
5227 something starting with __ and the normal name is an alias. */
5228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5229 choke me
5230 #else
5231 $ac_func();
5232 #endif
5234 ; return 0; }
5236 if { (eval echo configure:5237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5237 rm -rf conftest*
5238 eval "ac_cv_func_$ac_func=yes"
5239 else
5240 echo "configure: failed program was:" >&5
5241 cat conftest.$ac_ext >&5
5242 rm -rf conftest*
5243 eval "ac_cv_func_$ac_func=no"
5245 rm -f conftest*
5248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5249 echo "$ac_t""yes" 1>&6
5250 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5251 cat >> confdefs.h <<EOF
5252 #define $ac_tr_func 1
5255 else
5256 echo "$ac_t""no" 1>&6
5258 done
5260 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5261 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5262 echo "configure:5263: checking for yp_get_default_domain in -lnsl" >&5
5263 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5264 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5265 echo $ac_n "(cached) $ac_c" 1>&6
5266 else
5267 ac_save_LIBS="$LIBS"
5268 LIBS="-lnsl $LIBS"
5269 cat > conftest.$ac_ext <<EOF
5270 #line 5271 "configure"
5271 #include "confdefs.h"
5272 /* Override any gcc2 internal prototype to avoid an error. */
5273 /* We use char because int might match the return type of a gcc2
5274 builtin and then its argument prototype would still apply. */
5275 char yp_get_default_domain();
5277 int main() {
5278 yp_get_default_domain()
5279 ; return 0; }
5281 if { (eval echo configure:5282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5282 rm -rf conftest*
5283 eval "ac_cv_lib_$ac_lib_var=yes"
5284 else
5285 echo "configure: failed program was:" >&5
5286 cat conftest.$ac_ext >&5
5287 rm -rf conftest*
5288 eval "ac_cv_lib_$ac_lib_var=no"
5290 rm -f conftest*
5291 LIBS="$ac_save_LIBS"
5294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5295 echo "$ac_t""yes" 1>&6
5296 LIBS="$LIBS -lnsl";
5297 cat >> confdefs.h <<\EOF
5298 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5301 else
5302 echo "$ac_t""no" 1>&6
5307 # Check if we have execl, if not we need to compile smbrun.
5308 for ac_func in execl
5310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5311 echo "configure:5312: checking for $ac_func" >&5
5312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5313 echo $ac_n "(cached) $ac_c" 1>&6
5314 else
5315 cat > conftest.$ac_ext <<EOF
5316 #line 5317 "configure"
5317 #include "confdefs.h"
5318 /* System header to define __stub macros and hopefully few prototypes,
5319 which can conflict with char $ac_func(); below. */
5320 #include <assert.h>
5321 /* Override any gcc2 internal prototype to avoid an error. */
5322 /* We use char because int might match the return type of a gcc2
5323 builtin and then its argument prototype would still apply. */
5324 char $ac_func();
5326 int main() {
5328 /* The GNU C library defines this for functions which it implements
5329 to always fail with ENOSYS. Some functions are actually named
5330 something starting with __ and the normal name is an alias. */
5331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5332 choke me
5333 #else
5334 $ac_func();
5335 #endif
5337 ; return 0; }
5339 if { (eval echo configure:5340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5340 rm -rf conftest*
5341 eval "ac_cv_func_$ac_func=yes"
5342 else
5343 echo "configure: failed program was:" >&5
5344 cat conftest.$ac_ext >&5
5345 rm -rf conftest*
5346 eval "ac_cv_func_$ac_func=no"
5348 rm -f conftest*
5351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5352 echo "$ac_t""yes" 1>&6
5353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5354 cat >> confdefs.h <<EOF
5355 #define $ac_tr_func 1
5358 else
5359 echo "$ac_t""no" 1>&6
5361 done
5363 if test x"$ac_cv_func_execl" = x"no"; then
5364 RUNPROG="bin/smbrun"
5365 else
5366 RUNPROG=""
5369 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link
5371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5372 echo "configure:5373: checking for $ac_func" >&5
5373 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5374 echo $ac_n "(cached) $ac_c" 1>&6
5375 else
5376 cat > conftest.$ac_ext <<EOF
5377 #line 5378 "configure"
5378 #include "confdefs.h"
5379 /* System header to define __stub macros and hopefully few prototypes,
5380 which can conflict with char $ac_func(); below. */
5381 #include <assert.h>
5382 /* Override any gcc2 internal prototype to avoid an error. */
5383 /* We use char because int might match the return type of a gcc2
5384 builtin and then its argument prototype would still apply. */
5385 char $ac_func();
5387 int main() {
5389 /* The GNU C library defines this for functions which it implements
5390 to always fail with ENOSYS. Some functions are actually named
5391 something starting with __ and the normal name is an alias. */
5392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5393 choke me
5394 #else
5395 $ac_func();
5396 #endif
5398 ; return 0; }
5400 if { (eval echo configure:5401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5401 rm -rf conftest*
5402 eval "ac_cv_func_$ac_func=yes"
5403 else
5404 echo "configure: failed program was:" >&5
5405 cat conftest.$ac_ext >&5
5406 rm -rf conftest*
5407 eval "ac_cv_func_$ac_func=no"
5409 rm -f conftest*
5412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5413 echo "$ac_t""yes" 1>&6
5414 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5415 cat >> confdefs.h <<EOF
5416 #define $ac_tr_func 1
5419 else
5420 echo "$ac_t""no" 1>&6
5422 done
5424 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid mknod mknod64
5426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5427 echo "configure:5428: checking for $ac_func" >&5
5428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5429 echo $ac_n "(cached) $ac_c" 1>&6
5430 else
5431 cat > conftest.$ac_ext <<EOF
5432 #line 5433 "configure"
5433 #include "confdefs.h"
5434 /* System header to define __stub macros and hopefully few prototypes,
5435 which can conflict with char $ac_func(); below. */
5436 #include <assert.h>
5437 /* Override any gcc2 internal prototype to avoid an error. */
5438 /* We use char because int might match the return type of a gcc2
5439 builtin and then its argument prototype would still apply. */
5440 char $ac_func();
5442 int main() {
5444 /* The GNU C library defines this for functions which it implements
5445 to always fail with ENOSYS. Some functions are actually named
5446 something starting with __ and the normal name is an alias. */
5447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5448 choke me
5449 #else
5450 $ac_func();
5451 #endif
5453 ; return 0; }
5455 if { (eval echo configure:5456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5456 rm -rf conftest*
5457 eval "ac_cv_func_$ac_func=yes"
5458 else
5459 echo "configure: failed program was:" >&5
5460 cat conftest.$ac_ext >&5
5461 rm -rf conftest*
5462 eval "ac_cv_func_$ac_func=no"
5464 rm -f conftest*
5467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5468 echo "$ac_t""yes" 1>&6
5469 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5470 cat >> confdefs.h <<EOF
5471 #define $ac_tr_func 1
5474 else
5475 echo "$ac_t""no" 1>&6
5477 done
5479 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5481 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5482 echo "configure:5483: checking for $ac_func" >&5
5483 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5484 echo $ac_n "(cached) $ac_c" 1>&6
5485 else
5486 cat > conftest.$ac_ext <<EOF
5487 #line 5488 "configure"
5488 #include "confdefs.h"
5489 /* System header to define __stub macros and hopefully few prototypes,
5490 which can conflict with char $ac_func(); below. */
5491 #include <assert.h>
5492 /* Override any gcc2 internal prototype to avoid an error. */
5493 /* We use char because int might match the return type of a gcc2
5494 builtin and then its argument prototype would still apply. */
5495 char $ac_func();
5497 int main() {
5499 /* The GNU C library defines this for functions which it implements
5500 to always fail with ENOSYS. Some functions are actually named
5501 something starting with __ and the normal name is an alias. */
5502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5503 choke me
5504 #else
5505 $ac_func();
5506 #endif
5508 ; return 0; }
5510 if { (eval echo configure:5511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5511 rm -rf conftest*
5512 eval "ac_cv_func_$ac_func=yes"
5513 else
5514 echo "configure: failed program was:" >&5
5515 cat conftest.$ac_ext >&5
5516 rm -rf conftest*
5517 eval "ac_cv_func_$ac_func=no"
5519 rm -f conftest*
5522 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5523 echo "$ac_t""yes" 1>&6
5524 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5525 cat >> confdefs.h <<EOF
5526 #define $ac_tr_func 1
5529 else
5530 echo "$ac_t""no" 1>&6
5532 done
5534 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5537 echo "configure:5538: checking for $ac_func" >&5
5538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5539 echo $ac_n "(cached) $ac_c" 1>&6
5540 else
5541 cat > conftest.$ac_ext <<EOF
5542 #line 5543 "configure"
5543 #include "confdefs.h"
5544 /* System header to define __stub macros and hopefully few prototypes,
5545 which can conflict with char $ac_func(); below. */
5546 #include <assert.h>
5547 /* Override any gcc2 internal prototype to avoid an error. */
5548 /* We use char because int might match the return type of a gcc2
5549 builtin and then its argument prototype would still apply. */
5550 char $ac_func();
5552 int main() {
5554 /* The GNU C library defines this for functions which it implements
5555 to always fail with ENOSYS. Some functions are actually named
5556 something starting with __ and the normal name is an alias. */
5557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5558 choke me
5559 #else
5560 $ac_func();
5561 #endif
5563 ; return 0; }
5565 if { (eval echo configure:5566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5566 rm -rf conftest*
5567 eval "ac_cv_func_$ac_func=yes"
5568 else
5569 echo "configure: failed program was:" >&5
5570 cat conftest.$ac_ext >&5
5571 rm -rf conftest*
5572 eval "ac_cv_func_$ac_func=no"
5574 rm -f conftest*
5577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5578 echo "$ac_t""yes" 1>&6
5579 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5580 cat >> confdefs.h <<EOF
5581 #define $ac_tr_func 1
5584 else
5585 echo "$ac_t""no" 1>&6
5587 done
5589 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5592 echo "configure:5593: checking for $ac_func" >&5
5593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5594 echo $ac_n "(cached) $ac_c" 1>&6
5595 else
5596 cat > conftest.$ac_ext <<EOF
5597 #line 5598 "configure"
5598 #include "confdefs.h"
5599 /* System header to define __stub macros and hopefully few prototypes,
5600 which can conflict with char $ac_func(); below. */
5601 #include <assert.h>
5602 /* Override any gcc2 internal prototype to avoid an error. */
5603 /* We use char because int might match the return type of a gcc2
5604 builtin and then its argument prototype would still apply. */
5605 char $ac_func();
5607 int main() {
5609 /* The GNU C library defines this for functions which it implements
5610 to always fail with ENOSYS. Some functions are actually named
5611 something starting with __ and the normal name is an alias. */
5612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5613 choke me
5614 #else
5615 $ac_func();
5616 #endif
5618 ; return 0; }
5620 if { (eval echo configure:5621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5621 rm -rf conftest*
5622 eval "ac_cv_func_$ac_func=yes"
5623 else
5624 echo "configure: failed program was:" >&5
5625 cat conftest.$ac_ext >&5
5626 rm -rf conftest*
5627 eval "ac_cv_func_$ac_func=no"
5629 rm -f conftest*
5632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5633 echo "$ac_t""yes" 1>&6
5634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5635 cat >> confdefs.h <<EOF
5636 #define $ac_tr_func 1
5639 else
5640 echo "$ac_t""no" 1>&6
5642 done
5644 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5647 echo "configure:5648: checking for $ac_func" >&5
5648 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5649 echo $ac_n "(cached) $ac_c" 1>&6
5650 else
5651 cat > conftest.$ac_ext <<EOF
5652 #line 5653 "configure"
5653 #include "confdefs.h"
5654 /* System header to define __stub macros and hopefully few prototypes,
5655 which can conflict with char $ac_func(); below. */
5656 #include <assert.h>
5657 /* Override any gcc2 internal prototype to avoid an error. */
5658 /* We use char because int might match the return type of a gcc2
5659 builtin and then its argument prototype would still apply. */
5660 char $ac_func();
5662 int main() {
5664 /* The GNU C library defines this for functions which it implements
5665 to always fail with ENOSYS. Some functions are actually named
5666 something starting with __ and the normal name is an alias. */
5667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5668 choke me
5669 #else
5670 $ac_func();
5671 #endif
5673 ; return 0; }
5675 if { (eval echo configure:5676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5676 rm -rf conftest*
5677 eval "ac_cv_func_$ac_func=yes"
5678 else
5679 echo "configure: failed program was:" >&5
5680 cat conftest.$ac_ext >&5
5681 rm -rf conftest*
5682 eval "ac_cv_func_$ac_func=no"
5684 rm -f conftest*
5687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5688 echo "$ac_t""yes" 1>&6
5689 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5690 cat >> confdefs.h <<EOF
5691 #define $ac_tr_func 1
5694 else
5695 echo "$ac_t""no" 1>&6
5697 done
5699 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5702 echo "configure:5703: checking for $ac_func" >&5
5703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5704 echo $ac_n "(cached) $ac_c" 1>&6
5705 else
5706 cat > conftest.$ac_ext <<EOF
5707 #line 5708 "configure"
5708 #include "confdefs.h"
5709 /* System header to define __stub macros and hopefully few prototypes,
5710 which can conflict with char $ac_func(); below. */
5711 #include <assert.h>
5712 /* Override any gcc2 internal prototype to avoid an error. */
5713 /* We use char because int might match the return type of a gcc2
5714 builtin and then its argument prototype would still apply. */
5715 char $ac_func();
5717 int main() {
5719 /* The GNU C library defines this for functions which it implements
5720 to always fail with ENOSYS. Some functions are actually named
5721 something starting with __ and the normal name is an alias. */
5722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5723 choke me
5724 #else
5725 $ac_func();
5726 #endif
5728 ; return 0; }
5730 if { (eval echo configure:5731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5731 rm -rf conftest*
5732 eval "ac_cv_func_$ac_func=yes"
5733 else
5734 echo "configure: failed program was:" >&5
5735 cat conftest.$ac_ext >&5
5736 rm -rf conftest*
5737 eval "ac_cv_func_$ac_func=no"
5739 rm -f conftest*
5742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5743 echo "$ac_t""yes" 1>&6
5744 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5745 cat >> confdefs.h <<EOF
5746 #define $ac_tr_func 1
5749 else
5750 echo "$ac_t""no" 1>&6
5752 done
5754 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5757 echo "configure:5758: checking for $ac_func" >&5
5758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5759 echo $ac_n "(cached) $ac_c" 1>&6
5760 else
5761 cat > conftest.$ac_ext <<EOF
5762 #line 5763 "configure"
5763 #include "confdefs.h"
5764 /* System header to define __stub macros and hopefully few prototypes,
5765 which can conflict with char $ac_func(); below. */
5766 #include <assert.h>
5767 /* Override any gcc2 internal prototype to avoid an error. */
5768 /* We use char because int might match the return type of a gcc2
5769 builtin and then its argument prototype would still apply. */
5770 char $ac_func();
5772 int main() {
5774 /* The GNU C library defines this for functions which it implements
5775 to always fail with ENOSYS. Some functions are actually named
5776 something starting with __ and the normal name is an alias. */
5777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5778 choke me
5779 #else
5780 $ac_func();
5781 #endif
5783 ; return 0; }
5785 if { (eval echo configure:5786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5786 rm -rf conftest*
5787 eval "ac_cv_func_$ac_func=yes"
5788 else
5789 echo "configure: failed program was:" >&5
5790 cat conftest.$ac_ext >&5
5791 rm -rf conftest*
5792 eval "ac_cv_func_$ac_func=no"
5794 rm -f conftest*
5797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5798 echo "$ac_t""yes" 1>&6
5799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5800 cat >> confdefs.h <<EOF
5801 #define $ac_tr_func 1
5804 else
5805 echo "$ac_t""no" 1>&6
5807 done
5809 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5812 echo "configure:5813: checking for $ac_func" >&5
5813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5814 echo $ac_n "(cached) $ac_c" 1>&6
5815 else
5816 cat > conftest.$ac_ext <<EOF
5817 #line 5818 "configure"
5818 #include "confdefs.h"
5819 /* System header to define __stub macros and hopefully few prototypes,
5820 which can conflict with char $ac_func(); below. */
5821 #include <assert.h>
5822 /* Override any gcc2 internal prototype to avoid an error. */
5823 /* We use char because int might match the return type of a gcc2
5824 builtin and then its argument prototype would still apply. */
5825 char $ac_func();
5827 int main() {
5829 /* The GNU C library defines this for functions which it implements
5830 to always fail with ENOSYS. Some functions are actually named
5831 something starting with __ and the normal name is an alias. */
5832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5833 choke me
5834 #else
5835 $ac_func();
5836 #endif
5838 ; return 0; }
5840 if { (eval echo configure:5841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5841 rm -rf conftest*
5842 eval "ac_cv_func_$ac_func=yes"
5843 else
5844 echo "configure: failed program was:" >&5
5845 cat conftest.$ac_ext >&5
5846 rm -rf conftest*
5847 eval "ac_cv_func_$ac_func=no"
5849 rm -f conftest*
5852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5853 echo "$ac_t""yes" 1>&6
5854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5855 cat >> confdefs.h <<EOF
5856 #define $ac_tr_func 1
5859 else
5860 echo "$ac_t""no" 1>&6
5862 done
5864 for ac_func in syslog vsyslog
5866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5867 echo "configure:5868: checking for $ac_func" >&5
5868 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5869 echo $ac_n "(cached) $ac_c" 1>&6
5870 else
5871 cat > conftest.$ac_ext <<EOF
5872 #line 5873 "configure"
5873 #include "confdefs.h"
5874 /* System header to define __stub macros and hopefully few prototypes,
5875 which can conflict with char $ac_func(); below. */
5876 #include <assert.h>
5877 /* Override any gcc2 internal prototype to avoid an error. */
5878 /* We use char because int might match the return type of a gcc2
5879 builtin and then its argument prototype would still apply. */
5880 char $ac_func();
5882 int main() {
5884 /* The GNU C library defines this for functions which it implements
5885 to always fail with ENOSYS. Some functions are actually named
5886 something starting with __ and the normal name is an alias. */
5887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5888 choke me
5889 #else
5890 $ac_func();
5891 #endif
5893 ; return 0; }
5895 if { (eval echo configure:5896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5896 rm -rf conftest*
5897 eval "ac_cv_func_$ac_func=yes"
5898 else
5899 echo "configure: failed program was:" >&5
5900 cat conftest.$ac_ext >&5
5901 rm -rf conftest*
5902 eval "ac_cv_func_$ac_func=no"
5904 rm -f conftest*
5907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5908 echo "$ac_t""yes" 1>&6
5909 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5910 cat >> confdefs.h <<EOF
5911 #define $ac_tr_func 1
5914 else
5915 echo "$ac_t""no" 1>&6
5917 done
5920 # syscall() is needed for smbwrapper.
5921 for ac_func in syscall
5923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5924 echo "configure:5925: checking for $ac_func" >&5
5925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5926 echo $ac_n "(cached) $ac_c" 1>&6
5927 else
5928 cat > conftest.$ac_ext <<EOF
5929 #line 5930 "configure"
5930 #include "confdefs.h"
5931 /* System header to define __stub macros and hopefully few prototypes,
5932 which can conflict with char $ac_func(); below. */
5933 #include <assert.h>
5934 /* Override any gcc2 internal prototype to avoid an error. */
5935 /* We use char because int might match the return type of a gcc2
5936 builtin and then its argument prototype would still apply. */
5937 char $ac_func();
5939 int main() {
5941 /* The GNU C library defines this for functions which it implements
5942 to always fail with ENOSYS. Some functions are actually named
5943 something starting with __ and the normal name is an alias. */
5944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5945 choke me
5946 #else
5947 $ac_func();
5948 #endif
5950 ; return 0; }
5952 if { (eval echo configure:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5953 rm -rf conftest*
5954 eval "ac_cv_func_$ac_func=yes"
5955 else
5956 echo "configure: failed program was:" >&5
5957 cat conftest.$ac_ext >&5
5958 rm -rf conftest*
5959 eval "ac_cv_func_$ac_func=no"
5961 rm -f conftest*
5964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5965 echo "$ac_t""yes" 1>&6
5966 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5967 cat >> confdefs.h <<EOF
5968 #define $ac_tr_func 1
5971 else
5972 echo "$ac_t""no" 1>&6
5974 done
5977 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5980 echo "configure:5981: checking for $ac_func" >&5
5981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5982 echo $ac_n "(cached) $ac_c" 1>&6
5983 else
5984 cat > conftest.$ac_ext <<EOF
5985 #line 5986 "configure"
5986 #include "confdefs.h"
5987 /* System header to define __stub macros and hopefully few prototypes,
5988 which can conflict with char $ac_func(); below. */
5989 #include <assert.h>
5990 /* Override any gcc2 internal prototype to avoid an error. */
5991 /* We use char because int might match the return type of a gcc2
5992 builtin and then its argument prototype would still apply. */
5993 char $ac_func();
5995 int main() {
5997 /* The GNU C library defines this for functions which it implements
5998 to always fail with ENOSYS. Some functions are actually named
5999 something starting with __ and the normal name is an alias. */
6000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6001 choke me
6002 #else
6003 $ac_func();
6004 #endif
6006 ; return 0; }
6008 if { (eval echo configure:6009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6009 rm -rf conftest*
6010 eval "ac_cv_func_$ac_func=yes"
6011 else
6012 echo "configure: failed program was:" >&5
6013 cat conftest.$ac_ext >&5
6014 rm -rf conftest*
6015 eval "ac_cv_func_$ac_func=no"
6017 rm -f conftest*
6020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6021 echo "$ac_t""yes" 1>&6
6022 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6023 cat >> confdefs.h <<EOF
6024 #define $ac_tr_func 1
6027 else
6028 echo "$ac_t""no" 1>&6
6030 done
6032 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6034 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6035 echo "configure:6036: checking for $ac_func" >&5
6036 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6037 echo $ac_n "(cached) $ac_c" 1>&6
6038 else
6039 cat > conftest.$ac_ext <<EOF
6040 #line 6041 "configure"
6041 #include "confdefs.h"
6042 /* System header to define __stub macros and hopefully few prototypes,
6043 which can conflict with char $ac_func(); below. */
6044 #include <assert.h>
6045 /* Override any gcc2 internal prototype to avoid an error. */
6046 /* We use char because int might match the return type of a gcc2
6047 builtin and then its argument prototype would still apply. */
6048 char $ac_func();
6050 int main() {
6052 /* The GNU C library defines this for functions which it implements
6053 to always fail with ENOSYS. Some functions are actually named
6054 something starting with __ and the normal name is an alias. */
6055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6056 choke me
6057 #else
6058 $ac_func();
6059 #endif
6061 ; return 0; }
6063 if { (eval echo configure:6064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6064 rm -rf conftest*
6065 eval "ac_cv_func_$ac_func=yes"
6066 else
6067 echo "configure: failed program was:" >&5
6068 cat conftest.$ac_ext >&5
6069 rm -rf conftest*
6070 eval "ac_cv_func_$ac_func=no"
6072 rm -f conftest*
6075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6076 echo "$ac_t""yes" 1>&6
6077 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6078 cat >> confdefs.h <<EOF
6079 #define $ac_tr_func 1
6082 else
6083 echo "$ac_t""no" 1>&6
6085 done
6087 for ac_func in __getcwd _getcwd
6089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6090 echo "configure:6091: checking for $ac_func" >&5
6091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6092 echo $ac_n "(cached) $ac_c" 1>&6
6093 else
6094 cat > conftest.$ac_ext <<EOF
6095 #line 6096 "configure"
6096 #include "confdefs.h"
6097 /* System header to define __stub macros and hopefully few prototypes,
6098 which can conflict with char $ac_func(); below. */
6099 #include <assert.h>
6100 /* Override any gcc2 internal prototype to avoid an error. */
6101 /* We use char because int might match the return type of a gcc2
6102 builtin and then its argument prototype would still apply. */
6103 char $ac_func();
6105 int main() {
6107 /* The GNU C library defines this for functions which it implements
6108 to always fail with ENOSYS. Some functions are actually named
6109 something starting with __ and the normal name is an alias. */
6110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6111 choke me
6112 #else
6113 $ac_func();
6114 #endif
6116 ; return 0; }
6118 if { (eval echo configure:6119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6119 rm -rf conftest*
6120 eval "ac_cv_func_$ac_func=yes"
6121 else
6122 echo "configure: failed program was:" >&5
6123 cat conftest.$ac_ext >&5
6124 rm -rf conftest*
6125 eval "ac_cv_func_$ac_func=no"
6127 rm -f conftest*
6130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6131 echo "$ac_t""yes" 1>&6
6132 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6133 cat >> confdefs.h <<EOF
6134 #define $ac_tr_func 1
6137 else
6138 echo "$ac_t""no" 1>&6
6140 done
6142 for ac_func in __xstat __fxstat __lxstat
6144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6145 echo "configure:6146: checking for $ac_func" >&5
6146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6147 echo $ac_n "(cached) $ac_c" 1>&6
6148 else
6149 cat > conftest.$ac_ext <<EOF
6150 #line 6151 "configure"
6151 #include "confdefs.h"
6152 /* System header to define __stub macros and hopefully few prototypes,
6153 which can conflict with char $ac_func(); below. */
6154 #include <assert.h>
6155 /* Override any gcc2 internal prototype to avoid an error. */
6156 /* We use char because int might match the return type of a gcc2
6157 builtin and then its argument prototype would still apply. */
6158 char $ac_func();
6160 int main() {
6162 /* The GNU C library defines this for functions which it implements
6163 to always fail with ENOSYS. Some functions are actually named
6164 something starting with __ and the normal name is an alias. */
6165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6166 choke me
6167 #else
6168 $ac_func();
6169 #endif
6171 ; return 0; }
6173 if { (eval echo configure:6174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6174 rm -rf conftest*
6175 eval "ac_cv_func_$ac_func=yes"
6176 else
6177 echo "configure: failed program was:" >&5
6178 cat conftest.$ac_ext >&5
6179 rm -rf conftest*
6180 eval "ac_cv_func_$ac_func=no"
6182 rm -f conftest*
6185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6186 echo "$ac_t""yes" 1>&6
6187 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6188 cat >> confdefs.h <<EOF
6189 #define $ac_tr_func 1
6192 else
6193 echo "$ac_t""no" 1>&6
6195 done
6197 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6200 echo "configure:6201: checking for $ac_func" >&5
6201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6202 echo $ac_n "(cached) $ac_c" 1>&6
6203 else
6204 cat > conftest.$ac_ext <<EOF
6205 #line 6206 "configure"
6206 #include "confdefs.h"
6207 /* System header to define __stub macros and hopefully few prototypes,
6208 which can conflict with char $ac_func(); below. */
6209 #include <assert.h>
6210 /* Override any gcc2 internal prototype to avoid an error. */
6211 /* We use char because int might match the return type of a gcc2
6212 builtin and then its argument prototype would still apply. */
6213 char $ac_func();
6215 int main() {
6217 /* The GNU C library defines this for functions which it implements
6218 to always fail with ENOSYS. Some functions are actually named
6219 something starting with __ and the normal name is an alias. */
6220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6221 choke me
6222 #else
6223 $ac_func();
6224 #endif
6226 ; return 0; }
6228 if { (eval echo configure:6229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6229 rm -rf conftest*
6230 eval "ac_cv_func_$ac_func=yes"
6231 else
6232 echo "configure: failed program was:" >&5
6233 cat conftest.$ac_ext >&5
6234 rm -rf conftest*
6235 eval "ac_cv_func_$ac_func=no"
6237 rm -f conftest*
6240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6241 echo "$ac_t""yes" 1>&6
6242 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6243 cat >> confdefs.h <<EOF
6244 #define $ac_tr_func 1
6247 else
6248 echo "$ac_t""no" 1>&6
6250 done
6252 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6255 echo "configure:6256: checking for $ac_func" >&5
6256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6257 echo $ac_n "(cached) $ac_c" 1>&6
6258 else
6259 cat > conftest.$ac_ext <<EOF
6260 #line 6261 "configure"
6261 #include "confdefs.h"
6262 /* System header to define __stub macros and hopefully few prototypes,
6263 which can conflict with char $ac_func(); below. */
6264 #include <assert.h>
6265 /* Override any gcc2 internal prototype to avoid an error. */
6266 /* We use char because int might match the return type of a gcc2
6267 builtin and then its argument prototype would still apply. */
6268 char $ac_func();
6270 int main() {
6272 /* The GNU C library defines this for functions which it implements
6273 to always fail with ENOSYS. Some functions are actually named
6274 something starting with __ and the normal name is an alias. */
6275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6276 choke me
6277 #else
6278 $ac_func();
6279 #endif
6281 ; return 0; }
6283 if { (eval echo configure:6284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6284 rm -rf conftest*
6285 eval "ac_cv_func_$ac_func=yes"
6286 else
6287 echo "configure: failed program was:" >&5
6288 cat conftest.$ac_ext >&5
6289 rm -rf conftest*
6290 eval "ac_cv_func_$ac_func=no"
6292 rm -f conftest*
6295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6296 echo "$ac_t""yes" 1>&6
6297 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6298 cat >> confdefs.h <<EOF
6299 #define $ac_tr_func 1
6302 else
6303 echo "$ac_t""no" 1>&6
6305 done
6307 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6310 echo "configure:6311: checking for $ac_func" >&5
6311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6312 echo $ac_n "(cached) $ac_c" 1>&6
6313 else
6314 cat > conftest.$ac_ext <<EOF
6315 #line 6316 "configure"
6316 #include "confdefs.h"
6317 /* System header to define __stub macros and hopefully few prototypes,
6318 which can conflict with char $ac_func(); below. */
6319 #include <assert.h>
6320 /* Override any gcc2 internal prototype to avoid an error. */
6321 /* We use char because int might match the return type of a gcc2
6322 builtin and then its argument prototype would still apply. */
6323 char $ac_func();
6325 int main() {
6327 /* The GNU C library defines this for functions which it implements
6328 to always fail with ENOSYS. Some functions are actually named
6329 something starting with __ and the normal name is an alias. */
6330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6331 choke me
6332 #else
6333 $ac_func();
6334 #endif
6336 ; return 0; }
6338 if { (eval echo configure:6339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6339 rm -rf conftest*
6340 eval "ac_cv_func_$ac_func=yes"
6341 else
6342 echo "configure: failed program was:" >&5
6343 cat conftest.$ac_ext >&5
6344 rm -rf conftest*
6345 eval "ac_cv_func_$ac_func=no"
6347 rm -f conftest*
6350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6351 echo "$ac_t""yes" 1>&6
6352 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6353 cat >> confdefs.h <<EOF
6354 #define $ac_tr_func 1
6357 else
6358 echo "$ac_t""no" 1>&6
6360 done
6362 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6365 echo "configure:6366: checking for $ac_func" >&5
6366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6367 echo $ac_n "(cached) $ac_c" 1>&6
6368 else
6369 cat > conftest.$ac_ext <<EOF
6370 #line 6371 "configure"
6371 #include "confdefs.h"
6372 /* System header to define __stub macros and hopefully few prototypes,
6373 which can conflict with char $ac_func(); below. */
6374 #include <assert.h>
6375 /* Override any gcc2 internal prototype to avoid an error. */
6376 /* We use char because int might match the return type of a gcc2
6377 builtin and then its argument prototype would still apply. */
6378 char $ac_func();
6380 int main() {
6382 /* The GNU C library defines this for functions which it implements
6383 to always fail with ENOSYS. Some functions are actually named
6384 something starting with __ and the normal name is an alias. */
6385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6386 choke me
6387 #else
6388 $ac_func();
6389 #endif
6391 ; return 0; }
6393 if { (eval echo configure:6394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6394 rm -rf conftest*
6395 eval "ac_cv_func_$ac_func=yes"
6396 else
6397 echo "configure: failed program was:" >&5
6398 cat conftest.$ac_ext >&5
6399 rm -rf conftest*
6400 eval "ac_cv_func_$ac_func=no"
6402 rm -f conftest*
6405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6406 echo "$ac_t""yes" 1>&6
6407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6408 cat >> confdefs.h <<EOF
6409 #define $ac_tr_func 1
6412 else
6413 echo "$ac_t""no" 1>&6
6415 done
6417 for ac_func in _write __write _fork __fork
6419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6420 echo "configure:6421: checking for $ac_func" >&5
6421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6422 echo $ac_n "(cached) $ac_c" 1>&6
6423 else
6424 cat > conftest.$ac_ext <<EOF
6425 #line 6426 "configure"
6426 #include "confdefs.h"
6427 /* System header to define __stub macros and hopefully few prototypes,
6428 which can conflict with char $ac_func(); below. */
6429 #include <assert.h>
6430 /* Override any gcc2 internal prototype to avoid an error. */
6431 /* We use char because int might match the return type of a gcc2
6432 builtin and then its argument prototype would still apply. */
6433 char $ac_func();
6435 int main() {
6437 /* The GNU C library defines this for functions which it implements
6438 to always fail with ENOSYS. Some functions are actually named
6439 something starting with __ and the normal name is an alias. */
6440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6441 choke me
6442 #else
6443 $ac_func();
6444 #endif
6446 ; return 0; }
6448 if { (eval echo configure:6449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6449 rm -rf conftest*
6450 eval "ac_cv_func_$ac_func=yes"
6451 else
6452 echo "configure: failed program was:" >&5
6453 cat conftest.$ac_ext >&5
6454 rm -rf conftest*
6455 eval "ac_cv_func_$ac_func=no"
6457 rm -f conftest*
6460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6461 echo "$ac_t""yes" 1>&6
6462 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6463 cat >> confdefs.h <<EOF
6464 #define $ac_tr_func 1
6467 else
6468 echo "$ac_t""no" 1>&6
6470 done
6472 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6474 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6475 echo "configure:6476: checking for $ac_func" >&5
6476 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6477 echo $ac_n "(cached) $ac_c" 1>&6
6478 else
6479 cat > conftest.$ac_ext <<EOF
6480 #line 6481 "configure"
6481 #include "confdefs.h"
6482 /* System header to define __stub macros and hopefully few prototypes,
6483 which can conflict with char $ac_func(); below. */
6484 #include <assert.h>
6485 /* Override any gcc2 internal prototype to avoid an error. */
6486 /* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */
6488 char $ac_func();
6490 int main() {
6492 /* The GNU C library defines this for functions which it implements
6493 to always fail with ENOSYS. Some functions are actually named
6494 something starting with __ and the normal name is an alias. */
6495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6496 choke me
6497 #else
6498 $ac_func();
6499 #endif
6501 ; return 0; }
6503 if { (eval echo configure:6504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6504 rm -rf conftest*
6505 eval "ac_cv_func_$ac_func=yes"
6506 else
6507 echo "configure: failed program was:" >&5
6508 cat conftest.$ac_ext >&5
6509 rm -rf conftest*
6510 eval "ac_cv_func_$ac_func=no"
6512 rm -f conftest*
6515 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6516 echo "$ac_t""yes" 1>&6
6517 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6518 cat >> confdefs.h <<EOF
6519 #define $ac_tr_func 1
6522 else
6523 echo "$ac_t""no" 1>&6
6525 done
6527 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6530 echo "configure:6531: checking for $ac_func" >&5
6531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6532 echo $ac_n "(cached) $ac_c" 1>&6
6533 else
6534 cat > conftest.$ac_ext <<EOF
6535 #line 6536 "configure"
6536 #include "confdefs.h"
6537 /* System header to define __stub macros and hopefully few prototypes,
6538 which can conflict with char $ac_func(); below. */
6539 #include <assert.h>
6540 /* Override any gcc2 internal prototype to avoid an error. */
6541 /* We use char because int might match the return type of a gcc2
6542 builtin and then its argument prototype would still apply. */
6543 char $ac_func();
6545 int main() {
6547 /* The GNU C library defines this for functions which it implements
6548 to always fail with ENOSYS. Some functions are actually named
6549 something starting with __ and the normal name is an alias. */
6550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6551 choke me
6552 #else
6553 $ac_func();
6554 #endif
6556 ; return 0; }
6558 if { (eval echo configure:6559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6559 rm -rf conftest*
6560 eval "ac_cv_func_$ac_func=yes"
6561 else
6562 echo "configure: failed program was:" >&5
6563 cat conftest.$ac_ext >&5
6564 rm -rf conftest*
6565 eval "ac_cv_func_$ac_func=no"
6567 rm -f conftest*
6570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6571 echo "$ac_t""yes" 1>&6
6572 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6573 cat >> confdefs.h <<EOF
6574 #define $ac_tr_func 1
6577 else
6578 echo "$ac_t""no" 1>&6
6580 done
6582 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6585 echo "configure:6586: checking for $ac_func" >&5
6586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6587 echo $ac_n "(cached) $ac_c" 1>&6
6588 else
6589 cat > conftest.$ac_ext <<EOF
6590 #line 6591 "configure"
6591 #include "confdefs.h"
6592 /* System header to define __stub macros and hopefully few prototypes,
6593 which can conflict with char $ac_func(); below. */
6594 #include <assert.h>
6595 /* Override any gcc2 internal prototype to avoid an error. */
6596 /* We use char because int might match the return type of a gcc2
6597 builtin and then its argument prototype would still apply. */
6598 char $ac_func();
6600 int main() {
6602 /* The GNU C library defines this for functions which it implements
6603 to always fail with ENOSYS. Some functions are actually named
6604 something starting with __ and the normal name is an alias. */
6605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6606 choke me
6607 #else
6608 $ac_func();
6609 #endif
6611 ; return 0; }
6613 if { (eval echo configure:6614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6614 rm -rf conftest*
6615 eval "ac_cv_func_$ac_func=yes"
6616 else
6617 echo "configure: failed program was:" >&5
6618 cat conftest.$ac_ext >&5
6619 rm -rf conftest*
6620 eval "ac_cv_func_$ac_func=no"
6622 rm -f conftest*
6625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6626 echo "$ac_t""yes" 1>&6
6627 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6628 cat >> confdefs.h <<EOF
6629 #define $ac_tr_func 1
6632 else
6633 echo "$ac_t""no" 1>&6
6635 done
6637 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6640 echo "configure:6641: checking for $ac_func" >&5
6641 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6642 echo $ac_n "(cached) $ac_c" 1>&6
6643 else
6644 cat > conftest.$ac_ext <<EOF
6645 #line 6646 "configure"
6646 #include "confdefs.h"
6647 /* System header to define __stub macros and hopefully few prototypes,
6648 which can conflict with char $ac_func(); below. */
6649 #include <assert.h>
6650 /* Override any gcc2 internal prototype to avoid an error. */
6651 /* We use char because int might match the return type of a gcc2
6652 builtin and then its argument prototype would still apply. */
6653 char $ac_func();
6655 int main() {
6657 /* The GNU C library defines this for functions which it implements
6658 to always fail with ENOSYS. Some functions are actually named
6659 something starting with __ and the normal name is an alias. */
6660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6661 choke me
6662 #else
6663 $ac_func();
6664 #endif
6666 ; return 0; }
6668 if { (eval echo configure:6669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6669 rm -rf conftest*
6670 eval "ac_cv_func_$ac_func=yes"
6671 else
6672 echo "configure: failed program was:" >&5
6673 cat conftest.$ac_ext >&5
6674 rm -rf conftest*
6675 eval "ac_cv_func_$ac_func=no"
6677 rm -f conftest*
6680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6681 echo "$ac_t""yes" 1>&6
6682 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6683 cat >> confdefs.h <<EOF
6684 #define $ac_tr_func 1
6687 else
6688 echo "$ac_t""no" 1>&6
6690 done
6692 for ac_func in open64 _open64 __open64 creat64
6694 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6695 echo "configure:6696: checking for $ac_func" >&5
6696 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6697 echo $ac_n "(cached) $ac_c" 1>&6
6698 else
6699 cat > conftest.$ac_ext <<EOF
6700 #line 6701 "configure"
6701 #include "confdefs.h"
6702 /* System header to define __stub macros and hopefully few prototypes,
6703 which can conflict with char $ac_func(); below. */
6704 #include <assert.h>
6705 /* Override any gcc2 internal prototype to avoid an error. */
6706 /* We use char because int might match the return type of a gcc2
6707 builtin and then its argument prototype would still apply. */
6708 char $ac_func();
6710 int main() {
6712 /* The GNU C library defines this for functions which it implements
6713 to always fail with ENOSYS. Some functions are actually named
6714 something starting with __ and the normal name is an alias. */
6715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6716 choke me
6717 #else
6718 $ac_func();
6719 #endif
6721 ; return 0; }
6723 if { (eval echo configure:6724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6724 rm -rf conftest*
6725 eval "ac_cv_func_$ac_func=yes"
6726 else
6727 echo "configure: failed program was:" >&5
6728 cat conftest.$ac_ext >&5
6729 rm -rf conftest*
6730 eval "ac_cv_func_$ac_func=no"
6732 rm -f conftest*
6735 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6736 echo "$ac_t""yes" 1>&6
6737 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6738 cat >> confdefs.h <<EOF
6739 #define $ac_tr_func 1
6742 else
6743 echo "$ac_t""no" 1>&6
6745 done
6749 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6752 if test x$ac_cv_func_stat64 = xno ; then
6753 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6754 echo "configure:6755: checking for stat64 in <sys/stat.h>" >&5
6755 cat > conftest.$ac_ext <<EOF
6756 #line 6757 "configure"
6757 #include "confdefs.h"
6759 #if defined(HAVE_UNISTD_H)
6760 #include <unistd.h>
6761 #endif
6762 #include <sys/stat.h>
6764 int main() {
6765 struct stat64 st64; exit(stat64(".",&st64));
6766 ; return 0; }
6768 if { (eval echo configure:6769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6769 rm -rf conftest*
6770 ac_cv_func_stat64=yes
6771 else
6772 echo "configure: failed program was:" >&5
6773 cat conftest.$ac_ext >&5
6775 rm -f conftest*
6776 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6777 if test x$ac_cv_func_stat64 = xyes ; then
6778 cat >> confdefs.h <<\EOF
6779 #define HAVE_STAT64 1
6785 if test x$ac_cv_func_lstat64 = xno ; then
6786 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6787 echo "configure:6788: checking for lstat64 in <sys/stat.h>" >&5
6788 cat > conftest.$ac_ext <<EOF
6789 #line 6790 "configure"
6790 #include "confdefs.h"
6792 #if defined(HAVE_UNISTD_H)
6793 #include <unistd.h>
6794 #endif
6795 #include <sys/stat.h>
6797 int main() {
6798 struct stat64 st64; exit(lstat64(".",&st64));
6799 ; return 0; }
6801 if { (eval echo configure:6802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6802 rm -rf conftest*
6803 ac_cv_func_lstat64=yes
6804 else
6805 echo "configure: failed program was:" >&5
6806 cat conftest.$ac_ext >&5
6808 rm -f conftest*
6809 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6810 if test x$ac_cv_func_lstat64 = xyes ; then
6811 cat >> confdefs.h <<\EOF
6812 #define HAVE_LSTAT64 1
6818 if test x$ac_cv_func_fstat64 = xno ; then
6819 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6820 echo "configure:6821: checking for fstat64 in <sys/stat.h>" >&5
6821 cat > conftest.$ac_ext <<EOF
6822 #line 6823 "configure"
6823 #include "confdefs.h"
6825 #if defined(HAVE_UNISTD_H)
6826 #include <unistd.h>
6827 #endif
6828 #include <sys/stat.h>
6830 int main() {
6831 struct stat64 st64; exit(fstat64(0,&st64));
6832 ; return 0; }
6834 if { (eval echo configure:6835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6835 rm -rf conftest*
6836 ac_cv_func_fstat64=yes
6837 else
6838 echo "configure: failed program was:" >&5
6839 cat conftest.$ac_ext >&5
6841 rm -f conftest*
6842 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6843 if test x$ac_cv_func_fstat64 = xyes ; then
6844 cat >> confdefs.h <<\EOF
6845 #define HAVE_FSTAT64 1
6852 # If no strcasecmp, check for it in some known places
6853 # It is in -lresolv on ReliantUNIX and UnixWare
6854 # -lresolve *must* follow -lnsl for name resolution to work properly
6857 if test x$ac_cv_func_strcasecmp = xno ; then
6858 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6859 echo "configure:6860: checking for strcasecmp in -lresolv" >&5
6860 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6862 echo $ac_n "(cached) $ac_c" 1>&6
6863 else
6864 ac_save_LIBS="$LIBS"
6865 LIBS="-lresolv $LIBS"
6866 cat > conftest.$ac_ext <<EOF
6867 #line 6868 "configure"
6868 #include "confdefs.h"
6869 /* Override any gcc2 internal prototype to avoid an error. */
6870 /* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6872 char strcasecmp();
6874 int main() {
6875 strcasecmp()
6876 ; return 0; }
6878 if { (eval echo configure:6879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6879 rm -rf conftest*
6880 eval "ac_cv_lib_$ac_lib_var=yes"
6881 else
6882 echo "configure: failed program was:" >&5
6883 cat conftest.$ac_ext >&5
6884 rm -rf conftest*
6885 eval "ac_cv_lib_$ac_lib_var=no"
6887 rm -f conftest*
6888 LIBS="$ac_save_LIBS"
6891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6892 echo "$ac_t""yes" 1>&6
6893 LIBS="$LIBS -lresolv"
6894 cat >> confdefs.h <<\EOF
6895 #define HAVE_STRCASECMP 1
6898 else
6899 echo "$ac_t""no" 1>&6
6905 # Check for the functions putprpwnam, set_auth_parameters,
6906 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6907 # Needed for OSF1 and HPUX.
6910 case "$LIBS" in
6911 *-lsecurity*) for ac_func in putprpwnam
6913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6914 echo "configure:6915: checking for $ac_func" >&5
6915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6916 echo $ac_n "(cached) $ac_c" 1>&6
6917 else
6918 cat > conftest.$ac_ext <<EOF
6919 #line 6920 "configure"
6920 #include "confdefs.h"
6921 /* System header to define __stub macros and hopefully few prototypes,
6922 which can conflict with char $ac_func(); below. */
6923 #include <assert.h>
6924 /* Override any gcc2 internal prototype to avoid an error. */
6925 /* We use char because int might match the return type of a gcc2
6926 builtin and then its argument prototype would still apply. */
6927 char $ac_func();
6929 int main() {
6931 /* The GNU C library defines this for functions which it implements
6932 to always fail with ENOSYS. Some functions are actually named
6933 something starting with __ and the normal name is an alias. */
6934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6935 choke me
6936 #else
6937 $ac_func();
6938 #endif
6940 ; return 0; }
6942 if { (eval echo configure:6943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6943 rm -rf conftest*
6944 eval "ac_cv_func_$ac_func=yes"
6945 else
6946 echo "configure: failed program was:" >&5
6947 cat conftest.$ac_ext >&5
6948 rm -rf conftest*
6949 eval "ac_cv_func_$ac_func=no"
6951 rm -f conftest*
6954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6955 echo "$ac_t""yes" 1>&6
6956 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6957 cat >> confdefs.h <<EOF
6958 #define $ac_tr_func 1
6961 else
6962 echo "$ac_t""no" 1>&6
6964 done
6966 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6967 echo "configure:6968: checking for putprpwnam in -lsecurity" >&5
6968 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6969 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6970 echo $ac_n "(cached) $ac_c" 1>&6
6971 else
6972 ac_save_LIBS="$LIBS"
6973 LIBS="-lsecurity $LIBS"
6974 cat > conftest.$ac_ext <<EOF
6975 #line 6976 "configure"
6976 #include "confdefs.h"
6977 /* Override any gcc2 internal prototype to avoid an error. */
6978 /* We use char because int might match the return type of a gcc2
6979 builtin and then its argument prototype would still apply. */
6980 char putprpwnam();
6982 int main() {
6983 putprpwnam()
6984 ; return 0; }
6986 if { (eval echo configure:6987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6987 rm -rf conftest*
6988 eval "ac_cv_lib_$ac_lib_var=yes"
6989 else
6990 echo "configure: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6992 rm -rf conftest*
6993 eval "ac_cv_lib_$ac_lib_var=no"
6995 rm -f conftest*
6996 LIBS="$ac_save_LIBS"
6999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7000 echo "$ac_t""yes" 1>&6
7001 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7002 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7003 cat >> confdefs.h <<EOF
7004 #define $ac_tr_lib 1
7007 LIBS="-lsecurity $LIBS"
7009 else
7010 echo "$ac_t""no" 1>&6
7013 for ac_func in putprpwnam
7015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7016 echo "configure:7017: checking for $ac_func" >&5
7017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7018 echo $ac_n "(cached) $ac_c" 1>&6
7019 else
7020 cat > conftest.$ac_ext <<EOF
7021 #line 7022 "configure"
7022 #include "confdefs.h"
7023 /* System header to define __stub macros and hopefully few prototypes,
7024 which can conflict with char $ac_func(); below. */
7025 #include <assert.h>
7026 /* Override any gcc2 internal prototype to avoid an error. */
7027 /* We use char because int might match the return type of a gcc2
7028 builtin and then its argument prototype would still apply. */
7029 char $ac_func();
7031 int main() {
7033 /* The GNU C library defines this for functions which it implements
7034 to always fail with ENOSYS. Some functions are actually named
7035 something starting with __ and the normal name is an alias. */
7036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7037 choke me
7038 #else
7039 $ac_func();
7040 #endif
7042 ; return 0; }
7044 if { (eval echo configure:7045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7045 rm -rf conftest*
7046 eval "ac_cv_func_$ac_func=yes"
7047 else
7048 echo "configure: failed program was:" >&5
7049 cat conftest.$ac_ext >&5
7050 rm -rf conftest*
7051 eval "ac_cv_func_$ac_func=no"
7053 rm -f conftest*
7056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7057 echo "$ac_t""yes" 1>&6
7058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7059 cat >> confdefs.h <<EOF
7060 #define $ac_tr_func 1
7063 else
7064 echo "$ac_t""no" 1>&6
7066 done
7069 esac
7071 case "$LIBS" in
7072 *-lsec*) for ac_func in putprpwnam
7074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7075 echo "configure:7076: checking for $ac_func" >&5
7076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7077 echo $ac_n "(cached) $ac_c" 1>&6
7078 else
7079 cat > conftest.$ac_ext <<EOF
7080 #line 7081 "configure"
7081 #include "confdefs.h"
7082 /* System header to define __stub macros and hopefully few prototypes,
7083 which can conflict with char $ac_func(); below. */
7084 #include <assert.h>
7085 /* Override any gcc2 internal prototype to avoid an error. */
7086 /* We use char because int might match the return type of a gcc2
7087 builtin and then its argument prototype would still apply. */
7088 char $ac_func();
7090 int main() {
7092 /* The GNU C library defines this for functions which it implements
7093 to always fail with ENOSYS. Some functions are actually named
7094 something starting with __ and the normal name is an alias. */
7095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7096 choke me
7097 #else
7098 $ac_func();
7099 #endif
7101 ; return 0; }
7103 if { (eval echo configure:7104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7104 rm -rf conftest*
7105 eval "ac_cv_func_$ac_func=yes"
7106 else
7107 echo "configure: failed program was:" >&5
7108 cat conftest.$ac_ext >&5
7109 rm -rf conftest*
7110 eval "ac_cv_func_$ac_func=no"
7112 rm -f conftest*
7115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7116 echo "$ac_t""yes" 1>&6
7117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7118 cat >> confdefs.h <<EOF
7119 #define $ac_tr_func 1
7122 else
7123 echo "$ac_t""no" 1>&6
7125 done
7127 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7128 echo "configure:7129: checking for putprpwnam in -lsec" >&5
7129 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7131 echo $ac_n "(cached) $ac_c" 1>&6
7132 else
7133 ac_save_LIBS="$LIBS"
7134 LIBS="-lsec $LIBS"
7135 cat > conftest.$ac_ext <<EOF
7136 #line 7137 "configure"
7137 #include "confdefs.h"
7138 /* Override any gcc2 internal prototype to avoid an error. */
7139 /* We use char because int might match the return type of a gcc2
7140 builtin and then its argument prototype would still apply. */
7141 char putprpwnam();
7143 int main() {
7144 putprpwnam()
7145 ; return 0; }
7147 if { (eval echo configure:7148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7148 rm -rf conftest*
7149 eval "ac_cv_lib_$ac_lib_var=yes"
7150 else
7151 echo "configure: failed program was:" >&5
7152 cat conftest.$ac_ext >&5
7153 rm -rf conftest*
7154 eval "ac_cv_lib_$ac_lib_var=no"
7156 rm -f conftest*
7157 LIBS="$ac_save_LIBS"
7160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7161 echo "$ac_t""yes" 1>&6
7162 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7163 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7164 cat >> confdefs.h <<EOF
7165 #define $ac_tr_lib 1
7168 LIBS="-lsec $LIBS"
7170 else
7171 echo "$ac_t""no" 1>&6
7174 for ac_func in putprpwnam
7176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7177 echo "configure:7178: checking for $ac_func" >&5
7178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7179 echo $ac_n "(cached) $ac_c" 1>&6
7180 else
7181 cat > conftest.$ac_ext <<EOF
7182 #line 7183 "configure"
7183 #include "confdefs.h"
7184 /* System header to define __stub macros and hopefully few prototypes,
7185 which can conflict with char $ac_func(); below. */
7186 #include <assert.h>
7187 /* Override any gcc2 internal prototype to avoid an error. */
7188 /* We use char because int might match the return type of a gcc2
7189 builtin and then its argument prototype would still apply. */
7190 char $ac_func();
7192 int main() {
7194 /* The GNU C library defines this for functions which it implements
7195 to always fail with ENOSYS. Some functions are actually named
7196 something starting with __ and the normal name is an alias. */
7197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7198 choke me
7199 #else
7200 $ac_func();
7201 #endif
7203 ; return 0; }
7205 if { (eval echo configure:7206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7206 rm -rf conftest*
7207 eval "ac_cv_func_$ac_func=yes"
7208 else
7209 echo "configure: failed program was:" >&5
7210 cat conftest.$ac_ext >&5
7211 rm -rf conftest*
7212 eval "ac_cv_func_$ac_func=no"
7214 rm -f conftest*
7217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7218 echo "$ac_t""yes" 1>&6
7219 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7220 cat >> confdefs.h <<EOF
7221 #define $ac_tr_func 1
7224 else
7225 echo "$ac_t""no" 1>&6
7227 done
7230 esac
7233 case "$LIBS" in
7234 *-lsecurity*) for ac_func in set_auth_parameters
7236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7237 echo "configure:7238: checking for $ac_func" >&5
7238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7239 echo $ac_n "(cached) $ac_c" 1>&6
7240 else
7241 cat > conftest.$ac_ext <<EOF
7242 #line 7243 "configure"
7243 #include "confdefs.h"
7244 /* System header to define __stub macros and hopefully few prototypes,
7245 which can conflict with char $ac_func(); below. */
7246 #include <assert.h>
7247 /* Override any gcc2 internal prototype to avoid an error. */
7248 /* We use char because int might match the return type of a gcc2
7249 builtin and then its argument prototype would still apply. */
7250 char $ac_func();
7252 int main() {
7254 /* The GNU C library defines this for functions which it implements
7255 to always fail with ENOSYS. Some functions are actually named
7256 something starting with __ and the normal name is an alias. */
7257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7258 choke me
7259 #else
7260 $ac_func();
7261 #endif
7263 ; return 0; }
7265 if { (eval echo configure:7266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7266 rm -rf conftest*
7267 eval "ac_cv_func_$ac_func=yes"
7268 else
7269 echo "configure: failed program was:" >&5
7270 cat conftest.$ac_ext >&5
7271 rm -rf conftest*
7272 eval "ac_cv_func_$ac_func=no"
7274 rm -f conftest*
7277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7278 echo "$ac_t""yes" 1>&6
7279 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7280 cat >> confdefs.h <<EOF
7281 #define $ac_tr_func 1
7284 else
7285 echo "$ac_t""no" 1>&6
7287 done
7289 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7290 echo "configure:7291: checking for set_auth_parameters in -lsecurity" >&5
7291 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7293 echo $ac_n "(cached) $ac_c" 1>&6
7294 else
7295 ac_save_LIBS="$LIBS"
7296 LIBS="-lsecurity $LIBS"
7297 cat > conftest.$ac_ext <<EOF
7298 #line 7299 "configure"
7299 #include "confdefs.h"
7300 /* Override any gcc2 internal prototype to avoid an error. */
7301 /* We use char because int might match the return type of a gcc2
7302 builtin and then its argument prototype would still apply. */
7303 char set_auth_parameters();
7305 int main() {
7306 set_auth_parameters()
7307 ; return 0; }
7309 if { (eval echo configure:7310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7310 rm -rf conftest*
7311 eval "ac_cv_lib_$ac_lib_var=yes"
7312 else
7313 echo "configure: failed program was:" >&5
7314 cat conftest.$ac_ext >&5
7315 rm -rf conftest*
7316 eval "ac_cv_lib_$ac_lib_var=no"
7318 rm -f conftest*
7319 LIBS="$ac_save_LIBS"
7322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7323 echo "$ac_t""yes" 1>&6
7324 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7325 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7326 cat >> confdefs.h <<EOF
7327 #define $ac_tr_lib 1
7330 LIBS="-lsecurity $LIBS"
7332 else
7333 echo "$ac_t""no" 1>&6
7336 for ac_func in set_auth_parameters
7338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7339 echo "configure:7340: checking for $ac_func" >&5
7340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7341 echo $ac_n "(cached) $ac_c" 1>&6
7342 else
7343 cat > conftest.$ac_ext <<EOF
7344 #line 7345 "configure"
7345 #include "confdefs.h"
7346 /* System header to define __stub macros and hopefully few prototypes,
7347 which can conflict with char $ac_func(); below. */
7348 #include <assert.h>
7349 /* Override any gcc2 internal prototype to avoid an error. */
7350 /* We use char because int might match the return type of a gcc2
7351 builtin and then its argument prototype would still apply. */
7352 char $ac_func();
7354 int main() {
7356 /* The GNU C library defines this for functions which it implements
7357 to always fail with ENOSYS. Some functions are actually named
7358 something starting with __ and the normal name is an alias. */
7359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7360 choke me
7361 #else
7362 $ac_func();
7363 #endif
7365 ; return 0; }
7367 if { (eval echo configure:7368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7368 rm -rf conftest*
7369 eval "ac_cv_func_$ac_func=yes"
7370 else
7371 echo "configure: failed program was:" >&5
7372 cat conftest.$ac_ext >&5
7373 rm -rf conftest*
7374 eval "ac_cv_func_$ac_func=no"
7376 rm -f conftest*
7379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7380 echo "$ac_t""yes" 1>&6
7381 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7382 cat >> confdefs.h <<EOF
7383 #define $ac_tr_func 1
7386 else
7387 echo "$ac_t""no" 1>&6
7389 done
7392 esac
7394 case "$LIBS" in
7395 *-lsec*) for ac_func in set_auth_parameters
7397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7398 echo "configure:7399: checking for $ac_func" >&5
7399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7400 echo $ac_n "(cached) $ac_c" 1>&6
7401 else
7402 cat > conftest.$ac_ext <<EOF
7403 #line 7404 "configure"
7404 #include "confdefs.h"
7405 /* System header to define __stub macros and hopefully few prototypes,
7406 which can conflict with char $ac_func(); below. */
7407 #include <assert.h>
7408 /* Override any gcc2 internal prototype to avoid an error. */
7409 /* We use char because int might match the return type of a gcc2
7410 builtin and then its argument prototype would still apply. */
7411 char $ac_func();
7413 int main() {
7415 /* The GNU C library defines this for functions which it implements
7416 to always fail with ENOSYS. Some functions are actually named
7417 something starting with __ and the normal name is an alias. */
7418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7419 choke me
7420 #else
7421 $ac_func();
7422 #endif
7424 ; return 0; }
7426 if { (eval echo configure:7427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7427 rm -rf conftest*
7428 eval "ac_cv_func_$ac_func=yes"
7429 else
7430 echo "configure: failed program was:" >&5
7431 cat conftest.$ac_ext >&5
7432 rm -rf conftest*
7433 eval "ac_cv_func_$ac_func=no"
7435 rm -f conftest*
7438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7439 echo "$ac_t""yes" 1>&6
7440 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7441 cat >> confdefs.h <<EOF
7442 #define $ac_tr_func 1
7445 else
7446 echo "$ac_t""no" 1>&6
7448 done
7450 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7451 echo "configure:7452: checking for set_auth_parameters in -lsec" >&5
7452 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7453 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7454 echo $ac_n "(cached) $ac_c" 1>&6
7455 else
7456 ac_save_LIBS="$LIBS"
7457 LIBS="-lsec $LIBS"
7458 cat > conftest.$ac_ext <<EOF
7459 #line 7460 "configure"
7460 #include "confdefs.h"
7461 /* Override any gcc2 internal prototype to avoid an error. */
7462 /* We use char because int might match the return type of a gcc2
7463 builtin and then its argument prototype would still apply. */
7464 char set_auth_parameters();
7466 int main() {
7467 set_auth_parameters()
7468 ; return 0; }
7470 if { (eval echo configure:7471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7471 rm -rf conftest*
7472 eval "ac_cv_lib_$ac_lib_var=yes"
7473 else
7474 echo "configure: failed program was:" >&5
7475 cat conftest.$ac_ext >&5
7476 rm -rf conftest*
7477 eval "ac_cv_lib_$ac_lib_var=no"
7479 rm -f conftest*
7480 LIBS="$ac_save_LIBS"
7483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7484 echo "$ac_t""yes" 1>&6
7485 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7486 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7487 cat >> confdefs.h <<EOF
7488 #define $ac_tr_lib 1
7491 LIBS="-lsec $LIBS"
7493 else
7494 echo "$ac_t""no" 1>&6
7497 for ac_func in set_auth_parameters
7499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7500 echo "configure:7501: checking for $ac_func" >&5
7501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7502 echo $ac_n "(cached) $ac_c" 1>&6
7503 else
7504 cat > conftest.$ac_ext <<EOF
7505 #line 7506 "configure"
7506 #include "confdefs.h"
7507 /* System header to define __stub macros and hopefully few prototypes,
7508 which can conflict with char $ac_func(); below. */
7509 #include <assert.h>
7510 /* Override any gcc2 internal prototype to avoid an error. */
7511 /* We use char because int might match the return type of a gcc2
7512 builtin and then its argument prototype would still apply. */
7513 char $ac_func();
7515 int main() {
7517 /* The GNU C library defines this for functions which it implements
7518 to always fail with ENOSYS. Some functions are actually named
7519 something starting with __ and the normal name is an alias. */
7520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7521 choke me
7522 #else
7523 $ac_func();
7524 #endif
7526 ; return 0; }
7528 if { (eval echo configure:7529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7529 rm -rf conftest*
7530 eval "ac_cv_func_$ac_func=yes"
7531 else
7532 echo "configure: failed program was:" >&5
7533 cat conftest.$ac_ext >&5
7534 rm -rf conftest*
7535 eval "ac_cv_func_$ac_func=no"
7537 rm -f conftest*
7540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7541 echo "$ac_t""yes" 1>&6
7542 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7543 cat >> confdefs.h <<EOF
7544 #define $ac_tr_func 1
7547 else
7548 echo "$ac_t""no" 1>&6
7550 done
7553 esac
7556 # UnixWare 7.x has its getspnam in -lgen
7557 case "$LIBS" in
7558 *-lgen*) for ac_func in getspnam
7560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7561 echo "configure:7562: checking for $ac_func" >&5
7562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7563 echo $ac_n "(cached) $ac_c" 1>&6
7564 else
7565 cat > conftest.$ac_ext <<EOF
7566 #line 7567 "configure"
7567 #include "confdefs.h"
7568 /* System header to define __stub macros and hopefully few prototypes,
7569 which can conflict with char $ac_func(); below. */
7570 #include <assert.h>
7571 /* Override any gcc2 internal prototype to avoid an error. */
7572 /* We use char because int might match the return type of a gcc2
7573 builtin and then its argument prototype would still apply. */
7574 char $ac_func();
7576 int main() {
7578 /* The GNU C library defines this for functions which it implements
7579 to always fail with ENOSYS. Some functions are actually named
7580 something starting with __ and the normal name is an alias. */
7581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7582 choke me
7583 #else
7584 $ac_func();
7585 #endif
7587 ; return 0; }
7589 if { (eval echo configure:7590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7590 rm -rf conftest*
7591 eval "ac_cv_func_$ac_func=yes"
7592 else
7593 echo "configure: failed program was:" >&5
7594 cat conftest.$ac_ext >&5
7595 rm -rf conftest*
7596 eval "ac_cv_func_$ac_func=no"
7598 rm -f conftest*
7601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7602 echo "$ac_t""yes" 1>&6
7603 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7604 cat >> confdefs.h <<EOF
7605 #define $ac_tr_func 1
7608 else
7609 echo "$ac_t""no" 1>&6
7611 done
7613 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7614 echo "configure:7615: checking for getspnam in -lgen" >&5
7615 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7616 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7617 echo $ac_n "(cached) $ac_c" 1>&6
7618 else
7619 ac_save_LIBS="$LIBS"
7620 LIBS="-lgen $LIBS"
7621 cat > conftest.$ac_ext <<EOF
7622 #line 7623 "configure"
7623 #include "confdefs.h"
7624 /* Override any gcc2 internal prototype to avoid an error. */
7625 /* We use char because int might match the return type of a gcc2
7626 builtin and then its argument prototype would still apply. */
7627 char getspnam();
7629 int main() {
7630 getspnam()
7631 ; return 0; }
7633 if { (eval echo configure:7634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7634 rm -rf conftest*
7635 eval "ac_cv_lib_$ac_lib_var=yes"
7636 else
7637 echo "configure: failed program was:" >&5
7638 cat conftest.$ac_ext >&5
7639 rm -rf conftest*
7640 eval "ac_cv_lib_$ac_lib_var=no"
7642 rm -f conftest*
7643 LIBS="$ac_save_LIBS"
7646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7647 echo "$ac_t""yes" 1>&6
7648 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7649 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7650 cat >> confdefs.h <<EOF
7651 #define $ac_tr_lib 1
7654 LIBS="-lgen $LIBS"
7656 else
7657 echo "$ac_t""no" 1>&6
7660 for ac_func in getspnam
7662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7663 echo "configure:7664: checking for $ac_func" >&5
7664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7665 echo $ac_n "(cached) $ac_c" 1>&6
7666 else
7667 cat > conftest.$ac_ext <<EOF
7668 #line 7669 "configure"
7669 #include "confdefs.h"
7670 /* System header to define __stub macros and hopefully few prototypes,
7671 which can conflict with char $ac_func(); below. */
7672 #include <assert.h>
7673 /* Override any gcc2 internal prototype to avoid an error. */
7674 /* We use char because int might match the return type of a gcc2
7675 builtin and then its argument prototype would still apply. */
7676 char $ac_func();
7678 int main() {
7680 /* The GNU C library defines this for functions which it implements
7681 to always fail with ENOSYS. Some functions are actually named
7682 something starting with __ and the normal name is an alias. */
7683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7684 choke me
7685 #else
7686 $ac_func();
7687 #endif
7689 ; return 0; }
7691 if { (eval echo configure:7692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7692 rm -rf conftest*
7693 eval "ac_cv_func_$ac_func=yes"
7694 else
7695 echo "configure: failed program was:" >&5
7696 cat conftest.$ac_ext >&5
7697 rm -rf conftest*
7698 eval "ac_cv_func_$ac_func=no"
7700 rm -f conftest*
7703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7704 echo "$ac_t""yes" 1>&6
7705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7706 cat >> confdefs.h <<EOF
7707 #define $ac_tr_func 1
7710 else
7711 echo "$ac_t""no" 1>&6
7713 done
7716 esac
7719 case "$LIBS" in
7720 *-lsecurity*) for ac_func in getspnam
7722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7723 echo "configure:7724: checking for $ac_func" >&5
7724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7725 echo $ac_n "(cached) $ac_c" 1>&6
7726 else
7727 cat > conftest.$ac_ext <<EOF
7728 #line 7729 "configure"
7729 #include "confdefs.h"
7730 /* System header to define __stub macros and hopefully few prototypes,
7731 which can conflict with char $ac_func(); below. */
7732 #include <assert.h>
7733 /* Override any gcc2 internal prototype to avoid an error. */
7734 /* We use char because int might match the return type of a gcc2
7735 builtin and then its argument prototype would still apply. */
7736 char $ac_func();
7738 int main() {
7740 /* The GNU C library defines this for functions which it implements
7741 to always fail with ENOSYS. Some functions are actually named
7742 something starting with __ and the normal name is an alias. */
7743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7744 choke me
7745 #else
7746 $ac_func();
7747 #endif
7749 ; return 0; }
7751 if { (eval echo configure:7752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7752 rm -rf conftest*
7753 eval "ac_cv_func_$ac_func=yes"
7754 else
7755 echo "configure: failed program was:" >&5
7756 cat conftest.$ac_ext >&5
7757 rm -rf conftest*
7758 eval "ac_cv_func_$ac_func=no"
7760 rm -f conftest*
7763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7764 echo "$ac_t""yes" 1>&6
7765 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7766 cat >> confdefs.h <<EOF
7767 #define $ac_tr_func 1
7770 else
7771 echo "$ac_t""no" 1>&6
7773 done
7775 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7776 echo "configure:7777: checking for getspnam in -lsecurity" >&5
7777 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7778 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7779 echo $ac_n "(cached) $ac_c" 1>&6
7780 else
7781 ac_save_LIBS="$LIBS"
7782 LIBS="-lsecurity $LIBS"
7783 cat > conftest.$ac_ext <<EOF
7784 #line 7785 "configure"
7785 #include "confdefs.h"
7786 /* Override any gcc2 internal prototype to avoid an error. */
7787 /* We use char because int might match the return type of a gcc2
7788 builtin and then its argument prototype would still apply. */
7789 char getspnam();
7791 int main() {
7792 getspnam()
7793 ; return 0; }
7795 if { (eval echo configure:7796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7796 rm -rf conftest*
7797 eval "ac_cv_lib_$ac_lib_var=yes"
7798 else
7799 echo "configure: failed program was:" >&5
7800 cat conftest.$ac_ext >&5
7801 rm -rf conftest*
7802 eval "ac_cv_lib_$ac_lib_var=no"
7804 rm -f conftest*
7805 LIBS="$ac_save_LIBS"
7808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7809 echo "$ac_t""yes" 1>&6
7810 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7811 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7812 cat >> confdefs.h <<EOF
7813 #define $ac_tr_lib 1
7816 LIBS="-lsecurity $LIBS"
7818 else
7819 echo "$ac_t""no" 1>&6
7822 for ac_func in getspnam
7824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7825 echo "configure:7826: checking for $ac_func" >&5
7826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7827 echo $ac_n "(cached) $ac_c" 1>&6
7828 else
7829 cat > conftest.$ac_ext <<EOF
7830 #line 7831 "configure"
7831 #include "confdefs.h"
7832 /* System header to define __stub macros and hopefully few prototypes,
7833 which can conflict with char $ac_func(); below. */
7834 #include <assert.h>
7835 /* Override any gcc2 internal prototype to avoid an error. */
7836 /* We use char because int might match the return type of a gcc2
7837 builtin and then its argument prototype would still apply. */
7838 char $ac_func();
7840 int main() {
7842 /* The GNU C library defines this for functions which it implements
7843 to always fail with ENOSYS. Some functions are actually named
7844 something starting with __ and the normal name is an alias. */
7845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7846 choke me
7847 #else
7848 $ac_func();
7849 #endif
7851 ; return 0; }
7853 if { (eval echo configure:7854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7854 rm -rf conftest*
7855 eval "ac_cv_func_$ac_func=yes"
7856 else
7857 echo "configure: failed program was:" >&5
7858 cat conftest.$ac_ext >&5
7859 rm -rf conftest*
7860 eval "ac_cv_func_$ac_func=no"
7862 rm -f conftest*
7865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7866 echo "$ac_t""yes" 1>&6
7867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7868 cat >> confdefs.h <<EOF
7869 #define $ac_tr_func 1
7872 else
7873 echo "$ac_t""no" 1>&6
7875 done
7878 esac
7880 case "$LIBS" in
7881 *-lsec*) for ac_func in getspnam
7883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7884 echo "configure:7885: checking for $ac_func" >&5
7885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7886 echo $ac_n "(cached) $ac_c" 1>&6
7887 else
7888 cat > conftest.$ac_ext <<EOF
7889 #line 7890 "configure"
7890 #include "confdefs.h"
7891 /* System header to define __stub macros and hopefully few prototypes,
7892 which can conflict with char $ac_func(); below. */
7893 #include <assert.h>
7894 /* Override any gcc2 internal prototype to avoid an error. */
7895 /* We use char because int might match the return type of a gcc2
7896 builtin and then its argument prototype would still apply. */
7897 char $ac_func();
7899 int main() {
7901 /* The GNU C library defines this for functions which it implements
7902 to always fail with ENOSYS. Some functions are actually named
7903 something starting with __ and the normal name is an alias. */
7904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7905 choke me
7906 #else
7907 $ac_func();
7908 #endif
7910 ; return 0; }
7912 if { (eval echo configure:7913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7913 rm -rf conftest*
7914 eval "ac_cv_func_$ac_func=yes"
7915 else
7916 echo "configure: failed program was:" >&5
7917 cat conftest.$ac_ext >&5
7918 rm -rf conftest*
7919 eval "ac_cv_func_$ac_func=no"
7921 rm -f conftest*
7924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7925 echo "$ac_t""yes" 1>&6
7926 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7927 cat >> confdefs.h <<EOF
7928 #define $ac_tr_func 1
7931 else
7932 echo "$ac_t""no" 1>&6
7934 done
7936 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7937 echo "configure:7938: checking for getspnam in -lsec" >&5
7938 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7939 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7940 echo $ac_n "(cached) $ac_c" 1>&6
7941 else
7942 ac_save_LIBS="$LIBS"
7943 LIBS="-lsec $LIBS"
7944 cat > conftest.$ac_ext <<EOF
7945 #line 7946 "configure"
7946 #include "confdefs.h"
7947 /* Override any gcc2 internal prototype to avoid an error. */
7948 /* We use char because int might match the return type of a gcc2
7949 builtin and then its argument prototype would still apply. */
7950 char getspnam();
7952 int main() {
7953 getspnam()
7954 ; return 0; }
7956 if { (eval echo configure:7957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7957 rm -rf conftest*
7958 eval "ac_cv_lib_$ac_lib_var=yes"
7959 else
7960 echo "configure: failed program was:" >&5
7961 cat conftest.$ac_ext >&5
7962 rm -rf conftest*
7963 eval "ac_cv_lib_$ac_lib_var=no"
7965 rm -f conftest*
7966 LIBS="$ac_save_LIBS"
7969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7970 echo "$ac_t""yes" 1>&6
7971 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7972 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7973 cat >> confdefs.h <<EOF
7974 #define $ac_tr_lib 1
7977 LIBS="-lsec $LIBS"
7979 else
7980 echo "$ac_t""no" 1>&6
7983 for ac_func in getspnam
7985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7986 echo "configure:7987: checking for $ac_func" >&5
7987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7988 echo $ac_n "(cached) $ac_c" 1>&6
7989 else
7990 cat > conftest.$ac_ext <<EOF
7991 #line 7992 "configure"
7992 #include "confdefs.h"
7993 /* System header to define __stub macros and hopefully few prototypes,
7994 which can conflict with char $ac_func(); below. */
7995 #include <assert.h>
7996 /* Override any gcc2 internal prototype to avoid an error. */
7997 /* We use char because int might match the return type of a gcc2
7998 builtin and then its argument prototype would still apply. */
7999 char $ac_func();
8001 int main() {
8003 /* The GNU C library defines this for functions which it implements
8004 to always fail with ENOSYS. Some functions are actually named
8005 something starting with __ and the normal name is an alias. */
8006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8007 choke me
8008 #else
8009 $ac_func();
8010 #endif
8012 ; return 0; }
8014 if { (eval echo configure:8015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8015 rm -rf conftest*
8016 eval "ac_cv_func_$ac_func=yes"
8017 else
8018 echo "configure: failed program was:" >&5
8019 cat conftest.$ac_ext >&5
8020 rm -rf conftest*
8021 eval "ac_cv_func_$ac_func=no"
8023 rm -f conftest*
8026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8027 echo "$ac_t""yes" 1>&6
8028 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8029 cat >> confdefs.h <<EOF
8030 #define $ac_tr_func 1
8033 else
8034 echo "$ac_t""no" 1>&6
8036 done
8039 esac
8042 case "$LIBS" in
8043 *-lsecurity*) for ac_func in bigcrypt
8045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8046 echo "configure:8047: checking for $ac_func" >&5
8047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8048 echo $ac_n "(cached) $ac_c" 1>&6
8049 else
8050 cat > conftest.$ac_ext <<EOF
8051 #line 8052 "configure"
8052 #include "confdefs.h"
8053 /* System header to define __stub macros and hopefully few prototypes,
8054 which can conflict with char $ac_func(); below. */
8055 #include <assert.h>
8056 /* Override any gcc2 internal prototype to avoid an error. */
8057 /* We use char because int might match the return type of a gcc2
8058 builtin and then its argument prototype would still apply. */
8059 char $ac_func();
8061 int main() {
8063 /* The GNU C library defines this for functions which it implements
8064 to always fail with ENOSYS. Some functions are actually named
8065 something starting with __ and the normal name is an alias. */
8066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8067 choke me
8068 #else
8069 $ac_func();
8070 #endif
8072 ; return 0; }
8074 if { (eval echo configure:8075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8075 rm -rf conftest*
8076 eval "ac_cv_func_$ac_func=yes"
8077 else
8078 echo "configure: failed program was:" >&5
8079 cat conftest.$ac_ext >&5
8080 rm -rf conftest*
8081 eval "ac_cv_func_$ac_func=no"
8083 rm -f conftest*
8086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8087 echo "$ac_t""yes" 1>&6
8088 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8089 cat >> confdefs.h <<EOF
8090 #define $ac_tr_func 1
8093 else
8094 echo "$ac_t""no" 1>&6
8096 done
8098 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8099 echo "configure:8100: checking for bigcrypt in -lsecurity" >&5
8100 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8101 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8102 echo $ac_n "(cached) $ac_c" 1>&6
8103 else
8104 ac_save_LIBS="$LIBS"
8105 LIBS="-lsecurity $LIBS"
8106 cat > conftest.$ac_ext <<EOF
8107 #line 8108 "configure"
8108 #include "confdefs.h"
8109 /* Override any gcc2 internal prototype to avoid an error. */
8110 /* We use char because int might match the return type of a gcc2
8111 builtin and then its argument prototype would still apply. */
8112 char bigcrypt();
8114 int main() {
8115 bigcrypt()
8116 ; return 0; }
8118 if { (eval echo configure:8119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8119 rm -rf conftest*
8120 eval "ac_cv_lib_$ac_lib_var=yes"
8121 else
8122 echo "configure: failed program was:" >&5
8123 cat conftest.$ac_ext >&5
8124 rm -rf conftest*
8125 eval "ac_cv_lib_$ac_lib_var=no"
8127 rm -f conftest*
8128 LIBS="$ac_save_LIBS"
8131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8132 echo "$ac_t""yes" 1>&6
8133 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8134 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8135 cat >> confdefs.h <<EOF
8136 #define $ac_tr_lib 1
8139 LIBS="-lsecurity $LIBS"
8141 else
8142 echo "$ac_t""no" 1>&6
8145 for ac_func in bigcrypt
8147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8148 echo "configure:8149: checking for $ac_func" >&5
8149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8150 echo $ac_n "(cached) $ac_c" 1>&6
8151 else
8152 cat > conftest.$ac_ext <<EOF
8153 #line 8154 "configure"
8154 #include "confdefs.h"
8155 /* System header to define __stub macros and hopefully few prototypes,
8156 which can conflict with char $ac_func(); below. */
8157 #include <assert.h>
8158 /* Override any gcc2 internal prototype to avoid an error. */
8159 /* We use char because int might match the return type of a gcc2
8160 builtin and then its argument prototype would still apply. */
8161 char $ac_func();
8163 int main() {
8165 /* The GNU C library defines this for functions which it implements
8166 to always fail with ENOSYS. Some functions are actually named
8167 something starting with __ and the normal name is an alias. */
8168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8169 choke me
8170 #else
8171 $ac_func();
8172 #endif
8174 ; return 0; }
8176 if { (eval echo configure:8177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8177 rm -rf conftest*
8178 eval "ac_cv_func_$ac_func=yes"
8179 else
8180 echo "configure: failed program was:" >&5
8181 cat conftest.$ac_ext >&5
8182 rm -rf conftest*
8183 eval "ac_cv_func_$ac_func=no"
8185 rm -f conftest*
8188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8189 echo "$ac_t""yes" 1>&6
8190 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8191 cat >> confdefs.h <<EOF
8192 #define $ac_tr_func 1
8195 else
8196 echo "$ac_t""no" 1>&6
8198 done
8201 esac
8203 case "$LIBS" in
8204 *-lsec*) for ac_func in bigcrypt
8206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8207 echo "configure:8208: checking for $ac_func" >&5
8208 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8209 echo $ac_n "(cached) $ac_c" 1>&6
8210 else
8211 cat > conftest.$ac_ext <<EOF
8212 #line 8213 "configure"
8213 #include "confdefs.h"
8214 /* System header to define __stub macros and hopefully few prototypes,
8215 which can conflict with char $ac_func(); below. */
8216 #include <assert.h>
8217 /* Override any gcc2 internal prototype to avoid an error. */
8218 /* We use char because int might match the return type of a gcc2
8219 builtin and then its argument prototype would still apply. */
8220 char $ac_func();
8222 int main() {
8224 /* The GNU C library defines this for functions which it implements
8225 to always fail with ENOSYS. Some functions are actually named
8226 something starting with __ and the normal name is an alias. */
8227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8228 choke me
8229 #else
8230 $ac_func();
8231 #endif
8233 ; return 0; }
8235 if { (eval echo configure:8236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8236 rm -rf conftest*
8237 eval "ac_cv_func_$ac_func=yes"
8238 else
8239 echo "configure: failed program was:" >&5
8240 cat conftest.$ac_ext >&5
8241 rm -rf conftest*
8242 eval "ac_cv_func_$ac_func=no"
8244 rm -f conftest*
8247 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8248 echo "$ac_t""yes" 1>&6
8249 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8250 cat >> confdefs.h <<EOF
8251 #define $ac_tr_func 1
8254 else
8255 echo "$ac_t""no" 1>&6
8257 done
8259 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8260 echo "configure:8261: checking for bigcrypt in -lsec" >&5
8261 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8262 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8263 echo $ac_n "(cached) $ac_c" 1>&6
8264 else
8265 ac_save_LIBS="$LIBS"
8266 LIBS="-lsec $LIBS"
8267 cat > conftest.$ac_ext <<EOF
8268 #line 8269 "configure"
8269 #include "confdefs.h"
8270 /* Override any gcc2 internal prototype to avoid an error. */
8271 /* We use char because int might match the return type of a gcc2
8272 builtin and then its argument prototype would still apply. */
8273 char bigcrypt();
8275 int main() {
8276 bigcrypt()
8277 ; return 0; }
8279 if { (eval echo configure:8280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8280 rm -rf conftest*
8281 eval "ac_cv_lib_$ac_lib_var=yes"
8282 else
8283 echo "configure: failed program was:" >&5
8284 cat conftest.$ac_ext >&5
8285 rm -rf conftest*
8286 eval "ac_cv_lib_$ac_lib_var=no"
8288 rm -f conftest*
8289 LIBS="$ac_save_LIBS"
8292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8293 echo "$ac_t""yes" 1>&6
8294 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8295 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8296 cat >> confdefs.h <<EOF
8297 #define $ac_tr_lib 1
8300 LIBS="-lsec $LIBS"
8302 else
8303 echo "$ac_t""no" 1>&6
8306 for ac_func in bigcrypt
8308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8309 echo "configure:8310: checking for $ac_func" >&5
8310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8311 echo $ac_n "(cached) $ac_c" 1>&6
8312 else
8313 cat > conftest.$ac_ext <<EOF
8314 #line 8315 "configure"
8315 #include "confdefs.h"
8316 /* System header to define __stub macros and hopefully few prototypes,
8317 which can conflict with char $ac_func(); below. */
8318 #include <assert.h>
8319 /* Override any gcc2 internal prototype to avoid an error. */
8320 /* We use char because int might match the return type of a gcc2
8321 builtin and then its argument prototype would still apply. */
8322 char $ac_func();
8324 int main() {
8326 /* The GNU C library defines this for functions which it implements
8327 to always fail with ENOSYS. Some functions are actually named
8328 something starting with __ and the normal name is an alias. */
8329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8330 choke me
8331 #else
8332 $ac_func();
8333 #endif
8335 ; return 0; }
8337 if { (eval echo configure:8338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8338 rm -rf conftest*
8339 eval "ac_cv_func_$ac_func=yes"
8340 else
8341 echo "configure: failed program was:" >&5
8342 cat conftest.$ac_ext >&5
8343 rm -rf conftest*
8344 eval "ac_cv_func_$ac_func=no"
8346 rm -f conftest*
8349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8350 echo "$ac_t""yes" 1>&6
8351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8352 cat >> confdefs.h <<EOF
8353 #define $ac_tr_func 1
8356 else
8357 echo "$ac_t""no" 1>&6
8359 done
8362 esac
8365 case "$LIBS" in
8366 *-lsecurity*) for ac_func in getprpwnam
8368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8369 echo "configure:8370: checking for $ac_func" >&5
8370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8371 echo $ac_n "(cached) $ac_c" 1>&6
8372 else
8373 cat > conftest.$ac_ext <<EOF
8374 #line 8375 "configure"
8375 #include "confdefs.h"
8376 /* System header to define __stub macros and hopefully few prototypes,
8377 which can conflict with char $ac_func(); below. */
8378 #include <assert.h>
8379 /* Override any gcc2 internal prototype to avoid an error. */
8380 /* We use char because int might match the return type of a gcc2
8381 builtin and then its argument prototype would still apply. */
8382 char $ac_func();
8384 int main() {
8386 /* The GNU C library defines this for functions which it implements
8387 to always fail with ENOSYS. Some functions are actually named
8388 something starting with __ and the normal name is an alias. */
8389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8390 choke me
8391 #else
8392 $ac_func();
8393 #endif
8395 ; return 0; }
8397 if { (eval echo configure:8398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8398 rm -rf conftest*
8399 eval "ac_cv_func_$ac_func=yes"
8400 else
8401 echo "configure: failed program was:" >&5
8402 cat conftest.$ac_ext >&5
8403 rm -rf conftest*
8404 eval "ac_cv_func_$ac_func=no"
8406 rm -f conftest*
8409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8410 echo "$ac_t""yes" 1>&6
8411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8412 cat >> confdefs.h <<EOF
8413 #define $ac_tr_func 1
8416 else
8417 echo "$ac_t""no" 1>&6
8419 done
8421 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8422 echo "configure:8423: checking for getprpwnam in -lsecurity" >&5
8423 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8425 echo $ac_n "(cached) $ac_c" 1>&6
8426 else
8427 ac_save_LIBS="$LIBS"
8428 LIBS="-lsecurity $LIBS"
8429 cat > conftest.$ac_ext <<EOF
8430 #line 8431 "configure"
8431 #include "confdefs.h"
8432 /* Override any gcc2 internal prototype to avoid an error. */
8433 /* We use char because int might match the return type of a gcc2
8434 builtin and then its argument prototype would still apply. */
8435 char getprpwnam();
8437 int main() {
8438 getprpwnam()
8439 ; return 0; }
8441 if { (eval echo configure:8442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8442 rm -rf conftest*
8443 eval "ac_cv_lib_$ac_lib_var=yes"
8444 else
8445 echo "configure: failed program was:" >&5
8446 cat conftest.$ac_ext >&5
8447 rm -rf conftest*
8448 eval "ac_cv_lib_$ac_lib_var=no"
8450 rm -f conftest*
8451 LIBS="$ac_save_LIBS"
8454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8455 echo "$ac_t""yes" 1>&6
8456 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8457 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8458 cat >> confdefs.h <<EOF
8459 #define $ac_tr_lib 1
8462 LIBS="-lsecurity $LIBS"
8464 else
8465 echo "$ac_t""no" 1>&6
8468 for ac_func in getprpwnam
8470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8471 echo "configure:8472: checking for $ac_func" >&5
8472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8473 echo $ac_n "(cached) $ac_c" 1>&6
8474 else
8475 cat > conftest.$ac_ext <<EOF
8476 #line 8477 "configure"
8477 #include "confdefs.h"
8478 /* System header to define __stub macros and hopefully few prototypes,
8479 which can conflict with char $ac_func(); below. */
8480 #include <assert.h>
8481 /* Override any gcc2 internal prototype to avoid an error. */
8482 /* We use char because int might match the return type of a gcc2
8483 builtin and then its argument prototype would still apply. */
8484 char $ac_func();
8486 int main() {
8488 /* The GNU C library defines this for functions which it implements
8489 to always fail with ENOSYS. Some functions are actually named
8490 something starting with __ and the normal name is an alias. */
8491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8492 choke me
8493 #else
8494 $ac_func();
8495 #endif
8497 ; return 0; }
8499 if { (eval echo configure:8500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8500 rm -rf conftest*
8501 eval "ac_cv_func_$ac_func=yes"
8502 else
8503 echo "configure: failed program was:" >&5
8504 cat conftest.$ac_ext >&5
8505 rm -rf conftest*
8506 eval "ac_cv_func_$ac_func=no"
8508 rm -f conftest*
8511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8512 echo "$ac_t""yes" 1>&6
8513 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8514 cat >> confdefs.h <<EOF
8515 #define $ac_tr_func 1
8518 else
8519 echo "$ac_t""no" 1>&6
8521 done
8524 esac
8526 case "$LIBS" in
8527 *-lsec*) for ac_func in getprpwnam
8529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8530 echo "configure:8531: checking for $ac_func" >&5
8531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8532 echo $ac_n "(cached) $ac_c" 1>&6
8533 else
8534 cat > conftest.$ac_ext <<EOF
8535 #line 8536 "configure"
8536 #include "confdefs.h"
8537 /* System header to define __stub macros and hopefully few prototypes,
8538 which can conflict with char $ac_func(); below. */
8539 #include <assert.h>
8540 /* Override any gcc2 internal prototype to avoid an error. */
8541 /* We use char because int might match the return type of a gcc2
8542 builtin and then its argument prototype would still apply. */
8543 char $ac_func();
8545 int main() {
8547 /* The GNU C library defines this for functions which it implements
8548 to always fail with ENOSYS. Some functions are actually named
8549 something starting with __ and the normal name is an alias. */
8550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8551 choke me
8552 #else
8553 $ac_func();
8554 #endif
8556 ; return 0; }
8558 if { (eval echo configure:8559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8559 rm -rf conftest*
8560 eval "ac_cv_func_$ac_func=yes"
8561 else
8562 echo "configure: failed program was:" >&5
8563 cat conftest.$ac_ext >&5
8564 rm -rf conftest*
8565 eval "ac_cv_func_$ac_func=no"
8567 rm -f conftest*
8570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8571 echo "$ac_t""yes" 1>&6
8572 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8573 cat >> confdefs.h <<EOF
8574 #define $ac_tr_func 1
8577 else
8578 echo "$ac_t""no" 1>&6
8580 done
8582 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8583 echo "configure:8584: checking for getprpwnam in -lsec" >&5
8584 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8586 echo $ac_n "(cached) $ac_c" 1>&6
8587 else
8588 ac_save_LIBS="$LIBS"
8589 LIBS="-lsec $LIBS"
8590 cat > conftest.$ac_ext <<EOF
8591 #line 8592 "configure"
8592 #include "confdefs.h"
8593 /* Override any gcc2 internal prototype to avoid an error. */
8594 /* We use char because int might match the return type of a gcc2
8595 builtin and then its argument prototype would still apply. */
8596 char getprpwnam();
8598 int main() {
8599 getprpwnam()
8600 ; return 0; }
8602 if { (eval echo configure:8603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8603 rm -rf conftest*
8604 eval "ac_cv_lib_$ac_lib_var=yes"
8605 else
8606 echo "configure: failed program was:" >&5
8607 cat conftest.$ac_ext >&5
8608 rm -rf conftest*
8609 eval "ac_cv_lib_$ac_lib_var=no"
8611 rm -f conftest*
8612 LIBS="$ac_save_LIBS"
8615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8616 echo "$ac_t""yes" 1>&6
8617 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8618 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8619 cat >> confdefs.h <<EOF
8620 #define $ac_tr_lib 1
8623 LIBS="-lsec $LIBS"
8625 else
8626 echo "$ac_t""no" 1>&6
8629 for ac_func in getprpwnam
8631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8632 echo "configure:8633: checking for $ac_func" >&5
8633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8634 echo $ac_n "(cached) $ac_c" 1>&6
8635 else
8636 cat > conftest.$ac_ext <<EOF
8637 #line 8638 "configure"
8638 #include "confdefs.h"
8639 /* System header to define __stub macros and hopefully few prototypes,
8640 which can conflict with char $ac_func(); below. */
8641 #include <assert.h>
8642 /* Override any gcc2 internal prototype to avoid an error. */
8643 /* We use char because int might match the return type of a gcc2
8644 builtin and then its argument prototype would still apply. */
8645 char $ac_func();
8647 int main() {
8649 /* The GNU C library defines this for functions which it implements
8650 to always fail with ENOSYS. Some functions are actually named
8651 something starting with __ and the normal name is an alias. */
8652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8653 choke me
8654 #else
8655 $ac_func();
8656 #endif
8658 ; return 0; }
8660 if { (eval echo configure:8661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8661 rm -rf conftest*
8662 eval "ac_cv_func_$ac_func=yes"
8663 else
8664 echo "configure: failed program was:" >&5
8665 cat conftest.$ac_ext >&5
8666 rm -rf conftest*
8667 eval "ac_cv_func_$ac_func=no"
8669 rm -f conftest*
8672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8673 echo "$ac_t""yes" 1>&6
8674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8675 cat >> confdefs.h <<EOF
8676 #define $ac_tr_func 1
8679 else
8680 echo "$ac_t""no" 1>&6
8682 done
8685 esac
8688 # this bit needs to be modified for each OS that is suported by
8689 # smbwrapper. You need to specify how to created a shared library and
8690 # how to compile C code to produce PIC object files
8692 # these are the defaults, good for lots of systems
8693 HOST_OS="$host_os"
8694 LDSHFLAGS="-shared"
8695 SONAMEFLAG="#"
8696 SHLD="\${CC}"
8697 PICFLAG=""
8698 PICSUFFIX="po.o"
8699 SHLIBEXT="so"
8700 # Assume non-shared by default and override below
8701 BLDSHARED="false"
8702 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8703 echo "configure:8704: checking ability to build shared libraries" >&5
8705 # and these are for particular systems
8706 case "$host_os" in
8707 *linux*) cat >> confdefs.h <<\EOF
8708 #define LINUX 1
8711 BLDSHARED="true"
8712 LDSHFLAGS="-shared"
8713 DYNEXP="-Wl,--export-dynamic"
8714 PICFLAG="-fPIC"
8715 SONAMEFLAG="-Wl,-soname="
8716 cat >> confdefs.h <<\EOF
8717 #define STAT_ST_BLOCKSIZE 512
8721 *solaris*) cat >> confdefs.h <<\EOF
8722 #define SUNOS5 1
8725 BLDSHARED="true"
8726 LDSHFLAGS="-G"
8727 SONAMEFLAG="-h "
8728 if test "${GCC}" = "yes"; then
8729 PICFLAG="-fPIC"
8730 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8731 DYNEXP="-Wl,-E"
8733 else
8734 PICFLAG="-KPIC"
8735 ## ${CFLAGS} added for building 64-bit shared
8736 ## libs using Sun's Compiler
8737 LDSHFLAGS="-G \${CFLAGS}"
8738 POBAD_CC=""
8739 PICSUFFIX="po.o"
8741 cat >> confdefs.h <<\EOF
8742 #define STAT_ST_BLOCKSIZE 512
8745 cat >> confdefs.h <<\EOF
8746 #define BROKEN_GETGRNAM 1
8750 *sunos*) cat >> confdefs.h <<\EOF
8751 #define SUNOS4 1
8754 BLDSHARED="true"
8755 LDSHFLAGS="-G"
8756 SONAMEFLAG="-Wl,-h,"
8757 PICFLAG="-KPIC" # Is this correct for SunOS
8758 cat >> confdefs.h <<\EOF
8759 #define STAT_ST_BLOCKSIZE 512
8762 cat >> confdefs.h <<\EOF
8763 #define BROKEN_GETGRNAM 1
8767 *freebsd*) BLDSHARED="true"
8768 LDSHFLAGS="-shared"
8769 DYNEXP="-Wl,--export-dynamic"
8770 SONAMEFLAG="-Wl,-soname,"
8771 PICFLAG="-fPIC -DPIC"
8772 cat >> confdefs.h <<\EOF
8773 #define STAT_ST_BLOCKSIZE 512
8776 cat >> confdefs.h <<\EOF
8777 #define BROKEN_GETGRNAM 1
8781 *openbsd*) BLDSHARED="true"
8782 LDSHFLAGS="-shared"
8783 DYNEXP="-Wl,-Bdynamic"
8784 SONAMEFLAG="-Wl,-soname,"
8785 PICFLAG="-fPIC"
8786 cat >> confdefs.h <<\EOF
8787 #define STAT_ST_BLOCKSIZE 512
8790 cat >> confdefs.h <<\EOF
8791 #define BROKEN_GETGRNAM 1
8795 *irix*) cat >> confdefs.h <<\EOF
8796 #define IRIX 1
8799 case "$host_os" in
8800 *irix6*) cat >> confdefs.h <<\EOF
8801 #define IRIX6 1
8805 esac
8806 ATTEMPT_WRAP32_BUILD=yes
8807 BLDSHARED="true"
8808 LDSHFLAGS="-set_version sgi1.0 -shared"
8809 SONAMEFLAG="-soname "
8810 SHLD="\${LD}"
8811 if test "${GCC}" = "yes"; then
8812 PICFLAG="-fPIC"
8813 else
8814 PICFLAG="-KPIC"
8816 cat >> confdefs.h <<\EOF
8817 #define STAT_ST_BLOCKSIZE 512
8821 *aix*) cat >> confdefs.h <<\EOF
8822 #define AIX 1
8825 BLDSHARED="true"
8826 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8827 DYNEXP="-Wl,-brtl,-bexpall"
8828 PICFLAG="-O2"
8829 if test "${GCC}" != "yes"; then
8830 ## for funky AIX compiler using strncpy()
8831 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
8834 cat >> confdefs.h <<\EOF
8835 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8839 *hpux*) cat >> confdefs.h <<\EOF
8840 #define HPUX 1
8843 SHLIBEXT="sl"
8844 # Use special PIC flags for the native HP-UX compiler.
8845 if test $ac_cv_prog_cc_Ae = yes; then
8846 BLDSHARED="true"
8847 SHLD="/usr/bin/ld"
8848 LDSHFLAGS="-B symbolic -b -z"
8849 SONAMEFLAG="+h "
8850 PICFLAG="+z"
8852 DYNEXP="-Wl,-E"
8853 cat >> confdefs.h <<\EOF
8854 #define STAT_ST_BLOCKSIZE 8192
8857 cat >> confdefs.h <<\EOF
8858 #define POSIX_ACL_NEEDS_MASK 1
8862 *qnx*) cat >> confdefs.h <<\EOF
8863 #define QNX 1
8866 cat >> confdefs.h <<\EOF
8867 #define STAT_ST_BLOCKSIZE 512
8871 *osf*) cat >> confdefs.h <<\EOF
8872 #define OSF1 1
8875 BLDSHARED="true"
8876 LDSHFLAGS="-shared"
8877 SONAMEFLAG="-Wl,-soname,"
8878 PICFLAG="-fPIC"
8879 cat >> confdefs.h <<\EOF
8880 #define STAT_ST_BLOCKSIZE 512
8883 cat >> confdefs.h <<\EOF
8884 #define BROKEN_GETGRNAM 1
8888 *sco*) cat >> confdefs.h <<\EOF
8889 #define SCO 1
8892 cat >> confdefs.h <<\EOF
8893 #define STAT_ST_BLOCKSIZE 512
8897 *unixware*) cat >> confdefs.h <<\EOF
8898 #define UNIXWARE 1
8901 BLDSHARED="true"
8902 LDSHFLAGS="-shared"
8903 SONAMEFLAG="-Wl,-soname,"
8904 PICFLAG="-KPIC"
8905 cat >> confdefs.h <<\EOF
8906 #define STAT_ST_BLOCKSIZE 512
8910 *next2*) cat >> confdefs.h <<\EOF
8911 #define NEXT2 1
8914 cat >> confdefs.h <<\EOF
8915 #define STAT_ST_BLOCKSIZE 512
8919 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8920 set dummy groff; ac_word=$2
8921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8922 echo "configure:8923: checking for $ac_word" >&5
8923 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8924 echo $ac_n "(cached) $ac_c" 1>&6
8925 else
8926 if test -n "$ROFF"; then
8927 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8928 else
8929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8930 ac_dummy="$PATH"
8931 for ac_dir in $ac_dummy; do
8932 test -z "$ac_dir" && ac_dir=.
8933 if test -f $ac_dir/$ac_word; then
8934 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8935 break
8937 done
8938 IFS="$ac_save_ifs"
8941 ROFF="$ac_cv_prog_ROFF"
8942 if test -n "$ROFF"; then
8943 echo "$ac_t""$ROFF" 1>&6
8944 else
8945 echo "$ac_t""no" 1>&6
8948 cat >> confdefs.h <<\EOF
8949 #define STAT_ST_BLOCKSIZE 512
8953 *sysv4*)
8954 case "$host" in
8955 *-univel-*) if test "$GCC" != yes ; then
8956 cat >> confdefs.h <<\EOF
8957 #define HAVE_MEMSET 1
8961 LDSHFLAGS="-G"
8962 DYNEXP="-Bexport"
8964 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8965 #define RELIANTUNIX 1
8968 esac
8969 cat >> confdefs.h <<\EOF
8970 #define STAT_ST_BLOCKSIZE 512
8974 *sysv5*)
8975 if test "$GCC" != yes ; then
8976 cat >> confdefs.h <<\EOF
8977 #define HAVE_MEMSET 1
8981 LDSHFLAGS="-G"
8982 cat >> confdefs.h <<\EOF
8983 #define STAT_ST_BLOCKSIZE 512
8987 *vos*) cat >> confdefs.h <<\EOF
8988 #define STAT_ST_BLOCKSIZE 4096
8991 BLDSHARED="false"
8992 LDSHFLAGS=""
8995 cat >> confdefs.h <<\EOF
8996 #define STAT_ST_BLOCKSIZE 512
9000 esac
9002 echo "$ac_t""$BLDSHARED" 1>&6
9003 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9004 echo "configure:9005: checking linker flags for shared libraries" >&5
9005 echo "$ac_t""$LDSHFLAGS" 1>&6
9006 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9007 echo "configure:9008: checking compiler flags for position-independent code" >&5
9008 echo "$ac_t""$PICFLAGS" 1>&6
9010 # try to work out how to produce pic code with this compiler
9011 if test x$PICFLAG = x; then
9012 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
9013 echo "configure:9014: checking whether ${CC-cc} accepts -fpic" >&5
9014 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
9015 echo $ac_n "(cached) $ac_c" 1>&6
9016 else
9017 echo 'void f(){}' > conftest.c
9018 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
9019 ac_cv_prog_cc_fpic=yes
9020 else
9021 ac_cv_prog_cc_fpic=no
9023 rm -f conftest*
9027 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
9028 if test $ac_cv_prog_cc_fpic = yes; then
9029 PICFLAG="-fpic";
9032 if test x$PICFLAG = x; then
9033 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
9034 echo "configure:9035: checking whether ${CC-cc} accepts -KPIC" >&5
9035 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
9036 echo $ac_n "(cached) $ac_c" 1>&6
9037 else
9038 echo 'void f(){}' > conftest.c
9039 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
9040 ac_cv_prog_cc_KPIC=yes
9041 else
9042 ac_cv_prog_cc_KPIC=no
9044 rm -f conftest*
9048 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
9049 if test $ac_cv_prog_cc_KPIC = yes; then
9050 PICFLAG="-KPIC";
9053 if test x$PICFLAG = x; then
9054 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
9055 echo "configure:9056: checking whether ${CC-cc} accepts -Kpic" >&5
9056 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
9057 echo $ac_n "(cached) $ac_c" 1>&6
9058 else
9059 echo 'void f(){}' > conftest.c
9060 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
9061 ac_cv_prog_cc_Kpic=yes
9062 else
9063 ac_cv_prog_cc_Kpic=no
9065 rm -f conftest*
9069 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
9070 if test $ac_cv_prog_cc_Kpic = yes; then
9071 PICFLAG="-Kpic";
9075 ################
9077 echo $ac_n "checking for long long""... $ac_c" 1>&6
9078 echo "configure:9079: checking for long long" >&5
9079 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9080 echo $ac_n "(cached) $ac_c" 1>&6
9081 else
9083 if test "$cross_compiling" = yes; then
9084 samba_cv_have_longlong=cross
9085 else
9086 cat > conftest.$ac_ext <<EOF
9087 #line 9088 "configure"
9088 #include "confdefs.h"
9089 #include <stdio.h>
9090 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9092 if { (eval echo configure:9093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9093 then
9094 samba_cv_have_longlong=yes
9095 else
9096 echo "configure: failed program was:" >&5
9097 cat conftest.$ac_ext >&5
9098 rm -fr conftest*
9099 samba_cv_have_longlong=no
9101 rm -fr conftest*
9106 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9107 if test x"$samba_cv_have_longlong" = x"yes"; then
9108 cat >> confdefs.h <<\EOF
9109 #define HAVE_LONGLONG 1
9115 # Check if the compiler supports the LL prefix on long long integers.
9116 # AIX needs this.
9118 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9119 echo "configure:9120: checking for LL suffix on long long integers" >&5
9120 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9121 echo $ac_n "(cached) $ac_c" 1>&6
9122 else
9124 cat > conftest.$ac_ext <<EOF
9125 #line 9126 "configure"
9126 #include "confdefs.h"
9127 #include <stdio.h>
9128 int main() {
9129 long long i = 0x8000000000LL
9130 ; return 0; }
9132 if { (eval echo configure:9133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9133 rm -rf conftest*
9134 samba_cv_compiler_supports_ll=yes
9135 else
9136 echo "configure: failed program was:" >&5
9137 cat conftest.$ac_ext >&5
9138 rm -rf conftest*
9139 samba_cv_compiler_supports_ll=no
9141 rm -f conftest*
9144 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9145 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9146 cat >> confdefs.h <<\EOF
9147 #define COMPILER_SUPPORTS_LL 1
9153 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9154 echo "configure:9155: checking for 64 bit off_t" >&5
9155 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9156 echo $ac_n "(cached) $ac_c" 1>&6
9157 else
9159 if test "$cross_compiling" = yes; then
9160 samba_cv_SIZEOF_OFF_T=cross
9161 else
9162 cat > conftest.$ac_ext <<EOF
9163 #line 9164 "configure"
9164 #include "confdefs.h"
9165 #include <stdio.h>
9166 #include <sys/stat.h>
9167 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9169 if { (eval echo configure:9170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9170 then
9171 samba_cv_SIZEOF_OFF_T=yes
9172 else
9173 echo "configure: failed program was:" >&5
9174 cat conftest.$ac_ext >&5
9175 rm -fr conftest*
9176 samba_cv_SIZEOF_OFF_T=no
9178 rm -fr conftest*
9183 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9184 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9185 cat >> confdefs.h <<\EOF
9186 #define SIZEOF_OFF_T 8
9191 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9192 echo "configure:9193: checking for off64_t" >&5
9193 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9194 echo $ac_n "(cached) $ac_c" 1>&6
9195 else
9197 if test "$cross_compiling" = yes; then
9198 samba_cv_HAVE_OFF64_T=cross
9199 else
9200 cat > conftest.$ac_ext <<EOF
9201 #line 9202 "configure"
9202 #include "confdefs.h"
9204 #if defined(HAVE_UNISTD_H)
9205 #include <unistd.h>
9206 #endif
9207 #include <stdio.h>
9208 #include <sys/stat.h>
9209 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9211 if { (eval echo configure:9212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9212 then
9213 samba_cv_HAVE_OFF64_T=yes
9214 else
9215 echo "configure: failed program was:" >&5
9216 cat conftest.$ac_ext >&5
9217 rm -fr conftest*
9218 samba_cv_HAVE_OFF64_T=no
9220 rm -fr conftest*
9225 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9226 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9227 cat >> confdefs.h <<\EOF
9228 #define HAVE_OFF64_T 1
9233 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9234 echo "configure:9235: checking for 64 bit ino_t" >&5
9235 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9236 echo $ac_n "(cached) $ac_c" 1>&6
9237 else
9239 if test "$cross_compiling" = yes; then
9240 samba_cv_SIZEOF_INO_T=cross
9241 else
9242 cat > conftest.$ac_ext <<EOF
9243 #line 9244 "configure"
9244 #include "confdefs.h"
9245 #include <stdio.h>
9246 #include <sys/stat.h>
9247 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9249 if { (eval echo configure:9250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9250 then
9251 samba_cv_SIZEOF_INO_T=yes
9252 else
9253 echo "configure: failed program was:" >&5
9254 cat conftest.$ac_ext >&5
9255 rm -fr conftest*
9256 samba_cv_SIZEOF_INO_T=no
9258 rm -fr conftest*
9263 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9264 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9265 cat >> confdefs.h <<\EOF
9266 #define SIZEOF_INO_T 8
9271 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9272 echo "configure:9273: checking for ino64_t" >&5
9273 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9274 echo $ac_n "(cached) $ac_c" 1>&6
9275 else
9277 if test "$cross_compiling" = yes; then
9278 samba_cv_HAVE_INO64_T=cross
9279 else
9280 cat > conftest.$ac_ext <<EOF
9281 #line 9282 "configure"
9282 #include "confdefs.h"
9284 #if defined(HAVE_UNISTD_H)
9285 #include <unistd.h>
9286 #endif
9287 #include <stdio.h>
9288 #include <sys/stat.h>
9289 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9291 if { (eval echo configure:9292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9292 then
9293 samba_cv_HAVE_INO64_T=yes
9294 else
9295 echo "configure: failed program was:" >&5
9296 cat conftest.$ac_ext >&5
9297 rm -fr conftest*
9298 samba_cv_HAVE_INO64_T=no
9300 rm -fr conftest*
9305 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9306 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9307 cat >> confdefs.h <<\EOF
9308 #define HAVE_INO64_T 1
9313 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9314 echo "configure:9315: checking for dev64_t" >&5
9315 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9316 echo $ac_n "(cached) $ac_c" 1>&6
9317 else
9319 if test "$cross_compiling" = yes; then
9320 samba_cv_HAVE_DEV64_T=cross
9321 else
9322 cat > conftest.$ac_ext <<EOF
9323 #line 9324 "configure"
9324 #include "confdefs.h"
9326 #if defined(HAVE_UNISTD_H)
9327 #include <unistd.h>
9328 #endif
9329 #include <stdio.h>
9330 #include <sys/stat.h>
9331 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9333 if { (eval echo configure:9334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9334 then
9335 samba_cv_HAVE_DEV64_T=yes
9336 else
9337 echo "configure: failed program was:" >&5
9338 cat conftest.$ac_ext >&5
9339 rm -fr conftest*
9340 samba_cv_HAVE_DEV64_T=no
9342 rm -fr conftest*
9347 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9348 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9349 cat >> confdefs.h <<\EOF
9350 #define HAVE_DEV64_T 1
9355 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9356 echo "configure:9357: checking for struct dirent64" >&5
9357 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9358 echo $ac_n "(cached) $ac_c" 1>&6
9359 else
9361 cat > conftest.$ac_ext <<EOF
9362 #line 9363 "configure"
9363 #include "confdefs.h"
9365 #if defined(HAVE_UNISTD_H)
9366 #include <unistd.h>
9367 #endif
9368 #include <sys/types.h>
9369 #include <dirent.h>
9370 int main() {
9371 struct dirent64 de;
9372 ; return 0; }
9374 if { (eval echo configure:9375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9375 rm -rf conftest*
9376 samba_cv_HAVE_STRUCT_DIRENT64=yes
9377 else
9378 echo "configure: failed program was:" >&5
9379 cat conftest.$ac_ext >&5
9380 rm -rf conftest*
9381 samba_cv_HAVE_STRUCT_DIRENT64=no
9383 rm -f conftest*
9386 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9387 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9388 cat >> confdefs.h <<\EOF
9389 #define HAVE_STRUCT_DIRENT64 1
9394 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9395 echo "configure:9396: checking for major macro" >&5
9396 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9397 echo $ac_n "(cached) $ac_c" 1>&6
9398 else
9400 if test "$cross_compiling" = yes; then
9401 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9402 else
9403 cat > conftest.$ac_ext <<EOF
9404 #line 9405 "configure"
9405 #include "confdefs.h"
9407 #if defined(HAVE_UNISTD_H)
9408 #include <unistd.h>
9409 #endif
9410 #include <sys/types.h>
9411 main() { dev_t dev; int i = major(dev); return 0; }
9413 if { (eval echo configure:9414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9414 then
9415 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9416 else
9417 echo "configure: failed program was:" >&5
9418 cat conftest.$ac_ext >&5
9419 rm -fr conftest*
9420 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9422 rm -fr conftest*
9427 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9428 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9429 cat >> confdefs.h <<\EOF
9430 #define HAVE_DEVICE_MAJOR_FN 1
9435 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9436 echo "configure:9437: checking for minor macro" >&5
9437 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9438 echo $ac_n "(cached) $ac_c" 1>&6
9439 else
9441 if test "$cross_compiling" = yes; then
9442 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9443 else
9444 cat > conftest.$ac_ext <<EOF
9445 #line 9446 "configure"
9446 #include "confdefs.h"
9448 #if defined(HAVE_UNISTD_H)
9449 #include <unistd.h>
9450 #endif
9451 #include <sys/types.h>
9452 main() { dev_t dev; int i = minor(dev); return 0; }
9454 if { (eval echo configure:9455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9455 then
9456 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9457 else
9458 echo "configure: failed program was:" >&5
9459 cat conftest.$ac_ext >&5
9460 rm -fr conftest*
9461 samba_cv_HAVE_DEVICE_MINOR_FN=no
9463 rm -fr conftest*
9468 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9469 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9470 cat >> confdefs.h <<\EOF
9471 #define HAVE_DEVICE_MINOR_FN 1
9476 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9477 echo "configure:9478: checking for makedev macro" >&5
9478 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9479 echo $ac_n "(cached) $ac_c" 1>&6
9480 else
9482 if test "$cross_compiling" = yes; then
9483 samba_cv_HAVE_MAKEDEV_FN=cross
9484 else
9485 cat > conftest.$ac_ext <<EOF
9486 #line 9487 "configure"
9487 #include "confdefs.h"
9489 #if defined(HAVE_UNISTD_H)
9490 #include <unistd.h>
9491 #endif
9492 #include <sys/types.h>
9493 main() { dev_t dev = makedev(1,2); return 0; }
9495 if { (eval echo configure:9496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9496 then
9497 samba_cv_HAVE_MAKEDEV_FN=yes
9498 else
9499 echo "configure: failed program was:" >&5
9500 cat conftest.$ac_ext >&5
9501 rm -fr conftest*
9502 samba_cv_HAVE_MAKEDEV_FN=no
9504 rm -fr conftest*
9509 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9510 if test x"$samba_cv_HAVE_MAKEDEV_FN" = x"yes"; then
9511 cat >> confdefs.h <<\EOF
9512 #define MAKEDEV_FN 1
9517 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9518 echo "configure:9519: checking for unsigned char" >&5
9519 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9520 echo $ac_n "(cached) $ac_c" 1>&6
9521 else
9523 if test "$cross_compiling" = yes; then
9524 samba_cv_HAVE_UNSIGNED_CHAR=cross
9525 else
9526 cat > conftest.$ac_ext <<EOF
9527 #line 9528 "configure"
9528 #include "confdefs.h"
9529 #include <stdio.h>
9530 main() { char c; c=250; exit((c > 0)?0:1); }
9532 if { (eval echo configure:9533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9533 then
9534 samba_cv_HAVE_UNSIGNED_CHAR=yes
9535 else
9536 echo "configure: failed program was:" >&5
9537 cat conftest.$ac_ext >&5
9538 rm -fr conftest*
9539 samba_cv_HAVE_UNSIGNED_CHAR=no
9541 rm -fr conftest*
9546 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9547 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9548 cat >> confdefs.h <<\EOF
9549 #define HAVE_UNSIGNED_CHAR 1
9554 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9555 echo "configure:9556: checking for sin_len in sock" >&5
9556 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9557 echo $ac_n "(cached) $ac_c" 1>&6
9558 else
9560 cat > conftest.$ac_ext <<EOF
9561 #line 9562 "configure"
9562 #include "confdefs.h"
9563 #include <sys/types.h>
9564 #include <sys/socket.h>
9565 #include <netinet/in.h>
9566 int main() {
9567 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9568 ; return 0; }
9570 if { (eval echo configure:9571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9571 rm -rf conftest*
9572 samba_cv_HAVE_SOCK_SIN_LEN=yes
9573 else
9574 echo "configure: failed program was:" >&5
9575 cat conftest.$ac_ext >&5
9576 rm -rf conftest*
9577 samba_cv_HAVE_SOCK_SIN_LEN=no
9579 rm -f conftest*
9582 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9583 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9584 cat >> confdefs.h <<\EOF
9585 #define HAVE_SOCK_SIN_LEN 1
9590 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9591 echo "configure:9592: checking whether seekdir returns void" >&5
9592 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9593 echo $ac_n "(cached) $ac_c" 1>&6
9594 else
9596 cat > conftest.$ac_ext <<EOF
9597 #line 9598 "configure"
9598 #include "confdefs.h"
9599 #include <sys/types.h>
9600 #include <dirent.h>
9601 void seekdir(DIR *d, long loc) { return; }
9602 int main() {
9603 return 0;
9604 ; return 0; }
9606 if { (eval echo configure:9607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9607 rm -rf conftest*
9608 samba_cv_SEEKDIR_RETURNS_VOID=yes
9609 else
9610 echo "configure: failed program was:" >&5
9611 cat conftest.$ac_ext >&5
9612 rm -rf conftest*
9613 samba_cv_SEEKDIR_RETURNS_VOID=no
9615 rm -f conftest*
9618 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9619 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9620 cat >> confdefs.h <<\EOF
9621 #define SEEKDIR_RETURNS_VOID 1
9626 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9627 echo "configure:9628: checking for __FILE__ macro" >&5
9628 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9629 echo $ac_n "(cached) $ac_c" 1>&6
9630 else
9632 cat > conftest.$ac_ext <<EOF
9633 #line 9634 "configure"
9634 #include "confdefs.h"
9635 #include <stdio.h>
9636 int main() {
9637 printf("%s\n", __FILE__);
9638 ; return 0; }
9640 if { (eval echo configure:9641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9641 rm -rf conftest*
9642 samba_cv_HAVE_FILE_MACRO=yes
9643 else
9644 echo "configure: failed program was:" >&5
9645 cat conftest.$ac_ext >&5
9646 rm -rf conftest*
9647 samba_cv_HAVE_FILE_MACRO=no
9649 rm -f conftest*
9652 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9653 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9654 cat >> confdefs.h <<\EOF
9655 #define HAVE_FILE_MACRO 1
9660 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9661 echo "configure:9662: checking for __FUNCTION__ macro" >&5
9662 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9663 echo $ac_n "(cached) $ac_c" 1>&6
9664 else
9666 cat > conftest.$ac_ext <<EOF
9667 #line 9668 "configure"
9668 #include "confdefs.h"
9669 #include <stdio.h>
9670 int main() {
9671 printf("%s\n", __FUNCTION__);
9672 ; return 0; }
9674 if { (eval echo configure:9675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9675 rm -rf conftest*
9676 samba_cv_HAVE_FUNCTION_MACRO=yes
9677 else
9678 echo "configure: failed program was:" >&5
9679 cat conftest.$ac_ext >&5
9680 rm -rf conftest*
9681 samba_cv_HAVE_FUNCTION_MACRO=no
9683 rm -f conftest*
9686 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9687 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9688 cat >> confdefs.h <<\EOF
9689 #define HAVE_FUNCTION_MACRO 1
9694 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9695 echo "configure:9696: checking if gettimeofday takes tz argument" >&5
9696 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9697 echo $ac_n "(cached) $ac_c" 1>&6
9698 else
9700 if test "$cross_compiling" = yes; then
9701 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9702 else
9703 cat > conftest.$ac_ext <<EOF
9704 #line 9705 "configure"
9705 #include "confdefs.h"
9707 #include <sys/time.h>
9708 #include <unistd.h>
9709 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9711 if { (eval echo configure:9712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9712 then
9713 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9714 else
9715 echo "configure: failed program was:" >&5
9716 cat conftest.$ac_ext >&5
9717 rm -fr conftest*
9718 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9720 rm -fr conftest*
9725 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9726 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9727 cat >> confdefs.h <<\EOF
9728 #define HAVE_GETTIMEOFDAY_TZ 1
9733 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9734 echo "configure:9735: checking for __va_copy" >&5
9735 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9736 echo $ac_n "(cached) $ac_c" 1>&6
9737 else
9739 cat > conftest.$ac_ext <<EOF
9740 #line 9741 "configure"
9741 #include "confdefs.h"
9742 #include <stdarg.h>
9743 va_list ap1,ap2;
9744 int main() {
9745 __va_copy(ap1,ap2);
9746 ; return 0; }
9748 if { (eval echo configure:9749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9749 rm -rf conftest*
9750 samba_cv_HAVE_VA_COPY=yes
9751 else
9752 echo "configure: failed program was:" >&5
9753 cat conftest.$ac_ext >&5
9754 rm -rf conftest*
9755 samba_cv_HAVE_VA_COPY=no
9757 rm -f conftest*
9760 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9761 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9762 cat >> confdefs.h <<\EOF
9763 #define HAVE_VA_COPY 1
9768 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9769 echo "configure:9770: checking for C99 vsnprintf" >&5
9770 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9771 echo $ac_n "(cached) $ac_c" 1>&6
9772 else
9774 if test "$cross_compiling" = yes; then
9775 samba_cv_HAVE_C99_VSNPRINTF=cross
9776 else
9777 cat > conftest.$ac_ext <<EOF
9778 #line 9779 "configure"
9779 #include "confdefs.h"
9781 #include <sys/types.h>
9782 #include <stdarg.h>
9783 void foo(const char *format, ...) {
9784 va_list ap;
9785 int len;
9786 char buf[5];
9788 va_start(ap, format);
9789 len = vsnprintf(buf, 0, format, ap);
9790 va_end(ap);
9791 if (len != 5) exit(1);
9793 va_start(ap, format);
9794 len = vsnprintf(0, 0, format, ap);
9795 va_end(ap);
9796 if (len != 5) exit(1);
9798 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9800 exit(0);
9802 main() { foo("hello"); }
9805 if { (eval echo configure:9806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9806 then
9807 samba_cv_HAVE_C99_VSNPRINTF=yes
9808 else
9809 echo "configure: failed program was:" >&5
9810 cat conftest.$ac_ext >&5
9811 rm -fr conftest*
9812 samba_cv_HAVE_C99_VSNPRINTF=no
9814 rm -fr conftest*
9819 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9820 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9821 cat >> confdefs.h <<\EOF
9822 #define HAVE_C99_VSNPRINTF 1
9827 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9828 echo "configure:9829: checking for broken readdir" >&5
9829 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9830 echo $ac_n "(cached) $ac_c" 1>&6
9831 else
9833 if test "$cross_compiling" = yes; then
9834 samba_cv_HAVE_BROKEN_READDIR=cross
9835 else
9836 cat > conftest.$ac_ext <<EOF
9837 #line 9838 "configure"
9838 #include "confdefs.h"
9839 #include <sys/types.h>
9840 #include <dirent.h>
9841 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9842 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9843 di->d_name[0] == 0) exit(0); exit(1);}
9845 if { (eval echo configure:9846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9846 then
9847 samba_cv_HAVE_BROKEN_READDIR=yes
9848 else
9849 echo "configure: failed program was:" >&5
9850 cat conftest.$ac_ext >&5
9851 rm -fr conftest*
9852 samba_cv_HAVE_BROKEN_READDIR=no
9854 rm -fr conftest*
9859 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9860 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9861 cat >> confdefs.h <<\EOF
9862 #define HAVE_BROKEN_READDIR 1
9867 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9868 echo "configure:9869: checking for utimbuf" >&5
9869 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9870 echo $ac_n "(cached) $ac_c" 1>&6
9871 else
9873 cat > conftest.$ac_ext <<EOF
9874 #line 9875 "configure"
9875 #include "confdefs.h"
9876 #include <sys/types.h>
9877 #include <utime.h>
9878 int main() {
9879 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9880 ; return 0; }
9882 if { (eval echo configure:9883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9883 rm -rf conftest*
9884 samba_cv_HAVE_UTIMBUF=yes
9885 else
9886 echo "configure: failed program was:" >&5
9887 cat conftest.$ac_ext >&5
9888 rm -rf conftest*
9889 samba_cv_HAVE_UTIMBUF=no
9891 rm -f conftest*
9894 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9895 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9896 cat >> confdefs.h <<\EOF
9897 #define HAVE_UTIMBUF 1
9903 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9906 echo "configure:9907: checking for $ac_func" >&5
9907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9908 echo $ac_n "(cached) $ac_c" 1>&6
9909 else
9910 cat > conftest.$ac_ext <<EOF
9911 #line 9912 "configure"
9912 #include "confdefs.h"
9913 /* System header to define __stub macros and hopefully few prototypes,
9914 which can conflict with char $ac_func(); below. */
9915 #include <assert.h>
9916 /* Override any gcc2 internal prototype to avoid an error. */
9917 /* We use char because int might match the return type of a gcc2
9918 builtin and then its argument prototype would still apply. */
9919 char $ac_func();
9921 int main() {
9923 /* The GNU C library defines this for functions which it implements
9924 to always fail with ENOSYS. Some functions are actually named
9925 something starting with __ and the normal name is an alias. */
9926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9927 choke me
9928 #else
9929 $ac_func();
9930 #endif
9932 ; return 0; }
9934 if { (eval echo configure:9935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9935 rm -rf conftest*
9936 eval "ac_cv_func_$ac_func=yes"
9937 else
9938 echo "configure: failed program was:" >&5
9939 cat conftest.$ac_ext >&5
9940 rm -rf conftest*
9941 eval "ac_cv_func_$ac_func=no"
9943 rm -f conftest*
9946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9947 echo "$ac_t""yes" 1>&6
9948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9949 cat >> confdefs.h <<EOF
9950 #define $ac_tr_func 1
9953 else
9954 echo "$ac_t""no" 1>&6
9956 done
9959 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9960 echo "configure:9961: checking for ut_name in utmp" >&5
9961 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9962 echo $ac_n "(cached) $ac_c" 1>&6
9963 else
9965 cat > conftest.$ac_ext <<EOF
9966 #line 9967 "configure"
9967 #include "confdefs.h"
9968 #include <sys/types.h>
9969 #include <utmp.h>
9970 int main() {
9971 struct utmp ut; ut.ut_name[0] = 'a';
9972 ; return 0; }
9974 if { (eval echo configure:9975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9975 rm -rf conftest*
9976 samba_cv_HAVE_UT_UT_NAME=yes
9977 else
9978 echo "configure: failed program was:" >&5
9979 cat conftest.$ac_ext >&5
9980 rm -rf conftest*
9981 samba_cv_HAVE_UT_UT_NAME=no
9983 rm -f conftest*
9986 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9987 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9988 cat >> confdefs.h <<\EOF
9989 #define HAVE_UT_UT_NAME 1
9994 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9995 echo "configure:9996: checking for ut_user in utmp" >&5
9996 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9997 echo $ac_n "(cached) $ac_c" 1>&6
9998 else
10000 cat > conftest.$ac_ext <<EOF
10001 #line 10002 "configure"
10002 #include "confdefs.h"
10003 #include <sys/types.h>
10004 #include <utmp.h>
10005 int main() {
10006 struct utmp ut; ut.ut_user[0] = 'a';
10007 ; return 0; }
10009 if { (eval echo configure:10010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10010 rm -rf conftest*
10011 samba_cv_HAVE_UT_UT_USER=yes
10012 else
10013 echo "configure: failed program was:" >&5
10014 cat conftest.$ac_ext >&5
10015 rm -rf conftest*
10016 samba_cv_HAVE_UT_UT_USER=no
10018 rm -f conftest*
10021 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
10022 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
10023 cat >> confdefs.h <<\EOF
10024 #define HAVE_UT_UT_USER 1
10029 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10030 echo "configure:10031: checking for ut_id in utmp" >&5
10031 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10032 echo $ac_n "(cached) $ac_c" 1>&6
10033 else
10035 cat > conftest.$ac_ext <<EOF
10036 #line 10037 "configure"
10037 #include "confdefs.h"
10038 #include <sys/types.h>
10039 #include <utmp.h>
10040 int main() {
10041 struct utmp ut; ut.ut_id[0] = 'a';
10042 ; return 0; }
10044 if { (eval echo configure:10045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10045 rm -rf conftest*
10046 samba_cv_HAVE_UT_UT_ID=yes
10047 else
10048 echo "configure: failed program was:" >&5
10049 cat conftest.$ac_ext >&5
10050 rm -rf conftest*
10051 samba_cv_HAVE_UT_UT_ID=no
10053 rm -f conftest*
10056 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10057 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
10058 cat >> confdefs.h <<\EOF
10059 #define HAVE_UT_UT_ID 1
10064 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10065 echo "configure:10066: checking for ut_host in utmp" >&5
10066 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10067 echo $ac_n "(cached) $ac_c" 1>&6
10068 else
10070 cat > conftest.$ac_ext <<EOF
10071 #line 10072 "configure"
10072 #include "confdefs.h"
10073 #include <sys/types.h>
10074 #include <utmp.h>
10075 int main() {
10076 struct utmp ut; ut.ut_host[0] = 'a';
10077 ; return 0; }
10079 if { (eval echo configure:10080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10080 rm -rf conftest*
10081 samba_cv_HAVE_UT_UT_HOST=yes
10082 else
10083 echo "configure: failed program was:" >&5
10084 cat conftest.$ac_ext >&5
10085 rm -rf conftest*
10086 samba_cv_HAVE_UT_UT_HOST=no
10088 rm -f conftest*
10091 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10092 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
10093 cat >> confdefs.h <<\EOF
10094 #define HAVE_UT_UT_HOST 1
10099 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10100 echo "configure:10101: checking for ut_time in utmp" >&5
10101 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10102 echo $ac_n "(cached) $ac_c" 1>&6
10103 else
10105 cat > conftest.$ac_ext <<EOF
10106 #line 10107 "configure"
10107 #include "confdefs.h"
10108 #include <sys/types.h>
10109 #include <utmp.h>
10110 int main() {
10111 struct utmp ut; time_t t; ut.ut_time = t;
10112 ; return 0; }
10114 if { (eval echo configure:10115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10115 rm -rf conftest*
10116 samba_cv_HAVE_UT_UT_TIME=yes
10117 else
10118 echo "configure: failed program was:" >&5
10119 cat conftest.$ac_ext >&5
10120 rm -rf conftest*
10121 samba_cv_HAVE_UT_UT_TIME=no
10123 rm -f conftest*
10126 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10127 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10128 cat >> confdefs.h <<\EOF
10129 #define HAVE_UT_UT_TIME 1
10134 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10135 echo "configure:10136: checking for ut_tv in utmp" >&5
10136 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10137 echo $ac_n "(cached) $ac_c" 1>&6
10138 else
10140 cat > conftest.$ac_ext <<EOF
10141 #line 10142 "configure"
10142 #include "confdefs.h"
10143 #include <sys/types.h>
10144 #include <utmp.h>
10145 int main() {
10146 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10147 ; return 0; }
10149 if { (eval echo configure:10150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10150 rm -rf conftest*
10151 samba_cv_HAVE_UT_UT_TV=yes
10152 else
10153 echo "configure: failed program was:" >&5
10154 cat conftest.$ac_ext >&5
10155 rm -rf conftest*
10156 samba_cv_HAVE_UT_UT_TV=no
10158 rm -f conftest*
10161 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10162 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10163 cat >> confdefs.h <<\EOF
10164 #define HAVE_UT_UT_TV 1
10169 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10170 echo "configure:10171: checking for ut_type in utmp" >&5
10171 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10172 echo $ac_n "(cached) $ac_c" 1>&6
10173 else
10175 cat > conftest.$ac_ext <<EOF
10176 #line 10177 "configure"
10177 #include "confdefs.h"
10178 #include <sys/types.h>
10179 #include <utmp.h>
10180 int main() {
10181 struct utmp ut; ut.ut_type = 0;
10182 ; return 0; }
10184 if { (eval echo configure:10185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10185 rm -rf conftest*
10186 samba_cv_HAVE_UT_UT_TYPE=yes
10187 else
10188 echo "configure: failed program was:" >&5
10189 cat conftest.$ac_ext >&5
10190 rm -rf conftest*
10191 samba_cv_HAVE_UT_UT_TYPE=no
10193 rm -f conftest*
10196 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10197 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10198 cat >> confdefs.h <<\EOF
10199 #define HAVE_UT_UT_TYPE 1
10204 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10205 echo "configure:10206: checking for ut_pid in utmp" >&5
10206 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10207 echo $ac_n "(cached) $ac_c" 1>&6
10208 else
10210 cat > conftest.$ac_ext <<EOF
10211 #line 10212 "configure"
10212 #include "confdefs.h"
10213 #include <sys/types.h>
10214 #include <utmp.h>
10215 int main() {
10216 struct utmp ut; ut.ut_pid = 0;
10217 ; return 0; }
10219 if { (eval echo configure:10220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10220 rm -rf conftest*
10221 samba_cv_HAVE_UT_UT_PID=yes
10222 else
10223 echo "configure: failed program was:" >&5
10224 cat conftest.$ac_ext >&5
10225 rm -rf conftest*
10226 samba_cv_HAVE_UT_UT_PID=no
10228 rm -f conftest*
10231 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10232 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10233 cat >> confdefs.h <<\EOF
10234 #define HAVE_UT_UT_PID 1
10239 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10240 echo "configure:10241: checking for ut_exit in utmp" >&5
10241 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10242 echo $ac_n "(cached) $ac_c" 1>&6
10243 else
10245 cat > conftest.$ac_ext <<EOF
10246 #line 10247 "configure"
10247 #include "confdefs.h"
10248 #include <sys/types.h>
10249 #include <utmp.h>
10250 int main() {
10251 struct utmp ut; ut.ut_exit.e_exit = 0;
10252 ; return 0; }
10254 if { (eval echo configure:10255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10255 rm -rf conftest*
10256 samba_cv_HAVE_UT_UT_EXIT=yes
10257 else
10258 echo "configure: failed program was:" >&5
10259 cat conftest.$ac_ext >&5
10260 rm -rf conftest*
10261 samba_cv_HAVE_UT_UT_EXIT=no
10263 rm -f conftest*
10266 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10267 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10268 cat >> confdefs.h <<\EOF
10269 #define HAVE_UT_UT_EXIT 1
10274 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10275 echo "configure:10276: checking for ut_addr in utmp" >&5
10276 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10277 echo $ac_n "(cached) $ac_c" 1>&6
10278 else
10280 cat > conftest.$ac_ext <<EOF
10281 #line 10282 "configure"
10282 #include "confdefs.h"
10283 #include <sys/types.h>
10284 #include <utmp.h>
10285 int main() {
10286 struct utmp ut; ut.ut_addr = 0;
10287 ; return 0; }
10289 if { (eval echo configure:10290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10290 rm -rf conftest*
10291 samba_cv_HAVE_UT_UT_ADDR=yes
10292 else
10293 echo "configure: failed program was:" >&5
10294 cat conftest.$ac_ext >&5
10295 rm -rf conftest*
10296 samba_cv_HAVE_UT_UT_ADDR=no
10298 rm -f conftest*
10301 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10302 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10303 cat >> confdefs.h <<\EOF
10304 #define HAVE_UT_UT_ADDR 1
10309 if test x$ac_cv_func_pututline = xyes ; then
10310 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10311 echo "configure:10312: checking whether pututline returns pointer" >&5
10312 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10313 echo $ac_n "(cached) $ac_c" 1>&6
10314 else
10316 cat > conftest.$ac_ext <<EOF
10317 #line 10318 "configure"
10318 #include "confdefs.h"
10319 #include <sys/types.h>
10320 #include <utmp.h>
10321 int main() {
10322 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10323 ; return 0; }
10325 if { (eval echo configure:10326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10326 rm -rf conftest*
10327 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10328 else
10329 echo "configure: failed program was:" >&5
10330 cat conftest.$ac_ext >&5
10331 rm -rf conftest*
10332 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10334 rm -f conftest*
10337 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10338 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10339 cat >> confdefs.h <<\EOF
10340 #define PUTUTLINE_RETURNS_UTMP 1
10346 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10347 echo "configure:10348: checking for ut_syslen in utmpx" >&5
10348 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10349 echo $ac_n "(cached) $ac_c" 1>&6
10350 else
10352 cat > conftest.$ac_ext <<EOF
10353 #line 10354 "configure"
10354 #include "confdefs.h"
10355 #include <sys/types.h>
10356 #include <utmpx.h>
10357 int main() {
10358 struct utmpx ux; ux.ut_syslen = 0;
10359 ; return 0; }
10361 if { (eval echo configure:10362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10362 rm -rf conftest*
10363 samba_cv_HAVE_UX_UT_SYSLEN=yes
10364 else
10365 echo "configure: failed program was:" >&5
10366 cat conftest.$ac_ext >&5
10367 rm -rf conftest*
10368 samba_cv_HAVE_UX_UT_SYSLEN=no
10370 rm -f conftest*
10373 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10374 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10375 cat >> confdefs.h <<\EOF
10376 #define HAVE_UX_UT_SYSLEN 1
10381 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10382 echo "configure:10383: checking for Linux kernel oplocks" >&5
10383 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10384 echo $ac_n "(cached) $ac_c" 1>&6
10385 else
10387 if test "$cross_compiling" = yes; then
10388 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10389 else
10390 cat > conftest.$ac_ext <<EOF
10391 #line 10392 "configure"
10392 #include "confdefs.h"
10394 #include <sys/types.h>
10395 #include <fcntl.h>
10396 #ifndef F_GETLEASE
10397 #define F_GETLEASE 1025
10398 #endif
10399 main() {
10400 int fd = open("/dev/null", O_RDONLY);
10401 return fcntl(fd, F_GETLEASE, 0) == -1;
10405 if { (eval echo configure:10406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10406 then
10407 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10408 else
10409 echo "configure: failed program was:" >&5
10410 cat conftest.$ac_ext >&5
10411 rm -fr conftest*
10412 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10414 rm -fr conftest*
10419 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10420 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10421 cat >> confdefs.h <<\EOF
10422 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10427 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10428 echo "configure:10429: checking for kernel change notify support" >&5
10429 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10430 echo $ac_n "(cached) $ac_c" 1>&6
10431 else
10433 if test "$cross_compiling" = yes; then
10434 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10435 else
10436 cat > conftest.$ac_ext <<EOF
10437 #line 10438 "configure"
10438 #include "confdefs.h"
10440 #include <sys/types.h>
10441 #include <fcntl.h>
10442 #include <signal.h>
10443 #ifndef F_NOTIFY
10444 #define F_NOTIFY 1026
10445 #endif
10446 main() {
10447 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10451 if { (eval echo configure:10452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10452 then
10453 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10454 else
10455 echo "configure: failed program was:" >&5
10456 cat conftest.$ac_ext >&5
10457 rm -fr conftest*
10458 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10460 rm -fr conftest*
10465 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10466 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes" && test x"$target_cpu" != x"s390"; then
10467 cat >> confdefs.h <<\EOF
10468 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10473 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10474 echo "configure:10475: checking for kernel share modes" >&5
10475 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10476 echo $ac_n "(cached) $ac_c" 1>&6
10477 else
10479 if test "$cross_compiling" = yes; then
10480 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10481 else
10482 cat > conftest.$ac_ext <<EOF
10483 #line 10484 "configure"
10484 #include "confdefs.h"
10486 #include <sys/types.h>
10487 #include <fcntl.h>
10488 #include <signal.h>
10489 #include <sys/file.h>
10490 #ifndef LOCK_MAND
10491 #define LOCK_MAND 32
10492 #define LOCK_READ 64
10493 #endif
10494 main() {
10495 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10499 if { (eval echo configure:10500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10500 then
10501 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10502 else
10503 echo "configure: failed program was:" >&5
10504 cat conftest.$ac_ext >&5
10505 rm -fr conftest*
10506 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10508 rm -fr conftest*
10513 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10514 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10515 cat >> confdefs.h <<\EOF
10516 #define HAVE_KERNEL_SHARE_MODES 1
10524 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10525 echo "configure:10526: checking for IRIX kernel oplock type definitions" >&5
10526 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10527 echo $ac_n "(cached) $ac_c" 1>&6
10528 else
10530 cat > conftest.$ac_ext <<EOF
10531 #line 10532 "configure"
10532 #include "confdefs.h"
10533 #include <sys/types.h>
10534 #include <fcntl.h>
10535 int main() {
10536 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10537 ; return 0; }
10539 if { (eval echo configure:10540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10540 rm -rf conftest*
10541 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10542 else
10543 echo "configure: failed program was:" >&5
10544 cat conftest.$ac_ext >&5
10545 rm -rf conftest*
10546 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10548 rm -f conftest*
10551 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10552 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10553 cat >> confdefs.h <<\EOF
10554 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10559 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10560 echo "configure:10561: checking for irix specific capabilities" >&5
10561 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10562 echo $ac_n "(cached) $ac_c" 1>&6
10563 else
10565 if test "$cross_compiling" = yes; then
10566 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10567 else
10568 cat > conftest.$ac_ext <<EOF
10569 #line 10570 "configure"
10570 #include "confdefs.h"
10571 #include <sys/types.h>
10572 #include <sys/capability.h>
10573 main() {
10574 cap_t cap;
10575 if ((cap = cap_get_proc()) == NULL)
10576 exit(1);
10577 cap->cap_effective |= CAP_NETWORK_MGT;
10578 cap->cap_inheritable |= CAP_NETWORK_MGT;
10579 cap_set_proc(cap);
10580 exit(0);
10584 if { (eval echo configure:10585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10585 then
10586 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10587 else
10588 echo "configure: failed program was:" >&5
10589 cat conftest.$ac_ext >&5
10590 rm -fr conftest*
10591 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10593 rm -fr conftest*
10598 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10599 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10600 cat >> confdefs.h <<\EOF
10601 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10607 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10608 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10611 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10612 echo "configure:10613: checking for int16 typedef included by rpc/rpc.h" >&5
10613 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10614 echo $ac_n "(cached) $ac_c" 1>&6
10615 else
10617 cat > conftest.$ac_ext <<EOF
10618 #line 10619 "configure"
10619 #include "confdefs.h"
10620 #include <sys/types.h>
10621 #if defined(HAVE_RPC_RPC_H)
10622 #include <rpc/rpc.h>
10623 #endif
10624 int main() {
10625 int16 testvar;
10626 ; return 0; }
10628 if { (eval echo configure:10629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10629 rm -rf conftest*
10630 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10631 else
10632 echo "configure: failed program was:" >&5
10633 cat conftest.$ac_ext >&5
10634 rm -rf conftest*
10635 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10637 rm -f conftest*
10640 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10641 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10642 cat >> confdefs.h <<\EOF
10643 #define HAVE_INT16_FROM_RPC_RPC_H 1
10648 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10649 echo "configure:10650: checking for uint16 typedef included by rpc/rpc.h" >&5
10650 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10651 echo $ac_n "(cached) $ac_c" 1>&6
10652 else
10654 cat > conftest.$ac_ext <<EOF
10655 #line 10656 "configure"
10656 #include "confdefs.h"
10657 #include <sys/types.h>
10658 #if defined(HAVE_RPC_RPC_H)
10659 #include <rpc/rpc.h>
10660 #endif
10661 int main() {
10662 uint16 testvar;
10663 ; return 0; }
10665 if { (eval echo configure:10666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10666 rm -rf conftest*
10667 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10668 else
10669 echo "configure: failed program was:" >&5
10670 cat conftest.$ac_ext >&5
10671 rm -rf conftest*
10672 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10674 rm -f conftest*
10677 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10678 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10679 cat >> confdefs.h <<\EOF
10680 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10685 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10686 echo "configure:10687: checking for int32 typedef included by rpc/rpc.h" >&5
10687 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10688 echo $ac_n "(cached) $ac_c" 1>&6
10689 else
10691 cat > conftest.$ac_ext <<EOF
10692 #line 10693 "configure"
10693 #include "confdefs.h"
10694 #include <sys/types.h>
10695 #if defined(HAVE_RPC_RPC_H)
10696 #include <rpc/rpc.h>
10697 #endif
10698 int main() {
10699 int32 testvar;
10700 ; return 0; }
10702 if { (eval echo configure:10703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10703 rm -rf conftest*
10704 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10705 else
10706 echo "configure: failed program was:" >&5
10707 cat conftest.$ac_ext >&5
10708 rm -rf conftest*
10709 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10711 rm -f conftest*
10714 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10715 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10716 cat >> confdefs.h <<\EOF
10717 #define HAVE_INT32_FROM_RPC_RPC_H 1
10722 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10723 echo "configure:10724: checking for uint32 typedef included by rpc/rpc.h" >&5
10724 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10725 echo $ac_n "(cached) $ac_c" 1>&6
10726 else
10728 cat > conftest.$ac_ext <<EOF
10729 #line 10730 "configure"
10730 #include "confdefs.h"
10731 #include <sys/types.h>
10732 #if defined(HAVE_RPC_RPC_H)
10733 #include <rpc/rpc.h>
10734 #endif
10735 int main() {
10736 uint32 testvar;
10737 ; return 0; }
10739 if { (eval echo configure:10740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10740 rm -rf conftest*
10741 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10742 else
10743 echo "configure: failed program was:" >&5
10744 cat conftest.$ac_ext >&5
10745 rm -rf conftest*
10746 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10748 rm -f conftest*
10751 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10752 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10753 cat >> confdefs.h <<\EOF
10754 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10760 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10761 echo "configure:10762: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10762 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10763 echo $ac_n "(cached) $ac_c" 1>&6
10764 else
10766 cat > conftest.$ac_ext <<EOF
10767 #line 10768 "configure"
10768 #include "confdefs.h"
10769 #include <sys/types.h>
10770 #ifdef HAVE_SYS_SECURITY_H
10771 #include <sys/security.h>
10772 #include <prot.h>
10773 #endif /* HAVE_SYS_SECURITY_H */
10774 #if defined(HAVE_RPC_RPC_H)
10775 #include <rpc/rpc.h>
10776 #endif
10777 int main() {
10778 int testvar;
10779 ; return 0; }
10781 if { (eval echo configure:10782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10782 rm -rf conftest*
10783 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10784 else
10785 echo "configure: failed program was:" >&5
10786 cat conftest.$ac_ext >&5
10787 rm -rf conftest*
10788 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10790 rm -f conftest*
10793 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10794 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10795 cat >> confdefs.h <<\EOF
10796 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10801 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10802 echo "configure:10803: checking for test routines" >&5
10803 if test "$cross_compiling" = yes; then
10804 echo "configure: warning: cannot run when cross-compiling" 1>&2
10805 else
10806 cat > conftest.$ac_ext <<EOF
10807 #line 10808 "configure"
10808 #include "confdefs.h"
10809 #include "${srcdir-.}/tests/trivial.c"
10811 if { (eval echo configure:10812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10812 then
10813 echo "$ac_t""yes" 1>&6
10814 else
10815 echo "configure: failed program was:" >&5
10816 cat conftest.$ac_ext >&5
10817 rm -fr conftest*
10818 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10820 rm -fr conftest*
10824 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10825 echo "configure:10826: checking for ftruncate extend" >&5
10826 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10827 echo $ac_n "(cached) $ac_c" 1>&6
10828 else
10830 if test "$cross_compiling" = yes; then
10831 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10832 else
10833 cat > conftest.$ac_ext <<EOF
10834 #line 10835 "configure"
10835 #include "confdefs.h"
10836 #include "${srcdir-.}/tests/ftruncate.c"
10838 if { (eval echo configure:10839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10839 then
10840 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10841 else
10842 echo "configure: failed program was:" >&5
10843 cat conftest.$ac_ext >&5
10844 rm -fr conftest*
10845 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10847 rm -fr conftest*
10852 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10853 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10854 cat >> confdefs.h <<\EOF
10855 #define HAVE_FTRUNCATE_EXTEND 1
10860 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10861 echo "configure:10862: checking for broken getgroups" >&5
10862 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10863 echo $ac_n "(cached) $ac_c" 1>&6
10864 else
10866 if test "$cross_compiling" = yes; then
10867 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10868 else
10869 cat > conftest.$ac_ext <<EOF
10870 #line 10871 "configure"
10871 #include "confdefs.h"
10872 #include "${srcdir-.}/tests/getgroups.c"
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_BROKEN_GETGROUPS=yes
10877 else
10878 echo "configure: failed program was:" >&5
10879 cat conftest.$ac_ext >&5
10880 rm -fr conftest*
10881 samba_cv_HAVE_BROKEN_GETGROUPS=no
10883 rm -fr conftest*
10888 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10889 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10890 cat >> confdefs.h <<\EOF
10891 #define HAVE_BROKEN_GETGROUPS 1
10896 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10897 echo "configure:10898: checking whether getpass should be replaced" >&5
10898 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10899 echo $ac_n "(cached) $ac_c" 1>&6
10900 else
10902 SAVE_CPPFLAGS="$CPPFLAGS"
10903 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
10904 cat > conftest.$ac_ext <<EOF
10905 #line 10906 "configure"
10906 #include "confdefs.h"
10908 #define REPLACE_GETPASS 1
10909 #define NO_CONFIG_H 1
10910 #define main dont_declare_main
10911 #include "${srcdir-.}/lib/getsmbpass.c"
10912 #undef main
10914 int main() {
10916 ; return 0; }
10918 if { (eval echo configure:10919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10919 rm -rf conftest*
10920 samba_cv_REPLACE_GETPASS=yes
10921 else
10922 echo "configure: failed program was:" >&5
10923 cat conftest.$ac_ext >&5
10924 rm -rf conftest*
10925 samba_cv_REPLACE_GETPASS=no
10927 rm -f conftest*
10928 CPPFLAGS="$SAVE_CPPFLAGS"
10932 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10933 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10934 cat >> confdefs.h <<\EOF
10935 #define REPLACE_GETPASS 1
10940 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10941 echo "configure:10942: checking for broken inet_ntoa" >&5
10942 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10943 echo $ac_n "(cached) $ac_c" 1>&6
10944 else
10946 if test "$cross_compiling" = yes; then
10947 samba_cv_REPLACE_INET_NTOA=cross
10948 else
10949 cat > conftest.$ac_ext <<EOF
10950 #line 10951 "configure"
10951 #include "confdefs.h"
10953 #include <stdio.h>
10954 #include <sys/types.h>
10955 #include <netinet/in.h>
10956 #ifdef HAVE_ARPA_INET_H
10957 #include <arpa/inet.h>
10958 #endif
10959 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10960 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10961 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10962 exit(1);}
10964 if { (eval echo configure:10965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10965 then
10966 samba_cv_REPLACE_INET_NTOA=yes
10967 else
10968 echo "configure: failed program was:" >&5
10969 cat conftest.$ac_ext >&5
10970 rm -fr conftest*
10971 samba_cv_REPLACE_INET_NTOA=no
10973 rm -fr conftest*
10978 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10979 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10980 cat >> confdefs.h <<\EOF
10981 #define REPLACE_INET_NTOA 1
10986 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10987 echo "configure:10988: checking for secure mkstemp" >&5
10988 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10989 echo $ac_n "(cached) $ac_c" 1>&6
10990 else
10992 if test "$cross_compiling" = yes; then
10993 samba_cv_HAVE_SECURE_MKSTEMP=cross
10994 else
10995 cat > conftest.$ac_ext <<EOF
10996 #line 10997 "configure"
10997 #include "confdefs.h"
10998 #include <stdlib.h>
10999 #include <sys/types.h>
11000 #include <sys/stat.h>
11001 #include <unistd.h>
11002 main() {
11003 struct stat st;
11004 char tpl[20]="/tmp/test.XXXXXX";
11005 int fd = mkstemp(tpl);
11006 if (fd == -1) exit(1);
11007 unlink(tpl);
11008 if (fstat(fd, &st) != 0) exit(1);
11009 if ((st.st_mode & 0777) != 0600) exit(1);
11010 exit(0);
11013 if { (eval echo configure:11014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11014 then
11015 samba_cv_HAVE_SECURE_MKSTEMP=yes
11016 else
11017 echo "configure: failed program was:" >&5
11018 cat conftest.$ac_ext >&5
11019 rm -fr conftest*
11020 samba_cv_HAVE_SECURE_MKSTEMP=no
11022 rm -fr conftest*
11027 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11028 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
11029 cat >> confdefs.h <<\EOF
11030 #define HAVE_SECURE_MKSTEMP 1
11035 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11036 echo "configure:11037: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11037 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11038 echo $ac_n "(cached) $ac_c" 1>&6
11039 else
11041 if test "$cross_compiling" = yes; then
11042 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
11043 else
11044 cat > conftest.$ac_ext <<EOF
11045 #line 11046 "configure"
11046 #include "confdefs.h"
11047 #include <unistd.h>
11048 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11050 if { (eval echo configure:11051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11051 then
11052 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
11053 else
11054 echo "configure: failed program was:" >&5
11055 cat conftest.$ac_ext >&5
11056 rm -fr conftest*
11057 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
11059 rm -fr conftest*
11064 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11065 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
11066 cat >> confdefs.h <<\EOF
11067 #define SYSCONF_SC_NGROUPS_MAX 1
11072 echo $ac_n "checking for root""... $ac_c" 1>&6
11073 echo "configure:11074: checking for root" >&5
11074 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11075 echo $ac_n "(cached) $ac_c" 1>&6
11076 else
11078 if test "$cross_compiling" = yes; then
11079 samba_cv_HAVE_ROOT=cross
11080 else
11081 cat > conftest.$ac_ext <<EOF
11082 #line 11083 "configure"
11083 #include "confdefs.h"
11084 main() { exit(getuid() != 0); }
11086 if { (eval echo configure:11087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11087 then
11088 samba_cv_HAVE_ROOT=yes
11089 else
11090 echo "configure: failed program was:" >&5
11091 cat conftest.$ac_ext >&5
11092 rm -fr conftest*
11093 samba_cv_HAVE_ROOT=no
11095 rm -fr conftest*
11100 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11101 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
11102 cat >> confdefs.h <<\EOF
11103 #define HAVE_ROOT 1
11106 else
11107 echo "configure: warning: running as non-root will disable some tests" 1>&2
11110 ##################
11111 # look for a method of finding the list of network interfaces
11112 iface=no;
11113 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11114 echo "configure:11115: checking for iface AIX" >&5
11115 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11116 echo $ac_n "(cached) $ac_c" 1>&6
11117 else
11119 if test "$cross_compiling" = yes; then
11120 samba_cv_HAVE_IFACE_AIX=cross
11121 else
11122 cat > conftest.$ac_ext <<EOF
11123 #line 11124 "configure"
11124 #include "confdefs.h"
11126 #define HAVE_IFACE_AIX 1
11127 #define AUTOCONF_TEST 1
11128 #include "confdefs.h"
11129 #include "${srcdir-.}/lib/interfaces.c"
11131 if { (eval echo configure:11132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11132 then
11133 samba_cv_HAVE_IFACE_AIX=yes
11134 else
11135 echo "configure: failed program was:" >&5
11136 cat conftest.$ac_ext >&5
11137 rm -fr conftest*
11138 samba_cv_HAVE_IFACE_AIX=no
11140 rm -fr conftest*
11145 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11146 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11147 iface=yes;cat >> confdefs.h <<\EOF
11148 #define HAVE_IFACE_AIX 1
11153 if test $iface = no; then
11154 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11155 echo "configure:11156: checking for iface ifconf" >&5
11156 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11157 echo $ac_n "(cached) $ac_c" 1>&6
11158 else
11160 if test "$cross_compiling" = yes; then
11161 samba_cv_HAVE_IFACE_IFCONF=cross
11162 else
11163 cat > conftest.$ac_ext <<EOF
11164 #line 11165 "configure"
11165 #include "confdefs.h"
11167 #define HAVE_IFACE_IFCONF 1
11168 #define AUTOCONF_TEST 1
11169 #include "confdefs.h"
11170 #include "${srcdir-.}/lib/interfaces.c"
11172 if { (eval echo configure:11173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11173 then
11174 samba_cv_HAVE_IFACE_IFCONF=yes
11175 else
11176 echo "configure: failed program was:" >&5
11177 cat conftest.$ac_ext >&5
11178 rm -fr conftest*
11179 samba_cv_HAVE_IFACE_IFCONF=no
11181 rm -fr conftest*
11186 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11187 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11188 iface=yes;cat >> confdefs.h <<\EOF
11189 #define HAVE_IFACE_IFCONF 1
11195 if test $iface = no; then
11196 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11197 echo "configure:11198: checking for iface ifreq" >&5
11198 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11199 echo $ac_n "(cached) $ac_c" 1>&6
11200 else
11202 if test "$cross_compiling" = yes; then
11203 samba_cv_HAVE_IFACE_IFREQ=cross
11204 else
11205 cat > conftest.$ac_ext <<EOF
11206 #line 11207 "configure"
11207 #include "confdefs.h"
11209 #define HAVE_IFACE_IFREQ 1
11210 #define AUTOCONF_TEST 1
11211 #include "confdefs.h"
11212 #include "${srcdir-.}/lib/interfaces.c"
11214 if { (eval echo configure:11215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11215 then
11216 samba_cv_HAVE_IFACE_IFREQ=yes
11217 else
11218 echo "configure: failed program was:" >&5
11219 cat conftest.$ac_ext >&5
11220 rm -fr conftest*
11221 samba_cv_HAVE_IFACE_IFREQ=no
11223 rm -fr conftest*
11228 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11229 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11230 iface=yes;cat >> confdefs.h <<\EOF
11231 #define HAVE_IFACE_IFREQ 1
11238 ################################################
11239 # look for a method of setting the effective uid
11240 seteuid=no;
11241 if test $seteuid = no; then
11242 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11243 echo "configure:11244: checking for setresuid" >&5
11244 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11245 echo $ac_n "(cached) $ac_c" 1>&6
11246 else
11248 if test "$cross_compiling" = yes; then
11249 samba_cv_USE_SETRESUID=cross
11250 else
11251 cat > conftest.$ac_ext <<EOF
11252 #line 11253 "configure"
11253 #include "confdefs.h"
11255 #define AUTOCONF_TEST 1
11256 #define USE_SETRESUID 1
11257 #include "confdefs.h"
11258 #include "${srcdir-.}/lib/util_sec.c"
11260 if { (eval echo configure:11261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11261 then
11262 samba_cv_USE_SETRESUID=yes
11263 else
11264 echo "configure: failed program was:" >&5
11265 cat conftest.$ac_ext >&5
11266 rm -fr conftest*
11267 samba_cv_USE_SETRESUID=no
11269 rm -fr conftest*
11274 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11275 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11276 seteuid=yes;cat >> confdefs.h <<\EOF
11277 #define USE_SETRESUID 1
11284 if test $seteuid = no; then
11285 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11286 echo "configure:11287: checking for setreuid" >&5
11287 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11288 echo $ac_n "(cached) $ac_c" 1>&6
11289 else
11291 if test "$cross_compiling" = yes; then
11292 samba_cv_USE_SETREUID=cross
11293 else
11294 cat > conftest.$ac_ext <<EOF
11295 #line 11296 "configure"
11296 #include "confdefs.h"
11298 #define AUTOCONF_TEST 1
11299 #define USE_SETREUID 1
11300 #include "confdefs.h"
11301 #include "${srcdir-.}/lib/util_sec.c"
11303 if { (eval echo configure:11304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11304 then
11305 samba_cv_USE_SETREUID=yes
11306 else
11307 echo "configure: failed program was:" >&5
11308 cat conftest.$ac_ext >&5
11309 rm -fr conftest*
11310 samba_cv_USE_SETREUID=no
11312 rm -fr conftest*
11317 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11318 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11319 seteuid=yes;cat >> confdefs.h <<\EOF
11320 #define USE_SETREUID 1
11326 if test $seteuid = no; then
11327 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11328 echo "configure:11329: checking for seteuid" >&5
11329 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11330 echo $ac_n "(cached) $ac_c" 1>&6
11331 else
11333 if test "$cross_compiling" = yes; then
11334 samba_cv_USE_SETEUID=cross
11335 else
11336 cat > conftest.$ac_ext <<EOF
11337 #line 11338 "configure"
11338 #include "confdefs.h"
11340 #define AUTOCONF_TEST 1
11341 #define USE_SETEUID 1
11342 #include "confdefs.h"
11343 #include "${srcdir-.}/lib/util_sec.c"
11345 if { (eval echo configure:11346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11346 then
11347 samba_cv_USE_SETEUID=yes
11348 else
11349 echo "configure: failed program was:" >&5
11350 cat conftest.$ac_ext >&5
11351 rm -fr conftest*
11352 samba_cv_USE_SETEUID=no
11354 rm -fr conftest*
11359 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11360 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11361 seteuid=yes;cat >> confdefs.h <<\EOF
11362 #define USE_SETEUID 1
11368 if test $seteuid = no; then
11369 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11370 echo "configure:11371: checking for setuidx" >&5
11371 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11372 echo $ac_n "(cached) $ac_c" 1>&6
11373 else
11375 if test "$cross_compiling" = yes; then
11376 samba_cv_USE_SETUIDX=cross
11377 else
11378 cat > conftest.$ac_ext <<EOF
11379 #line 11380 "configure"
11380 #include "confdefs.h"
11382 #define AUTOCONF_TEST 1
11383 #define USE_SETUIDX 1
11384 #include "confdefs.h"
11385 #include "${srcdir-.}/lib/util_sec.c"
11387 if { (eval echo configure:11388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11388 then
11389 samba_cv_USE_SETUIDX=yes
11390 else
11391 echo "configure: failed program was:" >&5
11392 cat conftest.$ac_ext >&5
11393 rm -fr conftest*
11394 samba_cv_USE_SETUIDX=no
11396 rm -fr conftest*
11401 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11402 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11403 seteuid=yes;cat >> confdefs.h <<\EOF
11404 #define USE_SETUIDX 1
11411 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11412 echo "configure:11413: checking for working mmap" >&5
11413 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11414 echo $ac_n "(cached) $ac_c" 1>&6
11415 else
11417 if test "$cross_compiling" = yes; then
11418 samba_cv_HAVE_MMAP=cross
11419 else
11420 cat > conftest.$ac_ext <<EOF
11421 #line 11422 "configure"
11422 #include "confdefs.h"
11423 #include "${srcdir-.}/tests/shared_mmap.c"
11425 if { (eval echo configure:11426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11426 then
11427 samba_cv_HAVE_MMAP=yes
11428 else
11429 echo "configure: failed program was:" >&5
11430 cat conftest.$ac_ext >&5
11431 rm -fr conftest*
11432 samba_cv_HAVE_MMAP=no
11434 rm -fr conftest*
11439 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11440 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11441 cat >> confdefs.h <<\EOF
11442 #define HAVE_MMAP 1
11447 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11448 echo "configure:11449: checking for ftruncate needs root" >&5
11449 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11450 echo $ac_n "(cached) $ac_c" 1>&6
11451 else
11453 if test "$cross_compiling" = yes; then
11454 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11455 else
11456 cat > conftest.$ac_ext <<EOF
11457 #line 11458 "configure"
11458 #include "confdefs.h"
11459 #include "${srcdir-.}/tests/ftruncroot.c"
11461 if { (eval echo configure:11462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11462 then
11463 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11464 else
11465 echo "configure: failed program was:" >&5
11466 cat conftest.$ac_ext >&5
11467 rm -fr conftest*
11468 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11470 rm -fr conftest*
11475 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11476 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11477 cat >> confdefs.h <<\EOF
11478 #define FTRUNCATE_NEEDS_ROOT 1
11483 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11484 echo "configure:11485: checking for fcntl locking" >&5
11485 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11486 echo $ac_n "(cached) $ac_c" 1>&6
11487 else
11489 if test "$cross_compiling" = yes; then
11490 samba_cv_HAVE_FCNTL_LOCK=cross
11491 else
11492 cat > conftest.$ac_ext <<EOF
11493 #line 11494 "configure"
11494 #include "confdefs.h"
11495 #include "${srcdir-.}/tests/fcntl_lock.c"
11497 if { (eval echo configure:11498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11498 then
11499 samba_cv_HAVE_FCNTL_LOCK=yes
11500 else
11501 echo "configure: failed program was:" >&5
11502 cat conftest.$ac_ext >&5
11503 rm -fr conftest*
11504 samba_cv_HAVE_FCNTL_LOCK=no
11506 rm -fr conftest*
11511 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11512 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11513 cat >> confdefs.h <<\EOF
11514 #define HAVE_FCNTL_LOCK 1
11519 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11520 echo "configure:11521: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11521 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11522 echo $ac_n "(cached) $ac_c" 1>&6
11523 else
11525 if test "$cross_compiling" = yes; then
11526 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11527 else
11528 cat > conftest.$ac_ext <<EOF
11529 #line 11530 "configure"
11530 #include "confdefs.h"
11531 #include "${srcdir-.}/tests/fcntl_lock64.c"
11533 if { (eval echo configure:11534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11534 then
11535 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11536 else
11537 echo "configure: failed program was:" >&5
11538 cat conftest.$ac_ext >&5
11539 rm -fr conftest*
11540 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11542 rm -fr conftest*
11547 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11548 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11549 cat >> confdefs.h <<\EOF
11550 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11554 else
11557 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11558 echo "configure:11559: checking for 64 bit fcntl locking" >&5
11559 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11560 echo $ac_n "(cached) $ac_c" 1>&6
11561 else
11563 if test "$cross_compiling" = yes; then
11564 samba_cv_HAVE_STRUCT_FLOCK64=cross
11565 else
11566 cat > conftest.$ac_ext <<EOF
11567 #line 11568 "configure"
11568 #include "confdefs.h"
11570 #if defined(HAVE_UNISTD_H)
11571 #include <unistd.h>
11572 #endif
11573 #include <stdio.h>
11574 #include <stdlib.h>
11576 #ifdef HAVE_FCNTL_H
11577 #include <fcntl.h>
11578 #endif
11580 #ifdef HAVE_SYS_FCNTL_H
11581 #include <sys/fcntl.h>
11582 #endif
11583 main() { struct flock64 fl64;
11584 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11585 exit(0);
11586 #else
11587 exit(1);
11588 #endif
11591 if { (eval echo configure:11592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11592 then
11593 samba_cv_HAVE_STRUCT_FLOCK64=yes
11594 else
11595 echo "configure: failed program was:" >&5
11596 cat conftest.$ac_ext >&5
11597 rm -fr conftest*
11598 samba_cv_HAVE_STRUCT_FLOCK64=no
11600 rm -fr conftest*
11605 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11607 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11608 cat >> confdefs.h <<\EOF
11609 #define HAVE_STRUCT_FLOCK64 1
11615 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11616 echo "configure:11617: checking for st_blocks in struct stat" >&5
11617 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11618 echo $ac_n "(cached) $ac_c" 1>&6
11619 else
11621 cat > conftest.$ac_ext <<EOF
11622 #line 11623 "configure"
11623 #include "confdefs.h"
11624 #include <sys/types.h>
11625 #include <sys/stat.h>
11626 #include <unistd.h>
11627 int main() {
11628 struct stat st; st.st_blocks = 0;
11629 ; return 0; }
11631 if { (eval echo configure:11632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11632 rm -rf conftest*
11633 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11634 else
11635 echo "configure: failed program was:" >&5
11636 cat conftest.$ac_ext >&5
11637 rm -rf conftest*
11638 samba_cv_HAVE_STAT_ST_BLOCKS=no
11640 rm -f conftest*
11643 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11644 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11645 cat >> confdefs.h <<\EOF
11646 #define HAVE_STAT_ST_BLOCKS 1
11651 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
11652 echo "configure:11653: checking for st_blksize in struct stat" >&5
11653 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
11654 echo $ac_n "(cached) $ac_c" 1>&6
11655 else
11657 cat > conftest.$ac_ext <<EOF
11658 #line 11659 "configure"
11659 #include "confdefs.h"
11660 #include <sys/types.h>
11661 #include <sys/stat.h>
11662 #include <unistd.h>
11663 int main() {
11664 struct stat st; st.st_blksize = 0;
11665 ; return 0; }
11667 if { (eval echo configure:11668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11668 rm -rf conftest*
11669 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
11670 else
11671 echo "configure: failed program was:" >&5
11672 cat conftest.$ac_ext >&5
11673 rm -rf conftest*
11674 samba_cv_HAVE_STAT_ST_BLKSIZE=no
11676 rm -f conftest*
11679 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
11680 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
11681 cat >> confdefs.h <<\EOF
11682 #define HAVE_STAT_ST_BLKSIZE 1
11687 case "$host_os" in
11688 *linux*)
11689 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11690 echo "configure:11691: checking for broken RedHat 7.2 system header files" >&5
11691 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11692 echo $ac_n "(cached) $ac_c" 1>&6
11693 else
11695 cat > conftest.$ac_ext <<EOF
11696 #line 11697 "configure"
11697 #include "confdefs.h"
11699 #ifdef HAVE_SYS_VFS_H
11700 #include <sys/vfs.h>
11701 #endif
11702 #ifdef HAVE_SYS_CAPABILITY_H
11703 #include <sys/capability.h>
11704 #endif
11706 int main() {
11707 int i;
11708 ; return 0; }
11710 if { (eval echo configure:11711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11711 rm -rf conftest*
11712 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11713 else
11714 echo "configure: failed program was:" >&5
11715 cat conftest.$ac_ext >&5
11716 rm -rf conftest*
11717 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11719 rm -f conftest*
11722 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11723 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11724 cat >> confdefs.h <<\EOF
11725 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11730 esac
11732 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11733 echo "configure:11734: checking for broken nisplus include files" >&5
11734 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11735 echo $ac_n "(cached) $ac_c" 1>&6
11736 else
11738 cat > conftest.$ac_ext <<EOF
11739 #line 11740 "configure"
11740 #include "confdefs.h"
11741 #include <sys/acl.h>
11742 #if defined(HAVE_RPCSVC_NIS_H)
11743 #include <rpcsvc/nis.h>
11744 #endif
11745 int main() {
11746 int i;
11747 ; return 0; }
11749 if { (eval echo configure:11750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11750 rm -rf conftest*
11751 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11752 else
11753 echo "configure: failed program was:" >&5
11754 cat conftest.$ac_ext >&5
11755 rm -rf conftest*
11756 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11758 rm -f conftest*
11761 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11762 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11763 cat >> confdefs.h <<\EOF
11764 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11770 #################################################
11771 # check for smbwrapper support
11772 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11773 echo "configure:11774: checking whether to use smbwrapper" >&5
11774 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11775 if test "${with_smbwrapper+set}" = set; then
11776 withval="$with_smbwrapper"
11777 case "$withval" in
11778 yes)
11779 echo "$ac_t""yes" 1>&6
11780 cat >> confdefs.h <<\EOF
11781 #define WITH_SMBWRAPPER 1
11784 WRAPPROG="bin/smbsh"
11785 WRAP="bin/smbwrapper.$SHLIBEXT"
11787 if test x$ATTEMPT_WRAP32_BUILD = x; then
11788 WRAP32=""
11789 else
11790 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11793 # Conditions under which smbwrapper should not be built.
11795 if test x$PICFLAG = x; then
11796 echo No support for PIC code - disabling smbwrapper and smbsh
11797 WRAPPROG=""
11798 WRAP=""
11799 WRAP32=""
11800 elif test x$ac_cv_func_syscall = xno; then
11801 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11802 WRAPPROG=""
11803 WRAP=""
11804 WRAP32=""
11808 echo "$ac_t""no" 1>&6
11810 esac
11811 else
11812 echo "$ac_t""no" 1>&6
11817 #################################################
11818 # check for the AFS filesystem
11819 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11820 echo "configure:11821: checking whether to use AFS" >&5
11821 # Check whether --with-afs or --without-afs was given.
11822 if test "${with_afs+set}" = set; then
11823 withval="$with_afs"
11824 case "$withval" in
11825 yes)
11826 echo "$ac_t""yes" 1>&6
11827 cat >> confdefs.h <<\EOF
11828 #define WITH_AFS 1
11833 echo "$ac_t""no" 1>&6
11835 esac
11836 else
11837 echo "$ac_t""no" 1>&6
11843 #################################################
11844 # check for the DFS auth system
11845 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11846 echo "configure:11847: checking whether to use DCE/DFS auth" >&5
11847 # Check whether --with-dfs or --without-dfs was given.
11848 if test "${with_dfs+set}" = set; then
11849 withval="$with_dfs"
11850 case "$withval" in
11851 yes)
11852 echo "$ac_t""yes" 1>&6
11853 cat >> confdefs.h <<\EOF
11854 #define WITH_DFS 1
11859 echo "$ac_t""no" 1>&6
11861 esac
11862 else
11863 echo "$ac_t""no" 1>&6
11868 #################################################
11869 # check for Kerberos IV auth system
11870 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11871 echo "configure:11872: checking whether to use Kerberos IV" >&5
11872 # Check whether --with-krb4 or --without-krb4 was given.
11873 if test "${with_krb4+set}" = set; then
11874 withval="$with_krb4"
11875 case "$withval" in
11876 yes)
11877 echo "$ac_t""yes" 1>&6
11878 cat >> confdefs.h <<\EOF
11879 #define KRB4_AUTH 1
11882 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11883 echo "configure:11884: checking for dn_expand in -lresolv" >&5
11884 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11886 echo $ac_n "(cached) $ac_c" 1>&6
11887 else
11888 ac_save_LIBS="$LIBS"
11889 LIBS="-lresolv $LIBS"
11890 cat > conftest.$ac_ext <<EOF
11891 #line 11892 "configure"
11892 #include "confdefs.h"
11893 /* Override any gcc2 internal prototype to avoid an error. */
11894 /* We use char because int might match the return type of a gcc2
11895 builtin and then its argument prototype would still apply. */
11896 char dn_expand();
11898 int main() {
11899 dn_expand()
11900 ; return 0; }
11902 if { (eval echo configure:11903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11903 rm -rf conftest*
11904 eval "ac_cv_lib_$ac_lib_var=yes"
11905 else
11906 echo "configure: failed program was:" >&5
11907 cat conftest.$ac_ext >&5
11908 rm -rf conftest*
11909 eval "ac_cv_lib_$ac_lib_var=no"
11911 rm -f conftest*
11912 LIBS="$ac_save_LIBS"
11915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11916 echo "$ac_t""yes" 1>&6
11917 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11918 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11919 cat >> confdefs.h <<EOF
11920 #define $ac_tr_lib 1
11923 LIBS="-lresolv $LIBS"
11925 else
11926 echo "$ac_t""no" 1>&6
11929 LIBS="$LIBS -lkrb -ldes"
11930 CFLAGS="$CFLAGS -I$withval/include"
11931 LDFLAGS="$LDFLAGS -L$withval/lib"
11934 echo "$ac_t""no" 1>&6
11936 esac
11937 else
11938 echo "$ac_t""no" 1>&6
11943 #################################################
11944 # check for Kerberos 5 auth system
11945 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11946 echo "configure:11947: checking whether to use Kerberos 5" >&5
11947 # Check whether --with-krb5 or --without-krb5 was given.
11948 if test "${with_krb5+set}" = set; then
11949 withval="$with_krb5"
11950 case "$withval" in
11951 yes)
11952 echo "$ac_t""yes" 1>&6
11953 cat >> confdefs.h <<\EOF
11954 #define KRB5_AUTH 1
11957 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11958 CFLAGS="$CFLAGS -I$withval/include"
11959 LDFLAGS="$LDFLAGS -L$withval/lib"
11962 echo "$ac_t""no" 1>&6
11964 esac
11965 else
11966 echo "$ac_t""no" 1>&6
11971 #################################################
11972 # check for automount support
11973 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11974 echo "configure:11975: checking whether to use AUTOMOUNT" >&5
11975 # Check whether --with-automount or --without-automount was given.
11976 if test "${with_automount+set}" = set; then
11977 withval="$with_automount"
11978 case "$withval" in
11979 yes)
11980 echo "$ac_t""yes" 1>&6
11981 cat >> confdefs.h <<\EOF
11982 #define WITH_AUTOMOUNT 1
11987 echo "$ac_t""no" 1>&6
11989 esac
11990 else
11991 echo "$ac_t""no" 1>&6
11996 #################################################
11997 # check for smbmount support
11998 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11999 echo "configure:12000: checking whether to use SMBMOUNT" >&5
12000 # Check whether --with-smbmount or --without-smbmount was given.
12001 if test "${with_smbmount+set}" = set; then
12002 withval="$with_smbmount"
12003 case "$withval" in
12004 yes)
12005 case "$host_os" in
12006 *linux*)
12007 echo "$ac_t""yes" 1>&6
12008 cat >> confdefs.h <<\EOF
12009 #define WITH_SMBMOUNT 1
12012 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
12015 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
12017 esac
12020 echo "$ac_t""no" 1>&6
12021 MPROGS=
12023 esac
12024 else
12025 echo "$ac_t""no" 1>&6
12026 MPROGS=
12032 #################################################
12033 # check for a PAM password database
12034 with_pam_for_crypt=no
12035 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
12036 echo "configure:12037: checking whether to use PAM password database" >&5
12037 # Check whether --with-pam or --without-pam was given.
12038 if test "${with_pam+set}" = set; then
12039 withval="$with_pam"
12040 case "$withval" in
12041 yes)
12042 echo "$ac_t""yes" 1>&6
12043 cat >> confdefs.h <<\EOF
12044 #define WITH_PAM 1
12047 LIBS="$LIBS -lpam"
12048 with_pam_for_crypt=yes
12051 echo "$ac_t""no" 1>&6
12053 esac
12054 else
12055 echo "$ac_t""no" 1>&6
12060 # we can't build a pam module if we don't have pam.
12061 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12062 echo "configure:12063: checking for pam_get_data in -lpam" >&5
12063 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12065 echo $ac_n "(cached) $ac_c" 1>&6
12066 else
12067 ac_save_LIBS="$LIBS"
12068 LIBS="-lpam $LIBS"
12069 cat > conftest.$ac_ext <<EOF
12070 #line 12071 "configure"
12071 #include "confdefs.h"
12072 /* Override any gcc2 internal prototype to avoid an error. */
12073 /* We use char because int might match the return type of a gcc2
12074 builtin and then its argument prototype would still apply. */
12075 char pam_get_data();
12077 int main() {
12078 pam_get_data()
12079 ; return 0; }
12081 if { (eval echo configure:12082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12082 rm -rf conftest*
12083 eval "ac_cv_lib_$ac_lib_var=yes"
12084 else
12085 echo "configure: failed program was:" >&5
12086 cat conftest.$ac_ext >&5
12087 rm -rf conftest*
12088 eval "ac_cv_lib_$ac_lib_var=no"
12090 rm -f conftest*
12091 LIBS="$ac_save_LIBS"
12094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12095 echo "$ac_t""yes" 1>&6
12096 cat >> confdefs.h <<\EOF
12097 #define HAVE_LIBPAM 1
12100 else
12101 echo "$ac_t""no" 1>&6
12105 #################################################
12106 # check for pam_smbpass support
12107 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12108 echo "configure:12109: checking whether to use pam_smbpass" >&5
12109 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12110 if test "${with_pam_smbpass+set}" = set; then
12111 withval="$with_pam_smbpass"
12112 case "$withval" in
12113 yes)
12114 echo "$ac_t""yes" 1>&6
12116 # Conditions under which pam_smbpass should not be built.
12118 if test x$PICFLAG = x; then
12119 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12120 PAM_MOD=""
12121 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
12122 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12123 PAM_MOD=""
12124 else
12125 cat >> confdefs.h <<\EOF
12126 #define WITH_PAM_SMBPASS 1
12129 PAM_MOD="bin/pam_smbpass.so"
12133 echo "$ac_t""no" 1>&6
12135 esac
12136 else
12137 echo "$ac_t""no" 1>&6
12143 ###############################################
12144 # test for where we get crypt() from, but only
12145 # if not using PAM
12146 if test $with_pam_for_crypt = no; then
12147 for ac_func in crypt
12149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12150 echo "configure:12151: checking for $ac_func" >&5
12151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12152 echo $ac_n "(cached) $ac_c" 1>&6
12153 else
12154 cat > conftest.$ac_ext <<EOF
12155 #line 12156 "configure"
12156 #include "confdefs.h"
12157 /* System header to define __stub macros and hopefully few prototypes,
12158 which can conflict with char $ac_func(); below. */
12159 #include <assert.h>
12160 /* Override any gcc2 internal prototype to avoid an error. */
12161 /* We use char because int might match the return type of a gcc2
12162 builtin and then its argument prototype would still apply. */
12163 char $ac_func();
12165 int main() {
12167 /* The GNU C library defines this for functions which it implements
12168 to always fail with ENOSYS. Some functions are actually named
12169 something starting with __ and the normal name is an alias. */
12170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12171 choke me
12172 #else
12173 $ac_func();
12174 #endif
12176 ; return 0; }
12178 if { (eval echo configure:12179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12179 rm -rf conftest*
12180 eval "ac_cv_func_$ac_func=yes"
12181 else
12182 echo "configure: failed program was:" >&5
12183 cat conftest.$ac_ext >&5
12184 rm -rf conftest*
12185 eval "ac_cv_func_$ac_func=no"
12187 rm -f conftest*
12190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12191 echo "$ac_t""yes" 1>&6
12192 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12193 cat >> confdefs.h <<EOF
12194 #define $ac_tr_func 1
12197 else
12198 echo "$ac_t""no" 1>&6
12200 done
12202 if test x"$ac_cv_func_crypt" = x"no"; then
12203 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12204 echo "configure:12205: checking for crypt in -lcrypt" >&5
12205 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12207 echo $ac_n "(cached) $ac_c" 1>&6
12208 else
12209 ac_save_LIBS="$LIBS"
12210 LIBS="-lcrypt $LIBS"
12211 cat > conftest.$ac_ext <<EOF
12212 #line 12213 "configure"
12213 #include "confdefs.h"
12214 /* Override any gcc2 internal prototype to avoid an error. */
12215 /* We use char because int might match the return type of a gcc2
12216 builtin and then its argument prototype would still apply. */
12217 char crypt();
12219 int main() {
12220 crypt()
12221 ; return 0; }
12223 if { (eval echo configure:12224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12224 rm -rf conftest*
12225 eval "ac_cv_lib_$ac_lib_var=yes"
12226 else
12227 echo "configure: failed program was:" >&5
12228 cat conftest.$ac_ext >&5
12229 rm -rf conftest*
12230 eval "ac_cv_lib_$ac_lib_var=no"
12232 rm -f conftest*
12233 LIBS="$ac_save_LIBS"
12236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12237 echo "$ac_t""yes" 1>&6
12238 LIBS="$LIBS -lcrypt";
12239 cat >> confdefs.h <<\EOF
12240 #define HAVE_CRYPT 1
12243 else
12244 echo "$ac_t""no" 1>&6
12251 ## moved after the check for -lcrypt in order to
12252 ## ensure that the necessary libraries are included
12253 ## check checking for truncated salt. Wrapped by the
12254 ## $with_pam_for_crypt variable as above --jerry
12256 if test $with_pam_for_crypt = no; then
12257 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12258 echo "configure:12259: checking for a crypt that needs truncated salt" >&5
12259 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12260 echo $ac_n "(cached) $ac_c" 1>&6
12261 else
12263 if test "$cross_compiling" = yes; then
12264 samba_cv_HAVE_TRUNCATED_SALT=cross
12265 else
12266 cat > conftest.$ac_ext <<EOF
12267 #line 12268 "configure"
12268 #include "confdefs.h"
12269 #include "${srcdir-.}/tests/crypttest.c"
12271 if { (eval echo configure:12272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12272 then
12273 samba_cv_HAVE_TRUNCATED_SALT=no
12274 else
12275 echo "configure: failed program was:" >&5
12276 cat conftest.$ac_ext >&5
12277 rm -fr conftest*
12278 samba_cv_HAVE_TRUNCATED_SALT=yes
12280 rm -fr conftest*
12285 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12286 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12287 cat >> confdefs.h <<\EOF
12288 #define HAVE_TRUNCATED_SALT 1
12295 ########################################################################################
12297 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12299 ########################################################################################
12301 ## set the with_smbpasswd_sam as the default
12302 with_smbpasswd_sam=yes
12306 #################################################
12307 # check for a TDB password database
12308 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12309 echo "configure:12310: checking whether to use TDB SAM database" >&5
12310 # Check whether --with-tdbsam or --without-tdbsam was given.
12311 if test "${with_tdbsam+set}" = set; then
12312 withval="$with_tdbsam"
12313 case "$withval" in
12314 yes)
12315 echo "$ac_t""yes" 1>&6
12316 cat >> confdefs.h <<\EOF
12317 #define WITH_TDB_SAM 1
12320 with_smbpasswd_sam=no
12323 echo "$ac_t""no" 1>&6
12325 esac
12326 else
12327 echo "$ac_t""no" 1>&6
12332 #################################################
12333 # check for a LDAP password database
12334 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12335 echo "configure:12336: checking whether to use LDAP SAM database" >&5
12336 # Check whether --with-ldapsam or --without-ldapsam was given.
12337 if test "${with_ldapsam+set}" = set; then
12338 withval="$with_ldapsam"
12339 case "$withval" in
12340 yes)
12341 echo "$ac_t""yes" 1>&6
12342 cat >> confdefs.h <<\EOF
12343 #define WITH_LDAP_SAM 1
12346 LDAPLIBS="-lldap"
12347 echo $ac_n "checking for ber_bvfree in -llber""... $ac_c" 1>&6
12348 echo "configure:12349: checking for ber_bvfree in -llber" >&5
12349 ac_lib_var=`echo lber'_'ber_bvfree | sed 'y%./+-%__p_%'`
12350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12351 echo $ac_n "(cached) $ac_c" 1>&6
12352 else
12353 ac_save_LIBS="$LIBS"
12354 LIBS="-llber $LIBS"
12355 cat > conftest.$ac_ext <<EOF
12356 #line 12357 "configure"
12357 #include "confdefs.h"
12358 /* Override any gcc2 internal prototype to avoid an error. */
12359 /* We use char because int might match the return type of a gcc2
12360 builtin and then its argument prototype would still apply. */
12361 char ber_bvfree();
12363 int main() {
12364 ber_bvfree()
12365 ; return 0; }
12367 if { (eval echo configure:12368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12368 rm -rf conftest*
12369 eval "ac_cv_lib_$ac_lib_var=yes"
12370 else
12371 echo "configure: failed program was:" >&5
12372 cat conftest.$ac_ext >&5
12373 rm -rf conftest*
12374 eval "ac_cv_lib_$ac_lib_var=no"
12376 rm -f conftest*
12377 LIBS="$ac_save_LIBS"
12380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12381 echo "$ac_t""yes" 1>&6
12382 LDAPLIBS="$LDAPLIBS -llber"
12383 else
12384 echo "$ac_t""no" 1>&6
12387 ## remove -lresolv as this should be included by the -lsasl dependency
12388 ## in the OpenLDAP clients. By not requiring it specifically, we avoid
12389 ## issues on platforms that don't have it
12390 LDAPLIBS="$LDAPLIBS"
12391 old_LDFLAGS="$LDFLAGS"
12392 LDFLAGS="$LDFLAGS $LDAPLIBS"
12393 for ac_func in ldap_start_tls_s
12395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12396 echo "configure:12397: checking for $ac_func" >&5
12397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12398 echo $ac_n "(cached) $ac_c" 1>&6
12399 else
12400 cat > conftest.$ac_ext <<EOF
12401 #line 12402 "configure"
12402 #include "confdefs.h"
12403 /* System header to define __stub macros and hopefully few prototypes,
12404 which can conflict with char $ac_func(); below. */
12405 #include <assert.h>
12406 /* Override any gcc2 internal prototype to avoid an error. */
12407 /* We use char because int might match the return type of a gcc2
12408 builtin and then its argument prototype would still apply. */
12409 char $ac_func();
12411 int main() {
12413 /* The GNU C library defines this for functions which it implements
12414 to always fail with ENOSYS. Some functions are actually named
12415 something starting with __ and the normal name is an alias. */
12416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12417 choke me
12418 #else
12419 $ac_func();
12420 #endif
12422 ; return 0; }
12424 if { (eval echo configure:12425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12425 rm -rf conftest*
12426 eval "ac_cv_func_$ac_func=yes"
12427 else
12428 echo "configure: failed program was:" >&5
12429 cat conftest.$ac_ext >&5
12430 rm -rf conftest*
12431 eval "ac_cv_func_$ac_func=no"
12433 rm -f conftest*
12436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12437 echo "$ac_t""yes" 1>&6
12438 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12439 cat >> confdefs.h <<EOF
12440 #define $ac_tr_func 1
12443 else
12444 echo "$ac_t""no" 1>&6
12446 done
12448 LDFLAGS="$old_LDFLAGS"
12449 with_smbpasswd_sam=no
12451 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12452 echo "configure:12453: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12453 if eval "test \"`echo '$''{'samba_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12454 echo $ac_n "(cached) $ac_c" 1>&6
12455 else
12457 cat > conftest.$ac_ext <<EOF
12458 #line 12459 "configure"
12459 #include "confdefs.h"
12461 #include <lber.h>
12462 #include <ldap.h>
12463 int main() {
12464 ldap_set_rebind_proc(0, 0, 0);
12465 ; return 0; }
12467 if { (eval echo configure:12468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12468 rm -rf conftest*
12469 samba_cv_ldap_set_rebind_proc=3
12470 else
12471 echo "configure: failed program was:" >&5
12472 cat conftest.$ac_ext >&5
12473 rm -rf conftest*
12474 samba_cv_ldap_set_rebind_proc=2
12476 rm -f conftest*
12479 echo "$ac_t""$samba_cv_ldap_set_rebind_proc" 1>&6
12480 if test x"$samba_cv_ldap_set_rebind_proc" = x"3"; then
12481 cat >> confdefs.h <<\EOF
12482 #define LDAP_SET_REBIND_PROC_ARGS 3
12485 else
12486 cat >> confdefs.h <<\EOF
12487 #define LDAP_SET_REBIND_PROC_ARGS 2
12493 echo "$ac_t""no" 1>&6
12495 esac
12496 else
12497 echo "$ac_t""no" 1>&6
12503 #################################################
12504 # check for a NISPLUS password database
12505 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12506 echo "configure:12507: checking whether to use NISPLUS SAM database" >&5
12507 # Check whether --with-nisplussam or --without-nisplussam was given.
12508 if test "${with_nisplussam+set}" = set; then
12509 withval="$with_nisplussam"
12510 case "$withval" in
12511 yes)
12512 echo "$ac_t""yes" 1>&6
12513 cat >> confdefs.h <<\EOF
12514 #define WITH_NISPLUS_SAM 1
12517 with_smbpasswd_sam=no
12520 echo "$ac_t""no" 1>&6
12522 esac
12523 else
12524 echo "$ac_t""no" 1>&6
12529 ################################################
12530 # This test should come last because the
12531 # smbpasswd SAM is only used if another format
12532 # has not been defined
12533 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12534 echo "configure:12535: checking whether to use traditional smbpasswd file" >&5
12535 if test $with_smbpasswd_sam = yes; then
12536 echo "$ac_t""yes" 1>&6
12537 cat >> confdefs.h <<\EOF
12538 #define WITH_SMBPASSWD_SAM 1
12541 PDBEDIT=""
12542 else
12543 echo "$ac_t""no" 1>&6
12544 PDBEDIT=bin/pdbedit
12547 ########################################################################################
12549 ## END OF TESTS FOR SAM BACKENDS.
12551 ########################################################################################
12553 #################################################
12554 # check for a NISPLUS_HOME support
12555 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12556 echo "configure:12557: checking whether to use NISPLUS_HOME" >&5
12557 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12558 if test "${with_nisplus_home+set}" = set; then
12559 withval="$with_nisplus_home"
12560 case "$withval" in
12561 yes)
12562 echo "$ac_t""yes" 1>&6
12563 cat >> confdefs.h <<\EOF
12564 #define WITH_NISPLUS_HOME 1
12569 echo "$ac_t""no" 1>&6
12571 esac
12572 else
12573 echo "$ac_t""no" 1>&6
12578 #################################################
12579 # check for the secure socket layer
12580 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12581 echo "configure:12582: checking whether to use SSL" >&5
12582 # Check whether --with-ssl or --without-ssl was given.
12583 if test "${with_ssl+set}" = set; then
12584 withval="$with_ssl"
12585 case "$withval" in
12586 yes)
12587 echo "$ac_t""yes" 1>&6
12588 cat >> confdefs.h <<\EOF
12589 #define WITH_SSL 1
12592 withval="/usr/local/ssl" # default
12594 if test "${with_sslinc+set}" = set; then
12596 withval="$with_sslinc"
12597 case "$withval" in
12598 yes|no)
12599 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12600 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12603 CFLAGS="-I${withval} $CFLAGS"
12605 esac
12607 else
12609 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12613 if test "${with_ssllib+set}" = set; then
12615 withval="$with_ssllib"
12616 case "$withval" in
12617 yes|no)
12618 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12619 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12622 LDFLAGS="-L${withval}/lib $LDFLAGS"
12624 esac
12626 else
12628 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12632 LIBS="-lssl -lcrypto $LIBS"
12634 # if test ! -d ${withval}; then
12635 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12636 # exit 1
12637 # fi
12639 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12643 echo "$ac_t""no" 1>&6
12645 esac
12646 else
12647 echo "$ac_t""no" 1>&6
12652 #################################################
12653 # check for syslog logging
12654 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12655 echo "configure:12656: checking whether to use syslog logging" >&5
12656 # Check whether --with-syslog or --without-syslog was given.
12657 if test "${with_syslog+set}" = set; then
12658 withval="$with_syslog"
12659 case "$withval" in
12660 yes)
12661 echo "$ac_t""yes" 1>&6
12662 cat >> confdefs.h <<\EOF
12663 #define WITH_SYSLOG 1
12668 echo "$ac_t""no" 1>&6
12670 esac
12671 else
12672 echo "$ac_t""no" 1>&6
12677 #################################################
12678 # check for a shared memory profiling support
12679 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12680 echo "configure:12681: checking whether to use profiling" >&5
12681 # Check whether --with-profiling-data or --without-profiling-data was given.
12682 if test "${with_profiling_data+set}" = set; then
12683 withval="$with_profiling_data"
12684 case "$withval" in
12685 yes)
12686 echo "$ac_t""yes" 1>&6
12687 cat >> confdefs.h <<\EOF
12688 #define WITH_PROFILE 1
12693 echo "$ac_t""no" 1>&6
12695 esac
12696 else
12697 echo "$ac_t""no" 1>&6
12703 #################################################
12704 # check for experimental disk-quotas support
12705 QUOTAOBJS=smbd/noquotas.o
12707 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12708 echo "configure:12709: checking whether to support disk-quotas" >&5
12709 # Check whether --with-quotas or --without-quotas was given.
12710 if test "${with_quotas+set}" = set; then
12711 withval="$with_quotas"
12712 case "$withval" in
12713 yes)
12714 echo "$ac_t""yes" 1>&6
12715 QUOTAOBJS=smbd/quotas.o
12718 echo "$ac_t""no" 1>&6
12720 esac
12721 else
12722 echo "$ac_t""no" 1>&6
12728 #################################################
12729 # check for experimental utmp accounting
12731 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12732 echo "configure:12733: checking whether to support utmp accounting" >&5
12733 # Check whether --with-utmp or --without-utmp was given.
12734 if test "${with_utmp+set}" = set; then
12735 withval="$with_utmp"
12736 case "$withval" in
12737 yes)
12738 echo "$ac_t""yes" 1>&6
12739 cat >> confdefs.h <<\EOF
12740 #define WITH_UTMP 1
12745 echo "$ac_t""no" 1>&6
12747 esac
12748 else
12749 echo "$ac_t""no" 1>&6
12754 #################################################
12755 # check for MS Dfs support
12757 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12758 echo "configure:12759: checking whether to support Microsoft Dfs" >&5
12759 # Check whether --with-msdfs or --without-msdfs was given.
12760 if test "${with_msdfs+set}" = set; then
12761 withval="$with_msdfs"
12762 case "$withval" in
12763 yes)
12764 echo "$ac_t""yes" 1>&6
12765 cat >> confdefs.h <<\EOF
12766 #define WITH_MSDFS 1
12771 echo "$ac_t""no" 1>&6
12773 esac
12774 else
12775 echo "$ac_t""no" 1>&6
12780 #################################################
12781 # should we build libsmbclient?
12783 INSTALLCLIENTCMD_SH=:
12784 INSTALLCLIENTCMD_A=:
12785 LIBSMBCLIENT_SHARED=
12786 LIBSMBCLIENT=
12787 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12788 echo "configure:12789: checking whether to build the libsmbclient shared library" >&5
12789 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12790 if test "${with_libsmbclient+set}" = set; then
12791 withval="$with_libsmbclient"
12792 case "$withval" in
12793 yes)
12794 if test $BLDSHARED = true; then
12795 INSTALLCLIENTCMD_SH="\$(INSTALLCMD)"
12796 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
12797 LIBSMBCLIENT=libsmbclient
12798 echo "$ac_t""yes" 1>&6
12799 else
12800 INSTALLCLIENTCMD_A="\$(INSTALLCMD)"
12801 LIBSMBCLIENT=libsmbclient
12802 echo "$ac_t""no shared library support -- will supply static library" 1>&6
12806 echo "$ac_t""no" 1>&6
12808 esac
12809 else
12810 echo "$ac_t""no" 1>&6
12815 #################################################
12816 # these tests are taken from the GNU fileutils package
12817 echo "checking how to get filesystem space usage" 1>&6
12818 echo "configure:12819: checking how to get filesystem space usage" >&5
12819 space=no
12821 # Test for statvfs64.
12822 if test $space = no; then
12823 # SVR4
12824 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12825 echo "configure:12826: checking statvfs64 function (SVR4)" >&5
12826 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12827 echo $ac_n "(cached) $ac_c" 1>&6
12828 else
12829 if test "$cross_compiling" = yes; then
12830 fu_cv_sys_stat_statvfs64=cross
12831 else
12832 cat > conftest.$ac_ext <<EOF
12833 #line 12834 "configure"
12834 #include "confdefs.h"
12836 #if defined(HAVE_UNISTD_H)
12837 #include <unistd.h>
12838 #endif
12839 #include <sys/types.h>
12840 #include <sys/statvfs.h>
12841 main ()
12843 struct statvfs64 fsd;
12844 exit (statvfs64 (".", &fsd));
12847 if { (eval echo configure:12848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12848 then
12849 fu_cv_sys_stat_statvfs64=yes
12850 else
12851 echo "configure: failed program was:" >&5
12852 cat conftest.$ac_ext >&5
12853 rm -fr conftest*
12854 fu_cv_sys_stat_statvfs64=no
12856 rm -fr conftest*
12861 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12862 if test $fu_cv_sys_stat_statvfs64 = yes; then
12863 space=yes
12864 cat >> confdefs.h <<\EOF
12865 #define STAT_STATVFS64 1
12871 # Perform only the link test since it seems there are no variants of the
12872 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12873 # because that got a false positive on SCO OSR5. Adding the declaration
12874 # of a `struct statvfs' causes this test to fail (as it should) on such
12875 # systems. That system is reported to work fine with STAT_STATFS4 which
12876 # is what it gets when this test fails.
12877 if test $space = no; then
12878 # SVR4
12879 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12880 echo "configure:12881: checking statvfs function (SVR4)" >&5
12881 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12882 echo $ac_n "(cached) $ac_c" 1>&6
12883 else
12884 cat > conftest.$ac_ext <<EOF
12885 #line 12886 "configure"
12886 #include "confdefs.h"
12887 #include <sys/types.h>
12888 #include <sys/statvfs.h>
12889 int main() {
12890 struct statvfs fsd; statvfs (0, &fsd);
12891 ; return 0; }
12893 if { (eval echo configure:12894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12894 rm -rf conftest*
12895 fu_cv_sys_stat_statvfs=yes
12896 else
12897 echo "configure: failed program was:" >&5
12898 cat conftest.$ac_ext >&5
12899 rm -rf conftest*
12900 fu_cv_sys_stat_statvfs=no
12902 rm -f conftest*
12905 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12906 if test $fu_cv_sys_stat_statvfs = yes; then
12907 space=yes
12908 cat >> confdefs.h <<\EOF
12909 #define STAT_STATVFS 1
12915 if test $space = no; then
12916 # DEC Alpha running OSF/1
12917 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12918 echo "configure:12919: checking for 3-argument statfs function (DEC OSF/1)" >&5
12919 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12920 echo $ac_n "(cached) $ac_c" 1>&6
12921 else
12922 if test "$cross_compiling" = yes; then
12923 fu_cv_sys_stat_statfs3_osf1=no
12924 else
12925 cat > conftest.$ac_ext <<EOF
12926 #line 12927 "configure"
12927 #include "confdefs.h"
12929 #include <sys/param.h>
12930 #include <sys/types.h>
12931 #include <sys/mount.h>
12932 main ()
12934 struct statfs fsd;
12935 fsd.f_fsize = 0;
12936 exit (statfs (".", &fsd, sizeof (struct statfs)));
12939 if { (eval echo configure:12940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12940 then
12941 fu_cv_sys_stat_statfs3_osf1=yes
12942 else
12943 echo "configure: failed program was:" >&5
12944 cat conftest.$ac_ext >&5
12945 rm -fr conftest*
12946 fu_cv_sys_stat_statfs3_osf1=no
12948 rm -fr conftest*
12953 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12954 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12955 space=yes
12956 cat >> confdefs.h <<\EOF
12957 #define STAT_STATFS3_OSF1 1
12963 if test $space = no; then
12964 # AIX
12965 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12966 echo "configure:12967: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12967 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12968 echo $ac_n "(cached) $ac_c" 1>&6
12969 else
12970 if test "$cross_compiling" = yes; then
12971 fu_cv_sys_stat_statfs2_bsize=no
12972 else
12973 cat > conftest.$ac_ext <<EOF
12974 #line 12975 "configure"
12975 #include "confdefs.h"
12977 #ifdef HAVE_SYS_PARAM_H
12978 #include <sys/param.h>
12979 #endif
12980 #ifdef HAVE_SYS_MOUNT_H
12981 #include <sys/mount.h>
12982 #endif
12983 #ifdef HAVE_SYS_VFS_H
12984 #include <sys/vfs.h>
12985 #endif
12986 main ()
12988 struct statfs fsd;
12989 fsd.f_bsize = 0;
12990 exit (statfs (".", &fsd));
12993 if { (eval echo configure:12994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12994 then
12995 fu_cv_sys_stat_statfs2_bsize=yes
12996 else
12997 echo "configure: failed program was:" >&5
12998 cat conftest.$ac_ext >&5
12999 rm -fr conftest*
13000 fu_cv_sys_stat_statfs2_bsize=no
13002 rm -fr conftest*
13007 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
13008 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13009 space=yes
13010 cat >> confdefs.h <<\EOF
13011 #define STAT_STATFS2_BSIZE 1
13017 if test $space = no; then
13018 # SVR3
13019 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
13020 echo "configure:13021: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13021 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
13022 echo $ac_n "(cached) $ac_c" 1>&6
13023 else
13024 if test "$cross_compiling" = yes; then
13025 fu_cv_sys_stat_statfs4=no
13026 else
13027 cat > conftest.$ac_ext <<EOF
13028 #line 13029 "configure"
13029 #include "confdefs.h"
13030 #include <sys/types.h>
13031 #include <sys/statfs.h>
13032 main ()
13034 struct statfs fsd;
13035 exit (statfs (".", &fsd, sizeof fsd, 0));
13038 if { (eval echo configure:13039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13039 then
13040 fu_cv_sys_stat_statfs4=yes
13041 else
13042 echo "configure: failed program was:" >&5
13043 cat conftest.$ac_ext >&5
13044 rm -fr conftest*
13045 fu_cv_sys_stat_statfs4=no
13047 rm -fr conftest*
13052 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13053 if test $fu_cv_sys_stat_statfs4 = yes; then
13054 space=yes
13055 cat >> confdefs.h <<\EOF
13056 #define STAT_STATFS4 1
13062 if test $space = no; then
13063 # 4.4BSD and NetBSD
13064 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13065 echo "configure:13066: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13066 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13067 echo $ac_n "(cached) $ac_c" 1>&6
13068 else
13069 if test "$cross_compiling" = yes; then
13070 fu_cv_sys_stat_statfs2_fsize=no
13071 else
13072 cat > conftest.$ac_ext <<EOF
13073 #line 13074 "configure"
13074 #include "confdefs.h"
13075 #include <sys/types.h>
13076 #ifdef HAVE_SYS_PARAM_H
13077 #include <sys/param.h>
13078 #endif
13079 #ifdef HAVE_SYS_MOUNT_H
13080 #include <sys/mount.h>
13081 #endif
13082 main ()
13084 struct statfs fsd;
13085 fsd.f_fsize = 0;
13086 exit (statfs (".", &fsd));
13089 if { (eval echo configure:13090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13090 then
13091 fu_cv_sys_stat_statfs2_fsize=yes
13092 else
13093 echo "configure: failed program was:" >&5
13094 cat conftest.$ac_ext >&5
13095 rm -fr conftest*
13096 fu_cv_sys_stat_statfs2_fsize=no
13098 rm -fr conftest*
13103 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13104 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13105 space=yes
13106 cat >> confdefs.h <<\EOF
13107 #define STAT_STATFS2_FSIZE 1
13113 if test $space = no; then
13114 # Ultrix
13115 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13116 echo "configure:13117: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13117 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13118 echo $ac_n "(cached) $ac_c" 1>&6
13119 else
13120 if test "$cross_compiling" = yes; then
13121 fu_cv_sys_stat_fs_data=no
13122 else
13123 cat > conftest.$ac_ext <<EOF
13124 #line 13125 "configure"
13125 #include "confdefs.h"
13126 #include <sys/types.h>
13127 #ifdef HAVE_SYS_PARAM_H
13128 #include <sys/param.h>
13129 #endif
13130 #ifdef HAVE_SYS_MOUNT_H
13131 #include <sys/mount.h>
13132 #endif
13133 #ifdef HAVE_SYS_FS_TYPES_H
13134 #include <sys/fs_types.h>
13135 #endif
13136 main ()
13138 struct fs_data fsd;
13139 /* Ultrix's statfs returns 1 for success,
13140 0 for not mounted, -1 for failure. */
13141 exit (statfs (".", &fsd) != 1);
13144 if { (eval echo configure:13145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13145 then
13146 fu_cv_sys_stat_fs_data=yes
13147 else
13148 echo "configure: failed program was:" >&5
13149 cat conftest.$ac_ext >&5
13150 rm -fr conftest*
13151 fu_cv_sys_stat_fs_data=no
13153 rm -fr conftest*
13158 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13159 if test $fu_cv_sys_stat_fs_data = yes; then
13160 space=yes
13161 cat >> confdefs.h <<\EOF
13162 #define STAT_STATFS2_FS_DATA 1
13169 # As a gating factor for large file support, in order to
13170 # use <4GB files we must have the following minimal support
13171 # available.
13172 # long long, and a 64 bit off_t or off64_t.
13173 # If we don't have all of these then disable large
13174 # file support.
13176 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13177 echo "configure:13178: checking if large file support can be enabled" >&5
13178 cat > conftest.$ac_ext <<EOF
13179 #line 13180 "configure"
13180 #include "confdefs.h"
13182 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13183 #include <sys/types.h>
13184 #else
13185 __COMPILE_ERROR_
13186 #endif
13188 int main() {
13189 int i
13190 ; return 0; }
13192 if { (eval echo configure:13193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13193 rm -rf conftest*
13194 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13195 else
13196 echo "configure: failed program was:" >&5
13197 cat conftest.$ac_ext >&5
13198 rm -rf conftest*
13199 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13201 rm -f conftest*
13202 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13203 echo "$ac_t""yes" 1>&6
13204 cat >> confdefs.h <<\EOF
13205 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13208 else
13209 echo "$ac_t""no" 1>&6
13212 # Check whether --with-spinlocks or --without-spinlocks was given.
13213 if test "${with_spinlocks+set}" = set; then
13214 withval="$with_spinlocks"
13218 if test "x$with_spinlocks" = "xyes"; then
13219 cat >> confdefs.h <<\EOF
13220 #define USE_SPINLOCKS 1
13224 case "$host_cpu" in
13225 sparc)
13226 cat >> confdefs.h <<\EOF
13227 #define SPARC_SPINLOCKS 1
13232 i386|i486|i586|i686)
13233 cat >> confdefs.h <<\EOF
13234 #define INTEL_SPINLOCKS 1
13239 mips)
13240 cat >> confdefs.h <<\EOF
13241 #define MIPS_SPINLOCKS 1
13246 powerpc)
13247 cat >> confdefs.h <<\EOF
13248 #define POWERPC_SPINLOCKS 1
13252 esac
13255 #################################################
13256 # check for ACL support
13258 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13259 echo "configure:13260: checking whether to support ACLs" >&5
13260 # Check whether --with-acl-support or --without-acl-support was given.
13261 if test "${with_acl_support+set}" = set; then
13262 withval="$with_acl_support"
13263 case "$withval" in
13264 yes)
13266 case "$host_os" in
13267 *sysv5*)
13268 echo "$ac_t""Using UnixWare ACLs" 1>&6
13269 cat >> confdefs.h <<\EOF
13270 #define HAVE_UNIXWARE_ACLS 1
13274 *solaris*)
13275 echo "$ac_t""Using solaris ACLs" 1>&6
13276 cat >> confdefs.h <<\EOF
13277 #define HAVE_SOLARIS_ACLS 1
13281 *hpux*)
13282 echo "$ac_t""Using HPUX ACLs" 1>&6
13283 cat >> confdefs.h <<\EOF
13284 #define HAVE_HPUX_ACLS 1
13288 *irix*)
13289 echo "$ac_t""Using IRIX ACLs" 1>&6
13290 cat >> confdefs.h <<\EOF
13291 #define HAVE_IRIX_ACLS 1
13295 *aix*)
13296 echo "$ac_t""Using AIX ACLs" 1>&6
13297 cat >> confdefs.h <<\EOF
13298 #define HAVE_AIX_ACLS 1
13302 *osf*)
13303 echo "$ac_t""Using Tru64 ACLs" 1>&6
13304 cat >> confdefs.h <<\EOF
13305 #define HAVE_TRU64_ACLS 1
13308 LIBS="$LIBS -lpacl"
13311 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13312 echo "configure:13313: checking for acl_get_file in -lacl" >&5
13313 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13315 echo $ac_n "(cached) $ac_c" 1>&6
13316 else
13317 ac_save_LIBS="$LIBS"
13318 LIBS="-lacl $LIBS"
13319 cat > conftest.$ac_ext <<EOF
13320 #line 13321 "configure"
13321 #include "confdefs.h"
13322 /* Override any gcc2 internal prototype to avoid an error. */
13323 /* We use char because int might match the return type of a gcc2
13324 builtin and then its argument prototype would still apply. */
13325 char acl_get_file();
13327 int main() {
13328 acl_get_file()
13329 ; return 0; }
13331 if { (eval echo configure:13332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13332 rm -rf conftest*
13333 eval "ac_cv_lib_$ac_lib_var=yes"
13334 else
13335 echo "configure: failed program was:" >&5
13336 cat conftest.$ac_ext >&5
13337 rm -rf conftest*
13338 eval "ac_cv_lib_$ac_lib_var=no"
13340 rm -f conftest*
13341 LIBS="$ac_save_LIBS"
13344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13345 echo "$ac_t""yes" 1>&6
13346 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13347 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13348 cat >> confdefs.h <<EOF
13349 #define $ac_tr_lib 1
13352 LIBS="-lacl $LIBS"
13354 else
13355 echo "$ac_t""no" 1>&6
13358 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13359 echo "configure:13360: checking for ACL support" >&5
13360 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13361 echo $ac_n "(cached) $ac_c" 1>&6
13362 else
13364 cat > conftest.$ac_ext <<EOF
13365 #line 13366 "configure"
13366 #include "confdefs.h"
13367 #include <sys/types.h>
13368 #include <sys/acl.h>
13369 int main() {
13370 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13371 ; return 0; }
13373 if { (eval echo configure:13374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13374 rm -rf conftest*
13375 samba_cv_HAVE_POSIX_ACLS=yes
13376 else
13377 echo "configure: failed program was:" >&5
13378 cat conftest.$ac_ext >&5
13379 rm -rf conftest*
13380 samba_cv_HAVE_POSIX_ACLS=no
13382 rm -f conftest*
13385 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13386 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13387 echo "$ac_t""Using posix ACLs" 1>&6
13388 cat >> confdefs.h <<\EOF
13389 #define HAVE_POSIX_ACLS 1
13392 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13393 echo "configure:13394: checking for acl_get_perm_np" >&5
13394 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13395 echo $ac_n "(cached) $ac_c" 1>&6
13396 else
13398 cat > conftest.$ac_ext <<EOF
13399 #line 13400 "configure"
13400 #include "confdefs.h"
13401 #include <sys/types.h>
13402 #include <sys/acl.h>
13403 int main() {
13404 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13405 ; return 0; }
13407 if { (eval echo configure:13408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13408 rm -rf conftest*
13409 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13410 else
13411 echo "configure: failed program was:" >&5
13412 cat conftest.$ac_ext >&5
13413 rm -rf conftest*
13414 samba_cv_HAVE_ACL_GET_PERM_NP=no
13416 rm -f conftest*
13419 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13420 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13421 cat >> confdefs.h <<\EOF
13422 #define HAVE_ACL_GET_PERM_NP 1
13428 esac
13431 echo "$ac_t""no" 1>&6
13432 cat >> confdefs.h <<\EOF
13433 #define HAVE_NO_ACLS 1
13437 esac
13438 else
13439 cat >> confdefs.h <<\EOF
13440 #define HAVE_NO_ACLS 1
13443 echo "$ac_t""no" 1>&6
13448 #################################################
13449 # check for the historical SAMBA installation
13451 if test "x$prefix" = xNONE -a "$sbindir" = "\${exec_prefix}/sbin"; then
13452 # Put all binaries under the /usr/local/samba/bin directory.
13453 sbindir="$bindir"
13456 #################################################
13457 # check for sendfile support
13459 echo $ac_n "checking whether to check for support sendfile""... $ac_c" 1>&6
13460 echo "configure:13461: checking whether to check for support sendfile" >&5
13461 # Check whether --with-sendfile-support or --without-sendfile-support was given.
13462 if test "${with_sendfile_support+set}" = set; then
13463 withval="$with_sendfile_support"
13464 case "$withval" in
13465 yes)
13467 echo "$ac_t""yes" 1>&6;
13469 case "$host_os" in
13470 *linux*)
13471 echo $ac_n "checking for linux sendfile64 support""... $ac_c" 1>&6
13472 echo "configure:13473: checking for linux sendfile64 support" >&5
13473 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
13474 echo $ac_n "(cached) $ac_c" 1>&6
13475 else
13477 cat > conftest.$ac_ext <<EOF
13478 #line 13479 "configure"
13479 #include "confdefs.h"
13480 #include <sys/sendfile.h>
13481 int main() {
13483 int tofd, fromfd;
13484 off64_t offset;
13485 size_t total;
13486 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
13488 ; return 0; }
13490 if { (eval echo configure:13491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13491 rm -rf conftest*
13492 samba_cv_HAVE_SENDFILE64=yes
13493 else
13494 echo "configure: failed program was:" >&5
13495 cat conftest.$ac_ext >&5
13496 rm -rf conftest*
13497 samba_cv_HAVE_SENDFILE64=no
13499 rm -f conftest*
13502 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
13504 echo $ac_n "checking for linux sendfile support""... $ac_c" 1>&6
13505 echo "configure:13506: checking for linux sendfile support" >&5
13506 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13507 echo $ac_n "(cached) $ac_c" 1>&6
13508 else
13510 cat > conftest.$ac_ext <<EOF
13511 #line 13512 "configure"
13512 #include "confdefs.h"
13513 #include <sys/sendfile.h>
13514 int main() {
13516 int tofd, fromfd;
13517 off_t offset;
13518 size_t total;
13519 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
13521 ; return 0; }
13523 if { (eval echo configure:13524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13524 rm -rf conftest*
13525 samba_cv_HAVE_SENDFILE=yes
13526 else
13527 echo "configure: failed program was:" >&5
13528 cat conftest.$ac_ext >&5
13529 rm -rf conftest*
13530 samba_cv_HAVE_SENDFILE=no
13532 rm -f conftest*
13535 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13537 # Try and cope with broken Linux sendfile....
13538 echo $ac_n "checking for broken linux sendfile support""... $ac_c" 1>&6
13539 echo "configure:13540: checking for broken linux sendfile support" >&5
13540 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_LINUX_SENDFILE'+set}'`\" = set"; then
13541 echo $ac_n "(cached) $ac_c" 1>&6
13542 else
13544 cat > conftest.$ac_ext <<EOF
13545 #line 13546 "configure"
13546 #include "confdefs.h"
13548 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
13549 #undef _FILE_OFFSET_BITS
13550 #endif
13551 #include <sys/sendfile.h>
13552 int main() {
13554 int tofd, fromfd;
13555 off_t offset;
13556 size_t total;
13557 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
13559 ; return 0; }
13561 if { (eval echo configure:13562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13562 rm -rf conftest*
13563 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
13564 else
13565 echo "configure: failed program was:" >&5
13566 cat conftest.$ac_ext >&5
13567 rm -rf conftest*
13568 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
13570 rm -f conftest*
13573 echo "$ac_t""$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" 1>&6
13575 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
13576 cat >> confdefs.h <<\EOF
13577 #define HAVE_SENDFILE64 1
13580 cat >> confdefs.h <<\EOF
13581 #define LINUX_SENDFILE_API 1
13584 cat >> confdefs.h <<\EOF
13585 #define WITH_SENDFILE 1
13588 elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
13589 cat >> confdefs.h <<\EOF
13590 #define HAVE_SENDFILE 1
13593 cat >> confdefs.h <<\EOF
13594 #define LINUX_SENDFILE_API 1
13597 cat >> confdefs.h <<\EOF
13598 #define WITH_SENDFILE 1
13601 elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
13602 cat >> confdefs.h <<\EOF
13603 #define LINUX_BROKEN_SENDFILE_API 1
13606 cat >> confdefs.h <<\EOF
13607 #define WITH_SENDFILE 1
13610 else
13611 echo "$ac_t""no" 1>&6;
13615 *freebsd*)
13616 echo $ac_n "checking for freebsd sendfile support""... $ac_c" 1>&6
13617 echo "configure:13618: checking for freebsd sendfile support" >&5
13618 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13619 echo $ac_n "(cached) $ac_c" 1>&6
13620 else
13622 cat > conftest.$ac_ext <<EOF
13623 #line 13624 "configure"
13624 #include "confdefs.h"
13626 #include <sys/types.h>
13627 #include <sys/socket.h>
13628 #include <sys/uio.h>
13629 int main() {
13631 #define NULL (void *)0
13632 int fromfd, tofd, ret, total;
13633 off_t offset, nwritten;
13634 struct sf_hdtr {
13635 struct iovec *headers;
13636 int hdr_cnt;
13637 struct iovec *trailers;
13638 int trl_cnt;
13639 } hdr;
13640 struct iovec hdtrl;
13641 hdr.headers = &hdtrl;
13642 hdr.hdr_cnt = 1;
13643 hdr.trailers = NULL;
13644 hdr.trl_cnt = 0;
13645 hdtrl.iov_base = NULL;
13646 hdtrl.iov_len = 0;
13647 ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
13649 ; return 0; }
13651 if { (eval echo configure:13652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13652 rm -rf conftest*
13653 samba_cv_HAVE_SENDFILE=yes
13654 else
13655 echo "configure: failed program was:" >&5
13656 cat conftest.$ac_ext >&5
13657 rm -rf conftest*
13658 samba_cv_HAVE_SENDFILE=no
13660 rm -f conftest*
13663 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13665 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
13666 cat >> confdefs.h <<\EOF
13667 #define HAVE_SENDFILE 1
13670 cat >> confdefs.h <<\EOF
13671 #define FREEBSD_SENDFILE_API 1
13674 cat >> confdefs.h <<\EOF
13675 #define WITH_SENDFILE 1
13678 else
13679 echo "$ac_t""no" 1>&6;
13683 *hpux*)
13684 echo $ac_n "checking for hpux sendfile64 support""... $ac_c" 1>&6
13685 echo "configure:13686: checking for hpux sendfile64 support" >&5
13686 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
13687 echo $ac_n "(cached) $ac_c" 1>&6
13688 else
13690 cat > conftest.$ac_ext <<EOF
13691 #line 13692 "configure"
13692 #include "confdefs.h"
13694 #include <sys/socket.h>
13695 #include <sys/uio.h>
13696 int main() {
13698 int fromfd, tofd;
13699 size_t total=0;
13700 struct iovec hdtrl[2];
13701 ssize_t nwritten;
13702 off64_t offset;
13704 hdtrl[0].iov_base = 0;
13705 hdtrl[0].iov_len = 0;
13707 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
13709 ; return 0; }
13711 if { (eval echo configure:13712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13712 rm -rf conftest*
13713 samba_cv_HAVE_SENDFILE64=yes
13714 else
13715 echo "configure: failed program was:" >&5
13716 cat conftest.$ac_ext >&5
13717 rm -rf conftest*
13718 samba_cv_HAVE_SENDFILE64=no
13720 rm -f conftest*
13723 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
13724 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
13725 cat >> confdefs.h <<\EOF
13726 #define HAVE_SENDFILE64 1
13729 cat >> confdefs.h <<\EOF
13730 #define HPUX_SENDFILE_API 1
13733 cat >> confdefs.h <<\EOF
13734 #define WITH_SENDFILE 1
13737 else
13738 echo "$ac_t""no" 1>&6;
13741 echo $ac_n "checking for hpux sendfile support""... $ac_c" 1>&6
13742 echo "configure:13743: checking for hpux sendfile support" >&5
13743 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13744 echo $ac_n "(cached) $ac_c" 1>&6
13745 else
13747 cat > conftest.$ac_ext <<EOF
13748 #line 13749 "configure"
13749 #include "confdefs.h"
13751 #include <sys/socket.h>
13752 #include <sys/uio.h>
13753 int main() {
13755 int fromfd, tofd;
13756 size_t total=0;
13757 struct iovec hdtrl[2];
13758 ssize_t nwritten;
13759 off_t offset;
13761 hdtrl[0].iov_base = 0;
13762 hdtrl[0].iov_len = 0;
13764 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
13766 ; return 0; }
13768 if { (eval echo configure:13769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13769 rm -rf conftest*
13770 samba_cv_HAVE_SENDFILE=yes
13771 else
13772 echo "configure: failed program was:" >&5
13773 cat conftest.$ac_ext >&5
13774 rm -rf conftest*
13775 samba_cv_HAVE_SENDFILE=no
13777 rm -f conftest*
13780 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13781 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
13782 cat >> confdefs.h <<\EOF
13783 #define HAVE_SENDFILE 1
13786 cat >> confdefs.h <<\EOF
13787 #define HPUX_SENDFILE_API 1
13790 cat >> confdefs.h <<\EOF
13791 #define WITH_SENDFILE 1
13794 else
13795 echo "$ac_t""no" 1>&6;
13799 *solaris*)
13800 LIBS="$LIBS -lsendfile"
13801 echo $ac_n "checking for solaris sendfilev64 support""... $ac_c" 1>&6
13802 echo "configure:13803: checking for solaris sendfilev64 support" >&5
13803 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV64'+set}'`\" = set"; then
13804 echo $ac_n "(cached) $ac_c" 1>&6
13805 else
13807 cat > conftest.$ac_ext <<EOF
13808 #line 13809 "configure"
13809 #include "confdefs.h"
13811 #include <sys/sendfile.h>
13812 int main() {
13814 int sfvcnt;
13815 size_t xferred;
13816 struct sendfilevec vec[2];
13817 ssize_t nwritten;
13818 int tofd;
13820 sfvcnt = 2;
13822 vec[0].sfv_fd = SFV_FD_SELF;
13823 vec[0].sfv_flag = 0;
13824 vec[0].sfv_off = 0;
13825 vec[0].sfv_len = 0;
13827 vec[1].sfv_fd = 0;
13828 vec[1].sfv_flag = 0;
13829 vec[1].sfv_off = 0;
13830 vec[1].sfv_len = 0;
13831 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
13833 ; return 0; }
13835 if { (eval echo configure:13836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13836 rm -rf conftest*
13837 samba_cv_HAVE_SENDFILEV64=yes
13838 else
13839 echo "configure: failed program was:" >&5
13840 cat conftest.$ac_ext >&5
13841 rm -rf conftest*
13842 samba_cv_HAVE_SENDFILEV64=no
13844 rm -f conftest*
13847 echo "$ac_t""$samba_cv_HAVE_SENDFILEV64" 1>&6
13849 if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
13850 cat >> confdefs.h <<\EOF
13851 #define HAVE_SENDFILEV64 1
13854 cat >> confdefs.h <<\EOF
13855 #define SOLARIS_SENDFILE_API 1
13858 cat >> confdefs.h <<\EOF
13859 #define WITH_SENDFILE 1
13862 else
13863 echo "$ac_t""no" 1>&6;
13866 echo $ac_n "checking for solaris sendfilev support""... $ac_c" 1>&6
13867 echo "configure:13868: checking for solaris sendfilev support" >&5
13868 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV'+set}'`\" = set"; then
13869 echo $ac_n "(cached) $ac_c" 1>&6
13870 else
13872 cat > conftest.$ac_ext <<EOF
13873 #line 13874 "configure"
13874 #include "confdefs.h"
13876 #include <sys/sendfile.h>
13877 int main() {
13879 int sfvcnt;
13880 size_t xferred;
13881 struct sendfilevec vec[2];
13882 ssize_t nwritten;
13883 int tofd;
13885 sfvcnt = 2;
13887 vec[0].sfv_fd = SFV_FD_SELF;
13888 vec[0].sfv_flag = 0;
13889 vec[0].sfv_off = 0;
13890 vec[0].sfv_len = 0;
13892 vec[1].sfv_fd = 0;
13893 vec[1].sfv_flag = 0;
13894 vec[1].sfv_off = 0;
13895 vec[1].sfv_len = 0;
13896 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
13898 ; return 0; }
13900 if { (eval echo configure:13901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13901 rm -rf conftest*
13902 samba_cv_HAVE_SENDFILEV=yes
13903 else
13904 echo "configure: failed program was:" >&5
13905 cat conftest.$ac_ext >&5
13906 rm -rf conftest*
13907 samba_cv_HAVE_SENDFILEV=no
13909 rm -f conftest*
13912 echo "$ac_t""$samba_cv_HAVE_SENDFILEV" 1>&6
13914 if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
13915 cat >> confdefs.h <<\EOF
13916 #define HAVE_SENDFILEV 1
13919 cat >> confdefs.h <<\EOF
13920 #define SOLARIS_SENDFILE_API 1
13923 cat >> confdefs.h <<\EOF
13924 #define WITH_SENDFILE 1
13927 else
13928 echo "$ac_t""no" 1>&6;
13934 esac
13937 echo "$ac_t""no" 1>&6
13939 esac
13940 else
13941 echo "$ac_t""no" 1>&6
13946 #################################################
13947 # Check whether winbind is supported on this platform. If so we need to
13948 # build and install client programs (WINBIND_TARGETS), sbin programs
13949 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13951 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13952 echo "configure:13953: checking whether to build winbind" >&5
13954 # Initially, the value of $host_os decides whether winbind is supported
13956 case "$host_os" in
13957 *linux*|*irix*)
13958 HAVE_WINBIND=yes
13960 *solaris*)
13961 HAVE_WINBIND=yes
13962 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13963 WINBIND_NSS_EXTRA_LIBS="-lsocket"
13965 *hpux11*)
13966 HAVE_WINBIND=yes
13967 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13969 *aix4*)
13970 HAVE_WINBIND=yes
13973 HAVE_WINBIND=no
13974 winbind_no_reason=", unsupported on $host_os"
13976 esac
13978 # Check the setting of --with-winbindd
13980 # Check whether --with-winbind or --without-winbind was given.
13981 if test "${with_winbind+set}" = set; then
13982 withval="$with_winbind"
13984 case "$withval" in
13985 yes)
13986 HAVE_WINBIND=yes
13989 HAVE_WINBIND=no
13990 winbind_reason=""
13992 esac
13996 # We need unix domain sockets for winbind
13998 if test x"$HAVE_WINBIND" = x"yes"; then
13999 if test x"$samba_cv_unixsocket" = x"no"; then
14000 winbind_no_reason=", no unix domain socket support on $host_os"
14001 HAVE_WINBIND=no
14005 # Display test results
14007 if test x"$HAVE_WINBIND" = x"yes"; then
14009 echo "$ac_t""yes" 1>&6
14011 echo $ac_n "checking whether to enable winbind auth challenge/response code""... $ac_c" 1>&6
14012 echo "configure:14013: checking whether to enable winbind auth challenge/response code" >&5
14013 # Check whether --with-winbind-auth-challenge or --without-winbind-auth-challenge was given.
14014 if test "${with_winbind_auth_challenge+set}" = set; then
14015 withval="$with_winbind_auth_challenge"
14017 case "$withval" in
14018 yes)
14019 cat >> confdefs.h <<\EOF
14020 #define WITH_WINBIND_AUTH_CRAP 1
14023 echo "$ac_t""yes" 1>&6
14026 echo "$ac_t""no" 1>&6
14028 esac
14029 else
14030 echo "$ac_t""no" 1>&6
14035 # Check for FreeBSD problem with getgroups
14037 WINBIND_TARGETS="bin/wbinfo"
14038 WINBIND_STARGETS="bin/winbindd"
14039 case "$host_os" in
14040 *irix*)
14041 WINBIND_LTARGETS="nsswitch/libns_winbind.so"
14044 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
14046 esac
14049 case "$with_pam" in
14050 yes)
14051 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
14053 esac
14055 # Check for Horrible winbindd ldap hack.
14057 echo $ac_n "checking whether to enable winbind ldap hack""... $ac_c" 1>&6
14058 echo "configure:14059: checking whether to enable winbind ldap hack" >&5
14059 # Check whether --with-winbind-ldap-hack or --without-winbind-ldap-hack was given.
14060 if test "${with_winbind_ldap_hack+set}" = set; then
14061 withval="$with_winbind_ldap_hack"
14063 case "$withval" in
14064 yes)
14065 cat >> confdefs.h <<\EOF
14066 #define WITH_HORRIBLE_LDAP_NATIVE_MODE_HACK 1
14069 LIBS="$LIBS -lldap";
14070 echo "$ac_t""yes" 1>&6
14073 echo "$ac_t""no" 1>&6
14075 esac
14076 else
14077 echo "$ac_t""no" 1>&6
14082 else
14083 echo "$ac_t""no$winbind_no_reason" 1>&6
14085 WINBIND_TARGETS=""
14086 WINBIND_STARGETS=""
14087 WINBIND_LTARGETS=""
14088 WINBIND_PAM_TARGETS=""
14092 # Check for FreeBSD problem with getgroups
14093 # It returns EGID too many times in the list of groups
14094 # and causes a security problem
14095 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
14096 echo "configure:14097: checking whether or not getgroups returns EGID too many times" >&5
14097 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
14098 echo $ac_n "(cached) $ac_c" 1>&6
14099 else
14100 if test "$cross_compiling" = yes; then
14101 samba_cv_have_getgroups_too_many_egids=cross
14102 else
14103 cat > conftest.$ac_ext <<EOF
14104 #line 14105 "configure"
14105 #include "confdefs.h"
14107 #include <sys/types.h>
14108 #include <stdio.h>
14110 int main(int argc, char *argv[])
14112 gid_t groups[10];
14113 int n = 10;
14115 n = getgroups(n, &groups);
14116 /* Could actually pass back the number of EGIDs there ... */
14117 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
14120 if { (eval echo configure:14121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14121 then
14122 samba_cv_have_getgroups_too_many_egids=no
14123 else
14124 echo "configure: failed program was:" >&5
14125 cat conftest.$ac_ext >&5
14126 rm -fr conftest*
14127 samba_cv_have_getgroups_too_many_egids=yes
14129 rm -fr conftest*
14134 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
14135 if test x"$samba_cv_have_getgroups_too_many_egids" = x"yes"; then
14136 cat >> confdefs.h <<\EOF
14137 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
14142 # Substitution time!
14151 # Solaris has some extra fields in struct passwd that need to be
14152 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
14153 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
14154 # this.
14156 #AC_CHECK_MEMBER(struct passwd.pw_comment,
14157 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
14158 # [#include <pwd.h>])
14160 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
14161 echo "configure:14162: checking whether struct passwd has pw_comment" >&5
14162 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
14163 echo $ac_n "(cached) $ac_c" 1>&6
14164 else
14166 cat > conftest.$ac_ext <<EOF
14167 #line 14168 "configure"
14168 #include "confdefs.h"
14169 #include <pwd.h>
14170 int main() {
14171 struct passwd p; p.pw_comment;
14172 ; return 0; }
14174 if { (eval echo configure:14175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14175 rm -rf conftest*
14176 samba_cv_passwd_pw_comment=yes
14177 else
14178 echo "configure: failed program was:" >&5
14179 cat conftest.$ac_ext >&5
14180 rm -rf conftest*
14181 samba_cv_passwd_pw_comment=no
14183 rm -f conftest*
14186 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
14187 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
14188 cat >> confdefs.h <<\EOF
14189 #define HAVE_PASSWD_PW_COMMENT 1
14194 #AC_CHECK_MEMBER(struct passwd.pw_age,
14195 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
14196 # [#include <pwd.h>])
14198 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
14199 echo "configure:14200: checking whether struct passwd has pw_age" >&5
14200 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
14201 echo $ac_n "(cached) $ac_c" 1>&6
14202 else
14204 cat > conftest.$ac_ext <<EOF
14205 #line 14206 "configure"
14206 #include "confdefs.h"
14207 #include <pwd.h>
14208 int main() {
14209 struct passwd p; p.pw_age;
14210 ; return 0; }
14212 if { (eval echo configure:14213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14213 rm -rf conftest*
14214 samba_cv_passwd_pw_age=yes
14215 else
14216 echo "configure: failed program was:" >&5
14217 cat conftest.$ac_ext >&5
14218 rm -rf conftest*
14219 samba_cv_passwd_pw_age=no
14221 rm -f conftest*
14224 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
14225 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
14226 cat >> confdefs.h <<\EOF
14227 #define HAVE_PASSWD_PW_AGE 1
14232 #################################################
14233 # Check to see if we should use the included popt
14235 # Check whether --with-included-popt or --without-included-popt was given.
14236 if test "${with_included_popt+set}" = set; then
14237 withval="$with_included_popt"
14239 case "$withval" in
14240 yes)
14241 INCLUDED_POPT=yes
14244 INCLUDED_POPT=no
14246 esac
14249 if test x"$INCLUDED_POPT" != x"yes"; then
14250 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
14251 echo "configure:14252: checking for poptGetContext in -lpopt" >&5
14252 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
14253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14254 echo $ac_n "(cached) $ac_c" 1>&6
14255 else
14256 ac_save_LIBS="$LIBS"
14257 LIBS="-lpopt $LIBS"
14258 cat > conftest.$ac_ext <<EOF
14259 #line 14260 "configure"
14260 #include "confdefs.h"
14261 /* Override any gcc2 internal prototype to avoid an error. */
14262 /* We use char because int might match the return type of a gcc2
14263 builtin and then its argument prototype would still apply. */
14264 char poptGetContext();
14266 int main() {
14267 poptGetContext()
14268 ; return 0; }
14270 if { (eval echo configure:14271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14271 rm -rf conftest*
14272 eval "ac_cv_lib_$ac_lib_var=yes"
14273 else
14274 echo "configure: failed program was:" >&5
14275 cat conftest.$ac_ext >&5
14276 rm -rf conftest*
14277 eval "ac_cv_lib_$ac_lib_var=no"
14279 rm -f conftest*
14280 LIBS="$ac_save_LIBS"
14283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14284 echo "$ac_t""yes" 1>&6
14285 INCLUDED_POPT=no
14286 else
14287 echo "$ac_t""no" 1>&6
14288 INCLUDED_POPT=yes
14293 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
14294 echo "configure:14295: checking whether to use included popt" >&5
14295 if test x"$INCLUDED_POPT" = x"yes"; then
14296 echo "$ac_t""$srcdir/popt" 1>&6
14297 BUILD_POPT='$(POPT_OBJS)'
14298 FLAGS1="-I$srcdir/popt"
14299 else
14300 echo "$ac_t""no" 1>&6
14301 LIBS="$LIBS -lpopt"
14306 #################################################
14307 # final configure stuff
14308 echo $ac_n "checking configure summary""... $ac_c" 1>&6
14309 echo "configure:14310: checking configure summary" >&5
14310 if test "$cross_compiling" = yes; then
14311 echo "configure: warning: cannot run when cross-compiling" 1>&2
14312 else
14313 cat > conftest.$ac_ext <<EOF
14314 #line 14315 "configure"
14315 #include "confdefs.h"
14316 #include "${srcdir-.}/tests/summary.c"
14318 if { (eval echo configure:14319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14319 then
14320 echo "$ac_t""yes" 1>&6
14321 else
14322 echo "configure: failed program was:" >&5
14323 cat conftest.$ac_ext >&5
14324 rm -fr conftest*
14325 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
14327 rm -fr conftest*
14331 builddir=`pwd`
14334 trap '' 1 2 15
14335 cat > confcache <<\EOF
14336 # This file is a shell script that caches the results of configure
14337 # tests run on this system so they can be shared between configure
14338 # scripts and configure runs. It is not useful on other systems.
14339 # If it contains results you don't want to keep, you may remove or edit it.
14341 # By default, configure uses ./config.cache as the cache file,
14342 # creating it if it does not exist already. You can give configure
14343 # the --cache-file=FILE option to use a different cache file; that is
14344 # what configure does when it calls configure scripts in
14345 # subdirectories, so they share the cache.
14346 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14347 # config.status only pays attention to the cache file if you give it the
14348 # --recheck option to rerun configure.
14351 # The following way of writing the cache mishandles newlines in values,
14352 # but we know of no workaround that is simple, portable, and efficient.
14353 # So, don't put newlines in cache variables' values.
14354 # Ultrix sh set writes to stderr and can't be redirected directly,
14355 # and sets the high bit in the cache file unless we assign to the vars.
14356 (set) 2>&1 |
14357 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14358 *ac_space=\ *)
14359 # `set' does not quote correctly, so add quotes (double-quote substitution
14360 # turns \\\\ into \\, and sed turns \\ into \).
14361 sed -n \
14362 -e "s/'/'\\\\''/g" \
14363 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14366 # `set' quotes correctly as required by POSIX, so do not add quotes.
14367 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14369 esac >> confcache
14370 if cmp -s $cache_file confcache; then
14372 else
14373 if test -w $cache_file; then
14374 echo "updating cache $cache_file"
14375 cat confcache > $cache_file
14376 else
14377 echo "not updating unwritable cache $cache_file"
14380 rm -f confcache
14382 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14384 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14385 # Let make expand exec_prefix.
14386 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14388 # Any assignment to VPATH causes Sun make to only execute
14389 # the first set of double-colon rules, so remove it if not needed.
14390 # If there is a colon in the path, we need to keep it.
14391 if test "x$srcdir" = x.; then
14392 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14395 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14397 DEFS=-DHAVE_CONFIG_H
14399 # Without the "./", some shells look in PATH for config.status.
14400 : ${CONFIG_STATUS=./config.status}
14402 echo creating $CONFIG_STATUS
14403 rm -f $CONFIG_STATUS
14404 cat > $CONFIG_STATUS <<EOF
14405 #! /bin/sh
14406 # Generated automatically by configure.
14407 # Run this file to recreate the current configuration.
14408 # This directory was configured as follows,
14409 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14411 # $0 $ac_configure_args
14413 # Compiler output produced by configure, useful for debugging
14414 # configure, is in ./config.log if it exists.
14416 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14417 for ac_option
14419 case "\$ac_option" in
14420 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14421 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14422 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14423 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14424 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14425 exit 0 ;;
14426 -help | --help | --hel | --he | --h)
14427 echo "\$ac_cs_usage"; exit 0 ;;
14428 *) echo "\$ac_cs_usage"; exit 1 ;;
14429 esac
14430 done
14432 ac_given_srcdir=$srcdir
14433 ac_given_INSTALL="$INSTALL"
14435 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14437 cat >> $CONFIG_STATUS <<EOF
14439 # Protect against being on the right side of a sed subst in config.status.
14440 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14441 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14442 $ac_vpsub
14443 $extrasub
14444 s%@SHELL@%$SHELL%g
14445 s%@CFLAGS@%$CFLAGS%g
14446 s%@CPPFLAGS@%$CPPFLAGS%g
14447 s%@CXXFLAGS@%$CXXFLAGS%g
14448 s%@FFLAGS@%$FFLAGS%g
14449 s%@DEFS@%$DEFS%g
14450 s%@LDFLAGS@%$LDFLAGS%g
14451 s%@LIBS@%$LIBS%g
14452 s%@exec_prefix@%$exec_prefix%g
14453 s%@prefix@%$prefix%g
14454 s%@program_transform_name@%$program_transform_name%g
14455 s%@bindir@%$bindir%g
14456 s%@sbindir@%$sbindir%g
14457 s%@libexecdir@%$libexecdir%g
14458 s%@datadir@%$datadir%g
14459 s%@sysconfdir@%$sysconfdir%g
14460 s%@sharedstatedir@%$sharedstatedir%g
14461 s%@localstatedir@%$localstatedir%g
14462 s%@libdir@%$libdir%g
14463 s%@includedir@%$includedir%g
14464 s%@oldincludedir@%$oldincludedir%g
14465 s%@infodir@%$infodir%g
14466 s%@mandir@%$mandir%g
14467 s%@codepagedir@%$codepagedir%g
14468 s%@configdir@%$configdir%g
14469 s%@lockdir@%$lockdir%g
14470 s%@piddir@%$piddir%g
14471 s%@logfilebase@%$logfilebase%g
14472 s%@privatedir@%$privatedir%g
14473 s%@swatdir@%$swatdir%g
14474 s%@RUNPROG@%$RUNPROG%g
14475 s%@MPROGS@%$MPROGS%g
14476 s%@LDSHFLAGS@%$LDSHFLAGS%g
14477 s%@SONAMEFLAG@%$SONAMEFLAG%g
14478 s%@SHLD@%$SHLD%g
14479 s%@HOST_OS@%$HOST_OS%g
14480 s%@PAM_MOD@%$PAM_MOD%g
14481 s%@PDBEDIT@%$PDBEDIT%g
14482 s%@WRAP@%$WRAP%g
14483 s%@WRAP32@%$WRAP32%g
14484 s%@WRAPPROG@%$WRAPPROG%g
14485 s%@PICFLAG@%$PICFLAG%g
14486 s%@PICSUFFIX@%$PICSUFFIX%g
14487 s%@SHLIBEXT@%$SHLIBEXT%g
14488 s%@BLDSHARED@%$BLDSHARED%g
14489 s%@INSTALLCLIENTCMD_SH@%$INSTALLCLIENTCMD_SH%g
14490 s%@INSTALLCLIENTCMD_A@%$INSTALLCLIENTCMD_A%g
14491 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
14492 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
14493 s%@CC@%$CC%g
14494 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14495 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14496 s%@INSTALL_DATA@%$INSTALL_DATA%g
14497 s%@AWK@%$AWK%g
14498 s%@passwd_program@%$passwd_program%g
14499 s%@BROKEN_CC@%$BROKEN_CC%g
14500 s%@host@%$host%g
14501 s%@host_alias@%$host_alias%g
14502 s%@host_cpu@%$host_cpu%g
14503 s%@host_vendor@%$host_vendor%g
14504 s%@host_os@%$host_os%g
14505 s%@target@%$target%g
14506 s%@target_alias@%$target_alias%g
14507 s%@target_cpu@%$target_cpu%g
14508 s%@target_vendor@%$target_vendor%g
14509 s%@target_os@%$target_os%g
14510 s%@build@%$build%g
14511 s%@build_alias@%$build_alias%g
14512 s%@build_cpu@%$build_cpu%g
14513 s%@build_vendor@%$build_vendor%g
14514 s%@build_os@%$build_os%g
14515 s%@CPP@%$CPP%g
14516 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
14517 s%@LIBOBJS@%$LIBOBJS%g
14518 s%@TERMLIBS@%$TERMLIBS%g
14519 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
14520 s%@ROFF@%$ROFF%g
14521 s%@DYNEXP@%$DYNEXP%g
14522 s%@LDAPLIBS@%$LDAPLIBS%g
14523 s%@QUOTAOBJS@%$QUOTAOBJS%g
14524 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
14525 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
14526 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
14527 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
14528 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
14529 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
14530 s%@BUILD_POPT@%$BUILD_POPT%g
14531 s%@FLAGS1@%$FLAGS1%g
14532 s%@builddir@%$builddir%g
14534 CEOF
14537 cat >> $CONFIG_STATUS <<\EOF
14539 # Split the substitutions into bite-sized pieces for seds with
14540 # small command number limits, like on Digital OSF/1 and HP-UX.
14541 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14542 ac_file=1 # Number of current file.
14543 ac_beg=1 # First line for current file.
14544 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14545 ac_more_lines=:
14546 ac_sed_cmds=""
14547 while $ac_more_lines; do
14548 if test $ac_beg -gt 1; then
14549 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14550 else
14551 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14553 if test ! -s conftest.s$ac_file; then
14554 ac_more_lines=false
14555 rm -f conftest.s$ac_file
14556 else
14557 if test -z "$ac_sed_cmds"; then
14558 ac_sed_cmds="sed -f conftest.s$ac_file"
14559 else
14560 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14562 ac_file=`expr $ac_file + 1`
14563 ac_beg=$ac_end
14564 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14566 done
14567 if test -z "$ac_sed_cmds"; then
14568 ac_sed_cmds=cat
14572 cat >> $CONFIG_STATUS <<EOF
14574 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
14576 cat >> $CONFIG_STATUS <<\EOF
14577 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14579 case "$ac_file" in
14580 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14581 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14582 *) ac_file_in="${ac_file}.in" ;;
14583 esac
14585 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14587 # Remove last slash and all that follows it. Not all systems have dirname.
14588 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14589 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14590 # The file is in a subdirectory.
14591 test ! -d "$ac_dir" && mkdir "$ac_dir"
14592 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14593 # A "../" for each directory in $ac_dir_suffix.
14594 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14595 else
14596 ac_dir_suffix= ac_dots=
14599 case "$ac_given_srcdir" in
14600 .) srcdir=.
14601 if test -z "$ac_dots"; then top_srcdir=.
14602 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14603 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14604 *) # Relative path.
14605 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14606 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14607 esac
14609 case "$ac_given_INSTALL" in
14610 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14611 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14612 esac
14614 echo creating "$ac_file"
14615 rm -f "$ac_file"
14616 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14617 case "$ac_file" in
14618 *Makefile*) ac_comsub="1i\\
14619 # $configure_input" ;;
14620 *) ac_comsub= ;;
14621 esac
14623 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14624 sed -e "$ac_comsub
14625 s%@configure_input@%$configure_input%g
14626 s%@srcdir@%$srcdir%g
14627 s%@top_srcdir@%$top_srcdir%g
14628 s%@INSTALL@%$INSTALL%g
14629 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14630 fi; done
14631 rm -f conftest.s*
14633 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14634 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14636 # ac_d sets the value in "#define NAME VALUE" lines.
14637 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14638 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14639 ac_dC='\3'
14640 ac_dD='%g'
14641 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14642 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14643 ac_uB='\([ ]\)%\1#\2define\3'
14644 ac_uC=' '
14645 ac_uD='\4%g'
14646 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14647 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14648 ac_eB='$%\1#\2define\3'
14649 ac_eC=' '
14650 ac_eD='%g'
14652 if test "${CONFIG_HEADERS+set}" != set; then
14654 cat >> $CONFIG_STATUS <<EOF
14655 CONFIG_HEADERS="include/config.h"
14657 cat >> $CONFIG_STATUS <<\EOF
14659 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14660 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14661 case "$ac_file" in
14662 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14663 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14664 *) ac_file_in="${ac_file}.in" ;;
14665 esac
14667 echo creating $ac_file
14669 rm -f conftest.frag conftest.in conftest.out
14670 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14671 cat $ac_file_inputs > conftest.in
14675 # Transform confdefs.h into a sed script conftest.vals that substitutes
14676 # the proper values into config.h.in to produce config.h. And first:
14677 # Protect against being on the right side of a sed subst in config.status.
14678 # Protect against being in an unquoted here document in config.status.
14679 rm -f conftest.vals
14680 cat > conftest.hdr <<\EOF
14681 s/[\\&%]/\\&/g
14682 s%[\\$`]%\\&%g
14683 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14684 s%ac_d%ac_u%gp
14685 s%ac_u%ac_e%gp
14687 sed -n -f conftest.hdr confdefs.h > conftest.vals
14688 rm -f conftest.hdr
14690 # This sed command replaces #undef with comments. This is necessary, for
14691 # example, in the case of _POSIX_SOURCE, which is predefined and required
14692 # on some systems where configure will not decide to define it.
14693 cat >> conftest.vals <<\EOF
14694 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14697 # Break up conftest.vals because some shells have a limit on
14698 # the size of here documents, and old seds have small limits too.
14700 rm -f conftest.tail
14701 while :
14703 ac_lines=`grep -c . conftest.vals`
14704 # grep -c gives empty output for an empty file on some AIX systems.
14705 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14706 # Write a limited-size here document to conftest.frag.
14707 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14708 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14709 echo 'CEOF
14710 sed -f conftest.frag conftest.in > conftest.out
14711 rm -f conftest.in
14712 mv conftest.out conftest.in
14713 ' >> $CONFIG_STATUS
14714 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14715 rm -f conftest.vals
14716 mv conftest.tail conftest.vals
14717 done
14718 rm -f conftest.vals
14720 cat >> $CONFIG_STATUS <<\EOF
14721 rm -f conftest.frag conftest.h
14722 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14723 cat conftest.in >> conftest.h
14724 rm -f conftest.in
14725 if cmp -s $ac_file conftest.h 2>/dev/null; then
14726 echo "$ac_file is unchanged"
14727 rm -f conftest.h
14728 else
14729 # Remove last slash and all that follows it. Not all systems have dirname.
14730 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14731 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14732 # The file is in a subdirectory.
14733 test ! -d "$ac_dir" && mkdir "$ac_dir"
14735 rm -f $ac_file
14736 mv conftest.h $ac_file
14738 fi; done
14741 cat >> $CONFIG_STATUS <<EOF
14744 cat >> $CONFIG_STATUS <<\EOF
14746 exit 0
14748 chmod +x $CONFIG_STATUS
14749 rm -fr confdefs* $ac_clean_files
14750 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1