added one more comment
[Samba.git] / source / configure
blobe139d52cab8501442df85ff7901b6763efa94184
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
794 # compile with optimization and without debugging by default
795 CFLAGS="-O ${CFLAGS}"
797 # Check whether --enable-debug or --disable-debug was given.
798 if test "${enable_debug+set}" = set; then
799 enableval="$enable_debug"
800 if eval "test x$enable_debug = xyes"; then
801 CFLAGS="${CFLAGS} -g"
808 # Extract the first word of "gcc", so it can be a program name with args.
809 set dummy gcc; ac_word=$2
810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
811 echo "configure:812: checking for $ac_word" >&5
812 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
814 else
815 if test -n "$CC"; then
816 ac_cv_prog_CC="$CC" # Let the user override the test.
817 else
818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
819 ac_dummy="$PATH"
820 for ac_dir in $ac_dummy; do
821 test -z "$ac_dir" && ac_dir=.
822 if test -f $ac_dir/$ac_word; then
823 ac_cv_prog_CC="gcc"
824 break
826 done
827 IFS="$ac_save_ifs"
830 CC="$ac_cv_prog_CC"
831 if test -n "$CC"; then
832 echo "$ac_t""$CC" 1>&6
833 else
834 echo "$ac_t""no" 1>&6
837 if test -z "$CC"; then
838 # Extract the first word of "cc", so it can be a program name with args.
839 set dummy cc; ac_word=$2
840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
841 echo "configure:842: checking for $ac_word" >&5
842 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
844 else
845 if test -n "$CC"; then
846 ac_cv_prog_CC="$CC" # Let the user override the test.
847 else
848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
849 ac_prog_rejected=no
850 ac_dummy="$PATH"
851 for ac_dir in $ac_dummy; do
852 test -z "$ac_dir" && ac_dir=.
853 if test -f $ac_dir/$ac_word; then
854 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
855 ac_prog_rejected=yes
856 continue
858 ac_cv_prog_CC="cc"
859 break
861 done
862 IFS="$ac_save_ifs"
863 if test $ac_prog_rejected = yes; then
864 # We found a bogon in the path, so make sure we never use it.
865 set dummy $ac_cv_prog_CC
866 shift
867 if test $# -gt 0; then
868 # We chose a different compiler from the bogus one.
869 # However, it has the same basename, so the bogon will be chosen
870 # first if we set CC to just the basename; use the full file name.
871 shift
872 set dummy "$ac_dir/$ac_word" "$@"
873 shift
874 ac_cv_prog_CC="$@"
879 CC="$ac_cv_prog_CC"
880 if test -n "$CC"; then
881 echo "$ac_t""$CC" 1>&6
882 else
883 echo "$ac_t""no" 1>&6
886 if test -z "$CC"; then
887 case "`uname -s`" in
888 *win32* | *WIN32*)
889 # Extract the first word of "cl", so it can be a program name with args.
890 set dummy cl; ac_word=$2
891 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
892 echo "configure:893: checking for $ac_word" >&5
893 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
894 echo $ac_n "(cached) $ac_c" 1>&6
895 else
896 if test -n "$CC"; then
897 ac_cv_prog_CC="$CC" # Let the user override the test.
898 else
899 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
900 ac_dummy="$PATH"
901 for ac_dir in $ac_dummy; do
902 test -z "$ac_dir" && ac_dir=.
903 if test -f $ac_dir/$ac_word; then
904 ac_cv_prog_CC="cl"
905 break
907 done
908 IFS="$ac_save_ifs"
911 CC="$ac_cv_prog_CC"
912 if test -n "$CC"; then
913 echo "$ac_t""$CC" 1>&6
914 else
915 echo "$ac_t""no" 1>&6
918 esac
920 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
923 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
924 echo "configure:925: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
926 ac_ext=c
927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
928 ac_cpp='$CPP $CPPFLAGS'
929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
931 cross_compiling=$ac_cv_prog_cc_cross
933 cat > conftest.$ac_ext << EOF
935 #line 936 "configure"
936 #include "confdefs.h"
938 main(){return(0);}
940 if { (eval echo configure:941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
941 ac_cv_prog_cc_works=yes
942 # If we can't run a trivial program, we are probably using a cross compiler.
943 if (./conftest; exit) 2>/dev/null; then
944 ac_cv_prog_cc_cross=no
945 else
946 ac_cv_prog_cc_cross=yes
948 else
949 echo "configure: failed program was:" >&5
950 cat conftest.$ac_ext >&5
951 ac_cv_prog_cc_works=no
953 rm -fr conftest*
954 ac_ext=c
955 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
956 ac_cpp='$CPP $CPPFLAGS'
957 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
958 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
959 cross_compiling=$ac_cv_prog_cc_cross
961 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
962 if test $ac_cv_prog_cc_works = no; then
963 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
965 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
966 echo "configure:967: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
967 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
968 cross_compiling=$ac_cv_prog_cc_cross
970 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
971 echo "configure:972: checking whether we are using GNU C" >&5
972 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
974 else
975 cat > conftest.c <<EOF
976 #ifdef __GNUC__
977 yes;
978 #endif
980 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
981 ac_cv_prog_gcc=yes
982 else
983 ac_cv_prog_gcc=no
987 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
989 if test $ac_cv_prog_gcc = yes; then
990 GCC=yes
991 else
992 GCC=
995 ac_test_CFLAGS="${CFLAGS+set}"
996 ac_save_CFLAGS="$CFLAGS"
997 CFLAGS=
998 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
999 echo "configure:1000: checking whether ${CC-cc} accepts -g" >&5
1000 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1002 else
1003 echo 'void f(){}' > conftest.c
1004 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1005 ac_cv_prog_cc_g=yes
1006 else
1007 ac_cv_prog_cc_g=no
1009 rm -f conftest*
1013 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1014 if test "$ac_test_CFLAGS" = set; then
1015 CFLAGS="$ac_save_CFLAGS"
1016 elif test $ac_cv_prog_cc_g = yes; then
1017 if test "$GCC" = yes; then
1018 CFLAGS="-g -O2"
1019 else
1020 CFLAGS="-g"
1022 else
1023 if test "$GCC" = yes; then
1024 CFLAGS="-O2"
1025 else
1026 CFLAGS=
1030 ac_aux_dir=
1031 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1032 if test -f $ac_dir/install-sh; then
1033 ac_aux_dir=$ac_dir
1034 ac_install_sh="$ac_aux_dir/install-sh -c"
1035 break
1036 elif test -f $ac_dir/install.sh; then
1037 ac_aux_dir=$ac_dir
1038 ac_install_sh="$ac_aux_dir/install.sh -c"
1039 break
1041 done
1042 if test -z "$ac_aux_dir"; then
1043 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1045 ac_config_guess=$ac_aux_dir/config.guess
1046 ac_config_sub=$ac_aux_dir/config.sub
1047 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1049 # Find a good install program. We prefer a C program (faster),
1050 # so one script is as good as another. But avoid the broken or
1051 # incompatible versions:
1052 # SysV /etc/install, /usr/sbin/install
1053 # SunOS /usr/etc/install
1054 # IRIX /sbin/install
1055 # AIX /bin/install
1056 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1057 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1058 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1059 # ./install, which can be erroneously created by make from ./install.sh.
1060 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1061 echo "configure:1062: checking for a BSD compatible install" >&5
1062 if test -z "$INSTALL"; then
1063 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1064 echo $ac_n "(cached) $ac_c" 1>&6
1065 else
1066 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1067 for ac_dir in $PATH; do
1068 # Account for people who put trailing slashes in PATH elements.
1069 case "$ac_dir/" in
1070 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1072 # OSF1 and SCO ODT 3.0 have their own names for install.
1073 # Don't use installbsd from OSF since it installs stuff as root
1074 # by default.
1075 for ac_prog in ginstall scoinst install; do
1076 if test -f $ac_dir/$ac_prog; then
1077 if test $ac_prog = install &&
1078 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1079 # AIX install. It has an incompatible calling convention.
1081 else
1082 ac_cv_path_install="$ac_dir/$ac_prog -c"
1083 break 2
1086 done
1088 esac
1089 done
1090 IFS="$ac_save_IFS"
1093 if test "${ac_cv_path_install+set}" = set; then
1094 INSTALL="$ac_cv_path_install"
1095 else
1096 # As a last resort, use the slow shell script. We don't cache a
1097 # path for INSTALL within a source directory, because that will
1098 # break other packages using the cache if that directory is
1099 # removed, or if the path is relative.
1100 INSTALL="$ac_install_sh"
1103 echo "$ac_t""$INSTALL" 1>&6
1105 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1106 # It thinks the first close brace ends the variable substitution.
1107 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1109 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1111 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1113 for ac_prog in gawk mawk nawk awk
1115 # Extract the first word of "$ac_prog", so it can be a program name with args.
1116 set dummy $ac_prog; ac_word=$2
1117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1118 echo "configure:1119: checking for $ac_word" >&5
1119 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1121 else
1122 if test -n "$AWK"; then
1123 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1124 else
1125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1126 ac_dummy="$PATH"
1127 for ac_dir in $ac_dummy; do
1128 test -z "$ac_dir" && ac_dir=.
1129 if test -f $ac_dir/$ac_word; then
1130 ac_cv_prog_AWK="$ac_prog"
1131 break
1133 done
1134 IFS="$ac_save_ifs"
1137 AWK="$ac_cv_prog_AWK"
1138 if test -n "$AWK"; then
1139 echo "$ac_t""$AWK" 1>&6
1140 else
1141 echo "$ac_t""no" 1>&6
1144 test -n "$AWK" && break
1145 done
1147 LD=ld
1148 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1149 echo "configure:1150: checking if the linker ($LD) is GNU ld" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1152 else
1153 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1154 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1155 ac_cv_prog_gnu_ld=yes
1156 else
1157 ac_cv_prog_gnu_ld=no
1161 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1163 # Extract the first word of "passwd", so it can be a program name with args.
1164 set dummy passwd; ac_word=$2
1165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1166 echo "configure:1167: checking for $ac_word" >&5
1167 if eval "test \"`echo '$''{'ac_cv_path_passwd_program'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1169 else
1170 case "$passwd_program" in
1172 ac_cv_path_passwd_program="$passwd_program" # Let the user override the test with a path.
1174 ?:/*)
1175 ac_cv_path_passwd_program="$passwd_program" # Let the user override the test with a dos path.
1178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1179 ac_dummy="$PATH"
1180 for ac_dir in $ac_dummy; do
1181 test -z "$ac_dir" && ac_dir=.
1182 if test -f $ac_dir/$ac_word; then
1183 ac_cv_path_passwd_program="$ac_dir/$ac_word"
1184 break
1186 done
1187 IFS="$ac_save_ifs"
1188 test -z "$ac_cv_path_passwd_program" && ac_cv_path_passwd_program="/bin/passwd"
1190 esac
1192 passwd_program="$ac_cv_path_passwd_program"
1193 if test -n "$passwd_program"; then
1194 echo "$ac_t""$passwd_program" 1>&6
1195 else
1196 echo "$ac_t""no" 1>&6
1201 if test "x$CC" != xcc; then
1202 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1203 echo "configure:1204: checking whether $CC and cc understand -c and -o together" >&5
1204 else
1205 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1206 echo "configure:1207: checking whether cc understands -c and -o together" >&5
1208 set dummy $CC; ac_cc="`echo $2 |
1209 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1210 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1212 else
1213 echo 'foo(){}' > conftest.c
1214 # Make sure it works both with $CC and with simple cc.
1215 # We do the test twice because some compilers refuse to overwrite an
1216 # existing .o file with -o, though they will create one.
1217 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1218 if { (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1219 test -f conftest.o && { (eval echo configure:1220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1220 then
1221 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1222 if test "x$CC" != xcc; then
1223 # Test first that cc exists at all.
1224 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1225 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1226 if { (eval echo configure:1227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1227 test -f conftest.o && { (eval echo configure:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1228 then
1229 # cc works too.
1231 else
1232 # cc exists but doesn't like -o.
1233 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1237 else
1238 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1240 rm -f conftest*
1243 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1244 echo "$ac_t""yes" 1>&6
1245 else
1246 echo "$ac_t""no" 1>&6
1247 cat >> confdefs.h <<\EOF
1248 #define NO_MINUS_C_MINUS_O 1
1253 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1254 BROKEN_CC=
1255 else
1256 BROKEN_CC=#
1260 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1261 echo "configure:1262: checking that the C compiler understands volatile" >&5
1262 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1264 else
1266 cat > conftest.$ac_ext <<EOF
1267 #line 1268 "configure"
1268 #include "confdefs.h"
1269 #include <sys/types.h>
1270 int main() {
1271 volatile int i = 0
1272 ; return 0; }
1274 if { (eval echo configure:1275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1275 rm -rf conftest*
1276 samba_cv_volatile=yes
1277 else
1278 echo "configure: failed program was:" >&5
1279 cat conftest.$ac_ext >&5
1280 rm -rf conftest*
1281 samba_cv_volatile=no
1283 rm -f conftest*
1286 echo "$ac_t""$samba_cv_volatile" 1>&6
1287 if test x"$samba_cv_volatile" = x"yes"; then
1288 cat >> confdefs.h <<\EOF
1289 #define HAVE_VOLATILE 1
1297 # Do some error checking and defaulting for the host and target type.
1298 # The inputs are:
1299 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1301 # The rules are:
1302 # 1. You are not allowed to specify --host, --target, and nonopt at the
1303 # same time.
1304 # 2. Host defaults to nonopt.
1305 # 3. If nonopt is not specified, then host defaults to the current host,
1306 # as determined by config.guess.
1307 # 4. Target and build default to nonopt.
1308 # 5. If nonopt is not specified, then target and build default to host.
1310 # The aliases save the names the user supplied, while $host etc.
1311 # will get canonicalized.
1312 case $host---$target---$nonopt in
1313 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1314 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1315 esac
1318 # Make sure we can run config.sub.
1319 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1320 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1323 echo $ac_n "checking host system type""... $ac_c" 1>&6
1324 echo "configure:1325: checking host system type" >&5
1326 host_alias=$host
1327 case "$host_alias" in
1328 NONE)
1329 case $nonopt in
1330 NONE)
1331 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1332 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1333 fi ;;
1334 *) host_alias=$nonopt ;;
1335 esac ;;
1336 esac
1338 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1339 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1340 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1341 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1342 echo "$ac_t""$host" 1>&6
1344 echo $ac_n "checking target system type""... $ac_c" 1>&6
1345 echo "configure:1346: checking target system type" >&5
1347 target_alias=$target
1348 case "$target_alias" in
1349 NONE)
1350 case $nonopt in
1351 NONE) target_alias=$host_alias ;;
1352 *) target_alias=$nonopt ;;
1353 esac ;;
1354 esac
1356 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1357 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1358 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1359 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1360 echo "$ac_t""$target" 1>&6
1362 echo $ac_n "checking build system type""... $ac_c" 1>&6
1363 echo "configure:1364: checking build system type" >&5
1365 build_alias=$build
1366 case "$build_alias" in
1367 NONE)
1368 case $nonopt in
1369 NONE) build_alias=$host_alias ;;
1370 *) build_alias=$nonopt ;;
1371 esac ;;
1372 esac
1374 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1375 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1376 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1377 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1378 echo "$ac_t""$build" 1>&6
1380 test "$host_alias" != "$target_alias" &&
1381 test "$program_prefix$program_suffix$program_transform_name" = \
1382 NONENONEs,x,x, &&
1383 program_prefix=${target_alias}-
1386 case "$host_os" in
1387 *irix6*) cat >> confdefs.h <<\EOF
1388 #include <standards.h>
1392 esac
1396 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1397 echo "configure:1398: checking config.cache system type" >&5
1398 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1399 test x"$ac_cv_host_system_type" != x"$host"; } ||
1400 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1401 test x"$ac_cv_build_system_type" != x"$build"; } ||
1402 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1403 test x"$ac_cv_target_system_type" != x"$target"; }; then
1404 echo "$ac_t""different" 1>&6
1405 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1406 else
1407 echo "$ac_t""same" 1>&6
1409 ac_cv_host_system_type="$host"
1410 ac_cv_build_system_type="$build"
1411 ac_cv_target_system_type="$target"
1414 DYNEXP=
1417 # Config CPPFLAG settings for strange OS's that must be set
1418 # before other tests.
1420 case "$host_os" in
1421 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1422 *hpux*)
1423 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1424 echo "configure:1425: checking whether ${CC-cc} accepts -Ae" >&5
1425 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1426 echo $ac_n "(cached) $ac_c" 1>&6
1427 else
1428 echo 'void f(){}' > conftest.c
1429 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1430 ac_cv_prog_cc_Ae=yes
1431 else
1432 ac_cv_prog_cc_Ae=no
1434 rm -f conftest*
1438 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1439 # mmap on HPUX is completely broken...
1440 cat >> confdefs.h <<\EOF
1441 #define MMAP_BLACKLIST 1
1444 if test $ac_cv_prog_cc_Ae = yes; then
1445 CPPFLAGS="$CPPFLAGS -Ae"
1448 # Defines needed for HPUX support.
1449 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1450 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1452 case `uname -r` in
1453 *9*|*10*)
1454 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1455 cat >> confdefs.h <<\EOF
1456 #define USE_BOTH_CRYPT_CALLS 1
1459 cat >> confdefs.h <<\EOF
1460 #define _HPUX_SOURCE 1
1463 cat >> confdefs.h <<\EOF
1464 #define _POSIX_SOURCE 1
1467 cat >> confdefs.h <<\EOF
1468 #define _ALIGNMENT_REQUIRED 1
1471 cat >> confdefs.h <<\EOF
1472 #define _MAX_ALIGNMENT 4
1476 *11*)
1477 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1478 cat >> confdefs.h <<\EOF
1479 #define _HPUX_SOURCE 1
1482 cat >> confdefs.h <<\EOF
1483 #define _POSIX_SOURCE 1
1486 cat >> confdefs.h <<\EOF
1487 #define _LARGEFILE64_SOURCE 1
1490 cat >> confdefs.h <<\EOF
1491 #define _ALIGNMENT_REQUIRED 1
1494 cat >> confdefs.h <<\EOF
1495 #define _MAX_ALIGNMENT 4
1498 cat >> confdefs.h <<\EOF
1499 #define USE_BOTH_CRYPT_CALLS 1
1503 esac
1504 DYNEXP="-Wl,-E"
1509 # CRAY Unicos has broken const handling
1510 *unicos*)
1511 echo "$ac_t""disabling const" 1>&6
1512 CPPFLAGS="$CPPFLAGS -Dconst="
1516 # AIX4.x doesn't even admit to having large
1517 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1519 *aix4*)
1520 echo "$ac_t""enabling large file support" 1>&6
1521 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1522 cat >> confdefs.h <<\EOF
1523 #define _LARGE_FILES 1
1528 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1529 # to the existance of large files..
1530 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1531 # recommendations on large file support, however it makes the
1532 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1533 # recommendation makes the compile fail on gcc2.7. JRA.
1535 *solaris*)
1536 case `uname -r` in
1537 5.0*|5.1*|5.2*|5.3*|5.5*)
1538 echo "$ac_t""no large file support" 1>&6
1540 5.*)
1541 echo "$ac_t""enabling large file support" 1>&6
1542 if test "$ac_cv_prog_gcc" = yes; then
1543 ${CC-cc} -v >conftest.c 2>&1
1544 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1545 rm -fr conftest.c
1546 case "$ac_cv_gcc_compiler_version_number" in
1547 *"gcc version 2.6"*|*"gcc version 2.7"*)
1548 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1549 cat >> confdefs.h <<\EOF
1550 #define _LARGEFILE64_SOURCE 1
1555 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1556 cat >> confdefs.h <<\EOF
1557 #define _LARGEFILE64_SOURCE 1
1560 cat >> confdefs.h <<\EOF
1561 #define _FILE_OFFSET_BITS 64
1565 esac
1566 else
1567 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1568 cat >> confdefs.h <<\EOF
1569 #define _LARGEFILE64_SOURCE 1
1572 cat >> confdefs.h <<\EOF
1573 #define _FILE_OFFSET_BITS 64
1578 esac
1581 # Tests needed for SINIX large file support.
1583 *sysv4*)
1584 if test $host = mips-sni-sysv4 ; then
1585 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1586 echo "configure:1587: checking for LFS support" >&5
1587 old_CPPFLAGS="$CPPFLAGS"
1588 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1589 if test "$cross_compiling" = yes; then
1590 SINIX_LFS_SUPPORT=cross
1591 else
1592 cat > conftest.$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1596 #include <unistd.h>
1597 main () {
1598 #if _LFS64_LARGEFILE == 1
1599 exit(0);
1600 #else
1601 exit(1);
1602 #endif
1605 if { (eval echo configure:1606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1606 then
1607 SINIX_LFS_SUPPORT=yes
1608 else
1609 echo "configure: failed program was:" >&5
1610 cat conftest.$ac_ext >&5
1611 rm -fr conftest*
1612 SINIX_LFS_SUPPORT=no
1614 rm -fr conftest*
1617 CPPFLAGS="$old_CPPFLAGS"
1618 if test x$SINIX_LFS_SUPPORT = xyes ; then
1619 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1620 cat >> confdefs.h <<\EOF
1621 #define _LARGEFILE64_SOURCE 1
1624 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1625 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1626 LIBS="`getconf LFS64_LIBS` $LIBS"
1628 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1632 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1634 *linux*)
1635 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1636 echo "configure:1637: checking for LFS support" >&5
1637 old_CPPFLAGS="$CPPFLAGS"
1638 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1639 if test "$cross_compiling" = yes; then
1640 LINUX_LFS_SUPPORT=cross
1641 else
1642 cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1646 #include <unistd.h>
1647 #include <sys/utsname.h>
1648 main() {
1649 #if _LFS64_LARGEFILE == 1
1650 struct utsname uts;
1651 char *release;
1652 int major, minor;
1654 /* Ensure this is glibc 2.2 or higher */
1655 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1656 int libc_major = __GLIBC__;
1657 int libc_minor = __GLIBC_MINOR__;
1659 if (libc_major < 2)
1660 exit(1);
1661 if (libc_minor < 2)
1662 exit(1);
1663 #endif
1665 /* Ensure this is kernel 2.4 or higher */
1667 uname(&uts);
1668 release = uts.release;
1669 major = atoi(strsep(&release, "."));
1670 minor = atoi(strsep(&release, "."));
1672 if (major > 2 || (major == 2 && minor > 3))
1673 exit(0);
1674 exit(1);
1675 #else
1676 exit(1);
1677 #endif
1681 if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1682 then
1683 LINUX_LFS_SUPPORT=yes
1684 else
1685 echo "configure: failed program was:" >&5
1686 cat conftest.$ac_ext >&5
1687 rm -fr conftest*
1688 LINUX_LFS_SUPPORT=no
1690 rm -fr conftest*
1693 CPPFLAGS="$old_CPPFLAGS"
1694 if test x$LINUX_LFS_SUPPORT = xyes ; then
1695 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1696 cat >> confdefs.h <<\EOF
1697 #define _LARGEFILE64_SOURCE 1
1700 cat >> confdefs.h <<\EOF
1701 #define _FILE_OFFSET_BITS 64
1704 cat >> confdefs.h <<\EOF
1705 #define _GNU_SOURCE 1
1709 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1712 *hurd*)
1713 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1714 echo "configure:1715: checking for LFS support" >&5
1715 old_CPPFLAGS="$CPPFLAGS"
1716 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1717 if test "$cross_compiling" = yes; then
1718 GLIBC_LFS_SUPPORT=cross
1719 else
1720 cat > conftest.$ac_ext <<EOF
1721 #line 1722 "configure"
1722 #include "confdefs.h"
1724 #include <unistd.h>
1725 main () {
1726 #if _LFS64_LARGEFILE == 1
1727 exit(0);
1728 #else
1729 exit(1);
1730 #endif
1733 if { (eval echo configure:1734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1734 then
1735 GLIBC_LFS_SUPPORT=yes
1736 else
1737 echo "configure: failed program was:" >&5
1738 cat conftest.$ac_ext >&5
1739 rm -fr conftest*
1740 GLIBC_LFS_SUPPORT=no
1742 rm -fr conftest*
1745 CPPFLAGS="$old_CPPFLAGS"
1746 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1747 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1748 cat >> confdefs.h <<\EOF
1749 #define _LARGEFILE64_SOURCE 1
1752 cat >> confdefs.h <<\EOF
1753 #define _GNU_SOURCE 1
1757 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1760 esac
1762 echo $ac_n "checking for inline""... $ac_c" 1>&6
1763 echo "configure:1764: checking for inline" >&5
1764 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1766 else
1767 ac_cv_c_inline=no
1768 for ac_kw in inline __inline__ __inline; do
1769 cat > conftest.$ac_ext <<EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1773 int main() {
1774 } $ac_kw foo() {
1775 ; return 0; }
1777 if { (eval echo configure:1778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1778 rm -rf conftest*
1779 ac_cv_c_inline=$ac_kw; break
1780 else
1781 echo "configure: failed program was:" >&5
1782 cat conftest.$ac_ext >&5
1784 rm -f conftest*
1785 done
1789 echo "$ac_t""$ac_cv_c_inline" 1>&6
1790 case "$ac_cv_c_inline" in
1791 inline | yes) ;;
1792 no) cat >> confdefs.h <<\EOF
1793 #define inline
1796 *) cat >> confdefs.h <<EOF
1797 #define inline $ac_cv_c_inline
1800 esac
1802 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1803 echo "configure:1804: checking how to run the C preprocessor" >&5
1804 # On Suns, sometimes $CPP names a directory.
1805 if test -n "$CPP" && test -d "$CPP"; then
1806 CPP=
1808 if test -z "$CPP"; then
1809 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1811 else
1812 # This must be in double quotes, not single quotes, because CPP may get
1813 # substituted into the Makefile and "${CC-cc}" will confuse make.
1814 CPP="${CC-cc} -E"
1815 # On the NeXT, cc -E runs the code through the compiler's parser,
1816 # not just through cpp.
1817 cat > conftest.$ac_ext <<EOF
1818 #line 1819 "configure"
1819 #include "confdefs.h"
1820 #include <assert.h>
1821 Syntax Error
1823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1824 { (eval echo configure:1825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1826 if test -z "$ac_err"; then
1828 else
1829 echo "$ac_err" >&5
1830 echo "configure: failed program was:" >&5
1831 cat conftest.$ac_ext >&5
1832 rm -rf conftest*
1833 CPP="${CC-cc} -E -traditional-cpp"
1834 cat > conftest.$ac_ext <<EOF
1835 #line 1836 "configure"
1836 #include "confdefs.h"
1837 #include <assert.h>
1838 Syntax Error
1840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1841 { (eval echo configure:1842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1843 if test -z "$ac_err"; then
1845 else
1846 echo "$ac_err" >&5
1847 echo "configure: failed program was:" >&5
1848 cat conftest.$ac_ext >&5
1849 rm -rf conftest*
1850 CPP="${CC-cc} -nologo -E"
1851 cat > conftest.$ac_ext <<EOF
1852 #line 1853 "configure"
1853 #include "confdefs.h"
1854 #include <assert.h>
1855 Syntax Error
1857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1858 { (eval echo configure:1859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1860 if test -z "$ac_err"; then
1862 else
1863 echo "$ac_err" >&5
1864 echo "configure: failed program was:" >&5
1865 cat conftest.$ac_ext >&5
1866 rm -rf conftest*
1867 CPP=/lib/cpp
1869 rm -f conftest*
1871 rm -f conftest*
1873 rm -f conftest*
1874 ac_cv_prog_CPP="$CPP"
1876 CPP="$ac_cv_prog_CPP"
1877 else
1878 ac_cv_prog_CPP="$CPP"
1880 echo "$ac_t""$CPP" 1>&6
1882 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1883 echo "configure:1884: checking for ANSI C header files" >&5
1884 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1886 else
1887 cat > conftest.$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1890 #include <stdlib.h>
1891 #include <stdarg.h>
1892 #include <string.h>
1893 #include <float.h>
1895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1896 { (eval echo configure:1897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1898 if test -z "$ac_err"; then
1899 rm -rf conftest*
1900 ac_cv_header_stdc=yes
1901 else
1902 echo "$ac_err" >&5
1903 echo "configure: failed program was:" >&5
1904 cat conftest.$ac_ext >&5
1905 rm -rf conftest*
1906 ac_cv_header_stdc=no
1908 rm -f conftest*
1910 if test $ac_cv_header_stdc = yes; then
1911 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1912 cat > conftest.$ac_ext <<EOF
1913 #line 1914 "configure"
1914 #include "confdefs.h"
1915 #include <string.h>
1917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1918 egrep "memchr" >/dev/null 2>&1; then
1920 else
1921 rm -rf conftest*
1922 ac_cv_header_stdc=no
1924 rm -f conftest*
1928 if test $ac_cv_header_stdc = yes; then
1929 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1930 cat > conftest.$ac_ext <<EOF
1931 #line 1932 "configure"
1932 #include "confdefs.h"
1933 #include <stdlib.h>
1935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1936 egrep "free" >/dev/null 2>&1; then
1938 else
1939 rm -rf conftest*
1940 ac_cv_header_stdc=no
1942 rm -f conftest*
1946 if test $ac_cv_header_stdc = yes; then
1947 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1948 if test "$cross_compiling" = yes; then
1950 else
1951 cat > conftest.$ac_ext <<EOF
1952 #line 1953 "configure"
1953 #include "confdefs.h"
1954 #include <ctype.h>
1955 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1956 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1957 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1958 int main () { int i; for (i = 0; i < 256; i++)
1959 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1960 exit (0); }
1963 if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1964 then
1966 else
1967 echo "configure: failed program was:" >&5
1968 cat conftest.$ac_ext >&5
1969 rm -fr conftest*
1970 ac_cv_header_stdc=no
1972 rm -fr conftest*
1978 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1979 if test $ac_cv_header_stdc = yes; then
1980 cat >> confdefs.h <<\EOF
1981 #define STDC_HEADERS 1
1986 ac_header_dirent=no
1987 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1989 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1990 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1991 echo "configure:1992: checking for $ac_hdr that defines DIR" >&5
1992 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1993 echo $ac_n "(cached) $ac_c" 1>&6
1994 else
1995 cat > conftest.$ac_ext <<EOF
1996 #line 1997 "configure"
1997 #include "confdefs.h"
1998 #include <sys/types.h>
1999 #include <$ac_hdr>
2000 int main() {
2001 DIR *dirp = 0;
2002 ; return 0; }
2004 if { (eval echo configure:2005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2005 rm -rf conftest*
2006 eval "ac_cv_header_dirent_$ac_safe=yes"
2007 else
2008 echo "configure: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2010 rm -rf conftest*
2011 eval "ac_cv_header_dirent_$ac_safe=no"
2013 rm -f conftest*
2015 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2016 echo "$ac_t""yes" 1>&6
2017 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2018 cat >> confdefs.h <<EOF
2019 #define $ac_tr_hdr 1
2021 ac_header_dirent=$ac_hdr; break
2022 else
2023 echo "$ac_t""no" 1>&6
2025 done
2026 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2027 if test $ac_header_dirent = dirent.h; then
2028 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2029 echo "configure:2030: checking for opendir in -ldir" >&5
2030 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2031 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2033 else
2034 ac_save_LIBS="$LIBS"
2035 LIBS="-ldir $LIBS"
2036 cat > conftest.$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2039 /* Override any gcc2 internal prototype to avoid an error. */
2040 /* We use char because int might match the return type of a gcc2
2041 builtin and then its argument prototype would still apply. */
2042 char opendir();
2044 int main() {
2045 opendir()
2046 ; return 0; }
2048 if { (eval echo configure:2049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2049 rm -rf conftest*
2050 eval "ac_cv_lib_$ac_lib_var=yes"
2051 else
2052 echo "configure: failed program was:" >&5
2053 cat conftest.$ac_ext >&5
2054 rm -rf conftest*
2055 eval "ac_cv_lib_$ac_lib_var=no"
2057 rm -f conftest*
2058 LIBS="$ac_save_LIBS"
2061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2062 echo "$ac_t""yes" 1>&6
2063 LIBS="$LIBS -ldir"
2064 else
2065 echo "$ac_t""no" 1>&6
2068 else
2069 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2070 echo "configure:2071: checking for opendir in -lx" >&5
2071 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2074 else
2075 ac_save_LIBS="$LIBS"
2076 LIBS="-lx $LIBS"
2077 cat > conftest.$ac_ext <<EOF
2078 #line 2079 "configure"
2079 #include "confdefs.h"
2080 /* Override any gcc2 internal prototype to avoid an error. */
2081 /* We use char because int might match the return type of a gcc2
2082 builtin and then its argument prototype would still apply. */
2083 char opendir();
2085 int main() {
2086 opendir()
2087 ; return 0; }
2089 if { (eval echo configure:2090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2090 rm -rf conftest*
2091 eval "ac_cv_lib_$ac_lib_var=yes"
2092 else
2093 echo "configure: failed program was:" >&5
2094 cat conftest.$ac_ext >&5
2095 rm -rf conftest*
2096 eval "ac_cv_lib_$ac_lib_var=no"
2098 rm -f conftest*
2099 LIBS="$ac_save_LIBS"
2102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2103 echo "$ac_t""yes" 1>&6
2104 LIBS="$LIBS -lx"
2105 else
2106 echo "$ac_t""no" 1>&6
2111 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2112 echo "configure:2113: checking whether time.h and sys/time.h may both be included" >&5
2113 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2114 echo $ac_n "(cached) $ac_c" 1>&6
2115 else
2116 cat > conftest.$ac_ext <<EOF
2117 #line 2118 "configure"
2118 #include "confdefs.h"
2119 #include <sys/types.h>
2120 #include <sys/time.h>
2121 #include <time.h>
2122 int main() {
2123 struct tm *tp;
2124 ; return 0; }
2126 if { (eval echo configure:2127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2127 rm -rf conftest*
2128 ac_cv_header_time=yes
2129 else
2130 echo "configure: failed program was:" >&5
2131 cat conftest.$ac_ext >&5
2132 rm -rf conftest*
2133 ac_cv_header_time=no
2135 rm -f conftest*
2138 echo "$ac_t""$ac_cv_header_time" 1>&6
2139 if test $ac_cv_header_time = yes; then
2140 cat >> confdefs.h <<\EOF
2141 #define TIME_WITH_SYS_TIME 1
2146 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2147 echo "configure:2148: checking for sys/wait.h that is POSIX.1 compatible" >&5
2148 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2150 else
2151 cat > conftest.$ac_ext <<EOF
2152 #line 2153 "configure"
2153 #include "confdefs.h"
2154 #include <sys/types.h>
2155 #include <sys/wait.h>
2156 #ifndef WEXITSTATUS
2157 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2158 #endif
2159 #ifndef WIFEXITED
2160 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2161 #endif
2162 int main() {
2163 int s;
2164 wait (&s);
2165 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2166 ; return 0; }
2168 if { (eval echo configure:2169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2169 rm -rf conftest*
2170 ac_cv_header_sys_wait_h=yes
2171 else
2172 echo "configure: failed program was:" >&5
2173 cat conftest.$ac_ext >&5
2174 rm -rf conftest*
2175 ac_cv_header_sys_wait_h=no
2177 rm -f conftest*
2180 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2181 if test $ac_cv_header_sys_wait_h = yes; then
2182 cat >> confdefs.h <<\EOF
2183 #define HAVE_SYS_WAIT_H 1
2188 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2190 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2191 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2192 echo "configure:2193: checking for $ac_hdr" >&5
2193 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2194 echo $ac_n "(cached) $ac_c" 1>&6
2195 else
2196 cat > conftest.$ac_ext <<EOF
2197 #line 2198 "configure"
2198 #include "confdefs.h"
2199 #include <$ac_hdr>
2201 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2202 { (eval echo configure:2203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2203 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2204 if test -z "$ac_err"; then
2205 rm -rf conftest*
2206 eval "ac_cv_header_$ac_safe=yes"
2207 else
2208 echo "$ac_err" >&5
2209 echo "configure: failed program was:" >&5
2210 cat conftest.$ac_ext >&5
2211 rm -rf conftest*
2212 eval "ac_cv_header_$ac_safe=no"
2214 rm -f conftest*
2216 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2217 echo "$ac_t""yes" 1>&6
2218 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2219 cat >> confdefs.h <<EOF
2220 #define $ac_tr_hdr 1
2223 else
2224 echo "$ac_t""no" 1>&6
2226 done
2228 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2230 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2231 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2232 echo "configure:2233: checking for $ac_hdr" >&5
2233 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2235 else
2236 cat > conftest.$ac_ext <<EOF
2237 #line 2238 "configure"
2238 #include "confdefs.h"
2239 #include <$ac_hdr>
2241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2242 { (eval echo configure:2243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2244 if test -z "$ac_err"; then
2245 rm -rf conftest*
2246 eval "ac_cv_header_$ac_safe=yes"
2247 else
2248 echo "$ac_err" >&5
2249 echo "configure: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2251 rm -rf conftest*
2252 eval "ac_cv_header_$ac_safe=no"
2254 rm -f conftest*
2256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2257 echo "$ac_t""yes" 1>&6
2258 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2259 cat >> confdefs.h <<EOF
2260 #define $ac_tr_hdr 1
2263 else
2264 echo "$ac_t""no" 1>&6
2266 done
2268 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2270 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2271 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2272 echo "configure:2273: checking for $ac_hdr" >&5
2273 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2274 echo $ac_n "(cached) $ac_c" 1>&6
2275 else
2276 cat > conftest.$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2279 #include <$ac_hdr>
2281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2282 { (eval echo configure:2283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2284 if test -z "$ac_err"; then
2285 rm -rf conftest*
2286 eval "ac_cv_header_$ac_safe=yes"
2287 else
2288 echo "$ac_err" >&5
2289 echo "configure: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2291 rm -rf conftest*
2292 eval "ac_cv_header_$ac_safe=no"
2294 rm -f conftest*
2296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2297 echo "$ac_t""yes" 1>&6
2298 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2299 cat >> confdefs.h <<EOF
2300 #define $ac_tr_hdr 1
2303 else
2304 echo "$ac_t""no" 1>&6
2306 done
2308 for ac_hdr in stdlib.h string.h strings.h syslog.h sys/file.h
2310 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2311 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2312 echo "configure:2313: checking for $ac_hdr" >&5
2313 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2314 echo $ac_n "(cached) $ac_c" 1>&6
2315 else
2316 cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2319 #include <$ac_hdr>
2321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2322 { (eval echo configure:2323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2324 if test -z "$ac_err"; then
2325 rm -rf conftest*
2326 eval "ac_cv_header_$ac_safe=yes"
2327 else
2328 echo "$ac_err" >&5
2329 echo "configure: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2331 rm -rf conftest*
2332 eval "ac_cv_header_$ac_safe=no"
2334 rm -f conftest*
2336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2337 echo "$ac_t""yes" 1>&6
2338 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2339 cat >> confdefs.h <<EOF
2340 #define $ac_tr_hdr 1
2343 else
2344 echo "$ac_t""no" 1>&6
2346 done
2348 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2350 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2351 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2352 echo "configure:2353: checking for $ac_hdr" >&5
2353 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2355 else
2356 cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2359 #include <$ac_hdr>
2361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2362 { (eval echo configure:2363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2364 if test -z "$ac_err"; then
2365 rm -rf conftest*
2366 eval "ac_cv_header_$ac_safe=yes"
2367 else
2368 echo "$ac_err" >&5
2369 echo "configure: failed program was:" >&5
2370 cat conftest.$ac_ext >&5
2371 rm -rf conftest*
2372 eval "ac_cv_header_$ac_safe=no"
2374 rm -f conftest*
2376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2377 echo "$ac_t""yes" 1>&6
2378 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2379 cat >> confdefs.h <<EOF
2380 #define $ac_tr_hdr 1
2383 else
2384 echo "$ac_t""no" 1>&6
2386 done
2388 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h sys/socket.h
2390 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2391 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2392 echo "configure:2393: checking for $ac_hdr" >&5
2393 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2395 else
2396 cat > conftest.$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2399 #include <$ac_hdr>
2401 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2402 { (eval echo configure:2403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2403 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2404 if test -z "$ac_err"; then
2405 rm -rf conftest*
2406 eval "ac_cv_header_$ac_safe=yes"
2407 else
2408 echo "$ac_err" >&5
2409 echo "configure: failed program was:" >&5
2410 cat conftest.$ac_ext >&5
2411 rm -rf conftest*
2412 eval "ac_cv_header_$ac_safe=no"
2414 rm -f conftest*
2416 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2417 echo "$ac_t""yes" 1>&6
2418 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2419 cat >> confdefs.h <<EOF
2420 #define $ac_tr_hdr 1
2423 else
2424 echo "$ac_t""no" 1>&6
2426 done
2428 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
2430 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2431 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2432 echo "configure:2433: checking for $ac_hdr" >&5
2433 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2435 else
2436 cat > conftest.$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2439 #include <$ac_hdr>
2441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2442 { (eval echo configure:2443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2444 if test -z "$ac_err"; then
2445 rm -rf conftest*
2446 eval "ac_cv_header_$ac_safe=yes"
2447 else
2448 echo "$ac_err" >&5
2449 echo "configure: failed program was:" >&5
2450 cat conftest.$ac_ext >&5
2451 rm -rf conftest*
2452 eval "ac_cv_header_$ac_safe=no"
2454 rm -f conftest*
2456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2457 echo "$ac_t""yes" 1>&6
2458 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2459 cat >> confdefs.h <<EOF
2460 #define $ac_tr_hdr 1
2463 else
2464 echo "$ac_t""no" 1>&6
2466 done
2468 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2470 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2472 echo "configure:2473: checking for $ac_hdr" >&5
2473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2475 else
2476 cat > conftest.$ac_ext <<EOF
2477 #line 2478 "configure"
2478 #include "confdefs.h"
2479 #include <$ac_hdr>
2481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2482 { (eval echo configure:2483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2484 if test -z "$ac_err"; then
2485 rm -rf conftest*
2486 eval "ac_cv_header_$ac_safe=yes"
2487 else
2488 echo "$ac_err" >&5
2489 echo "configure: failed program was:" >&5
2490 cat conftest.$ac_ext >&5
2491 rm -rf conftest*
2492 eval "ac_cv_header_$ac_safe=no"
2494 rm -f conftest*
2496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2497 echo "$ac_t""yes" 1>&6
2498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2499 cat >> confdefs.h <<EOF
2500 #define $ac_tr_hdr 1
2503 else
2504 echo "$ac_t""no" 1>&6
2506 done
2508 for ac_hdr in security/pam_modules.h security/_pam_macros.h dlfcn.h synch.h pthread.h nsswitch.h
2510 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2511 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2512 echo "configure:2513: checking for $ac_hdr" >&5
2513 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2515 else
2516 cat > conftest.$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2519 #include <$ac_hdr>
2521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2522 { (eval echo configure:2523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2524 if test -z "$ac_err"; then
2525 rm -rf conftest*
2526 eval "ac_cv_header_$ac_safe=yes"
2527 else
2528 echo "$ac_err" >&5
2529 echo "configure: failed program was:" >&5
2530 cat conftest.$ac_ext >&5
2531 rm -rf conftest*
2532 eval "ac_cv_header_$ac_safe=no"
2534 rm -f conftest*
2536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2537 echo "$ac_t""yes" 1>&6
2538 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2539 cat >> confdefs.h <<EOF
2540 #define $ac_tr_hdr 1
2543 else
2544 echo "$ac_t""no" 1>&6
2546 done
2550 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2551 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2553 case "$host_os" in
2554 *hpux*)
2555 cat > conftest.$ac_ext <<EOF
2556 #line 2557 "configure"
2557 #include "confdefs.h"
2558 #include <shadow.h>
2559 int main() {
2560 struct spwd testme
2561 ; return 0; }
2563 if { (eval echo configure:2564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2564 rm -rf conftest*
2565 ac_cv_header_shadow_h=yes
2566 else
2567 echo "configure: failed program was:" >&5
2568 cat conftest.$ac_ext >&5
2569 rm -rf conftest*
2570 ac_cv_header_shadow_h=no
2572 rm -f conftest*
2573 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2574 cat >> confdefs.h <<\EOF
2575 #define HAVE_SHADOW_H 1
2580 esac
2581 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2583 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2584 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2585 echo "configure:2586: checking for $ac_hdr" >&5
2586 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2588 else
2589 cat > conftest.$ac_ext <<EOF
2590 #line 2591 "configure"
2591 #include "confdefs.h"
2592 #include <$ac_hdr>
2594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2595 { (eval echo configure:2596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2597 if test -z "$ac_err"; then
2598 rm -rf conftest*
2599 eval "ac_cv_header_$ac_safe=yes"
2600 else
2601 echo "$ac_err" >&5
2602 echo "configure: failed program was:" >&5
2603 cat conftest.$ac_ext >&5
2604 rm -rf conftest*
2605 eval "ac_cv_header_$ac_safe=no"
2607 rm -f conftest*
2609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2610 echo "$ac_t""yes" 1>&6
2611 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2612 cat >> confdefs.h <<EOF
2613 #define $ac_tr_hdr 1
2616 else
2617 echo "$ac_t""no" 1>&6
2619 done
2621 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2623 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2624 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2625 echo "configure:2626: checking for $ac_hdr" >&5
2626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2628 else
2629 cat > conftest.$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2632 #include <$ac_hdr>
2634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2635 { (eval echo configure:2636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2637 if test -z "$ac_err"; then
2638 rm -rf conftest*
2639 eval "ac_cv_header_$ac_safe=yes"
2640 else
2641 echo "$ac_err" >&5
2642 echo "configure: failed program was:" >&5
2643 cat conftest.$ac_ext >&5
2644 rm -rf conftest*
2645 eval "ac_cv_header_$ac_safe=no"
2647 rm -f conftest*
2649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2650 echo "$ac_t""yes" 1>&6
2651 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2652 cat >> confdefs.h <<EOF
2653 #define $ac_tr_hdr 1
2656 else
2657 echo "$ac_t""no" 1>&6
2659 done
2661 for ac_hdr in stropts.h poll.h
2663 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2664 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2665 echo "configure:2666: checking for $ac_hdr" >&5
2666 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2667 echo $ac_n "(cached) $ac_c" 1>&6
2668 else
2669 cat > conftest.$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2672 #include <$ac_hdr>
2674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2675 { (eval echo configure:2676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2677 if test -z "$ac_err"; then
2678 rm -rf conftest*
2679 eval "ac_cv_header_$ac_safe=yes"
2680 else
2681 echo "$ac_err" >&5
2682 echo "configure: failed program was:" >&5
2683 cat conftest.$ac_ext >&5
2684 rm -rf conftest*
2685 eval "ac_cv_header_$ac_safe=no"
2687 rm -f conftest*
2689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2690 echo "$ac_t""yes" 1>&6
2691 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2692 cat >> confdefs.h <<EOF
2693 #define $ac_tr_hdr 1
2696 else
2697 echo "$ac_t""no" 1>&6
2699 done
2701 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2703 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2704 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2705 echo "configure:2706: checking for $ac_hdr" >&5
2706 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2708 else
2709 cat > conftest.$ac_ext <<EOF
2710 #line 2711 "configure"
2711 #include "confdefs.h"
2712 #include <$ac_hdr>
2714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2715 { (eval echo configure:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2717 if test -z "$ac_err"; then
2718 rm -rf conftest*
2719 eval "ac_cv_header_$ac_safe=yes"
2720 else
2721 echo "$ac_err" >&5
2722 echo "configure: failed program was:" >&5
2723 cat conftest.$ac_ext >&5
2724 rm -rf conftest*
2725 eval "ac_cv_header_$ac_safe=no"
2727 rm -f conftest*
2729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2730 echo "$ac_t""yes" 1>&6
2731 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2732 cat >> confdefs.h <<EOF
2733 #define $ac_tr_hdr 1
2736 else
2737 echo "$ac_t""no" 1>&6
2739 done
2741 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2743 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2744 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2745 echo "configure:2746: checking for $ac_hdr" >&5
2746 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2747 echo $ac_n "(cached) $ac_c" 1>&6
2748 else
2749 cat > conftest.$ac_ext <<EOF
2750 #line 2751 "configure"
2751 #include "confdefs.h"
2752 #include <$ac_hdr>
2754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2755 { (eval echo configure:2756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2757 if test -z "$ac_err"; then
2758 rm -rf conftest*
2759 eval "ac_cv_header_$ac_safe=yes"
2760 else
2761 echo "$ac_err" >&5
2762 echo "configure: failed program was:" >&5
2763 cat conftest.$ac_ext >&5
2764 rm -rf conftest*
2765 eval "ac_cv_header_$ac_safe=no"
2767 rm -f conftest*
2769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2770 echo "$ac_t""yes" 1>&6
2771 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2772 cat >> confdefs.h <<EOF
2773 #define $ac_tr_hdr 1
2776 else
2777 echo "$ac_t""no" 1>&6
2779 done
2782 # For experimental utmp support (lastlog on some BSD-like systems)
2783 for ac_hdr in utmp.h utmpx.h lastlog.h
2785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2787 echo "configure:2788: checking for $ac_hdr" >&5
2788 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2789 echo $ac_n "(cached) $ac_c" 1>&6
2790 else
2791 cat > conftest.$ac_ext <<EOF
2792 #line 2793 "configure"
2793 #include "confdefs.h"
2794 #include <$ac_hdr>
2796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2797 { (eval echo configure:2798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2799 if test -z "$ac_err"; then
2800 rm -rf conftest*
2801 eval "ac_cv_header_$ac_safe=yes"
2802 else
2803 echo "$ac_err" >&5
2804 echo "configure: failed program was:" >&5
2805 cat conftest.$ac_ext >&5
2806 rm -rf conftest*
2807 eval "ac_cv_header_$ac_safe=no"
2809 rm -f conftest*
2811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2812 echo "$ac_t""yes" 1>&6
2813 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2814 cat >> confdefs.h <<EOF
2815 #define $ac_tr_hdr 1
2818 else
2819 echo "$ac_t""no" 1>&6
2821 done
2824 # For quotas on Veritas VxFS filesystems
2825 for ac_hdr in sys/fs/vx_quota.h
2827 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2828 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2829 echo "configure:2830: checking for $ac_hdr" >&5
2830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
2832 else
2833 cat > conftest.$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2836 #include <$ac_hdr>
2838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2839 { (eval echo configure:2840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2841 if test -z "$ac_err"; then
2842 rm -rf conftest*
2843 eval "ac_cv_header_$ac_safe=yes"
2844 else
2845 echo "$ac_err" >&5
2846 echo "configure: failed program was:" >&5
2847 cat conftest.$ac_ext >&5
2848 rm -rf conftest*
2849 eval "ac_cv_header_$ac_safe=no"
2851 rm -f conftest*
2853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2854 echo "$ac_t""yes" 1>&6
2855 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2856 cat >> confdefs.h <<EOF
2857 #define $ac_tr_hdr 1
2860 else
2861 echo "$ac_t""no" 1>&6
2863 done
2866 # For quotas on Linux XFS filesystems
2867 for ac_hdr in linux/xqm.h
2869 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2870 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2871 echo "configure:2872: checking for $ac_hdr" >&5
2872 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2873 echo $ac_n "(cached) $ac_c" 1>&6
2874 else
2875 cat > conftest.$ac_ext <<EOF
2876 #line 2877 "configure"
2877 #include "confdefs.h"
2878 #include <$ac_hdr>
2880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2881 { (eval echo configure:2882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2883 if test -z "$ac_err"; then
2884 rm -rf conftest*
2885 eval "ac_cv_header_$ac_safe=yes"
2886 else
2887 echo "$ac_err" >&5
2888 echo "configure: failed program was:" >&5
2889 cat conftest.$ac_ext >&5
2890 rm -rf conftest*
2891 eval "ac_cv_header_$ac_safe=no"
2893 rm -f conftest*
2895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2896 echo "$ac_t""yes" 1>&6
2897 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2898 cat >> confdefs.h <<EOF
2899 #define $ac_tr_hdr 1
2902 else
2903 echo "$ac_t""no" 1>&6
2905 done
2908 echo $ac_n "checking size of int""... $ac_c" 1>&6
2909 echo "configure:2910: checking size of int" >&5
2910 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2912 else
2913 if test "$cross_compiling" = yes; then
2914 ac_cv_sizeof_int=cross
2915 else
2916 cat > conftest.$ac_ext <<EOF
2917 #line 2918 "configure"
2918 #include "confdefs.h"
2919 #include <stdio.h>
2920 int main()
2922 FILE *f=fopen("conftestval", "w");
2923 if (!f) return(1);
2924 fprintf(f, "%d\n", sizeof(int));
2925 return(0);
2928 if { (eval echo configure:2929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2929 then
2930 ac_cv_sizeof_int=`cat conftestval`
2931 else
2932 echo "configure: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2934 rm -fr conftest*
2935 ac_cv_sizeof_int=0
2937 rm -fr conftest*
2941 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2942 cat >> confdefs.h <<EOF
2943 #define SIZEOF_INT $ac_cv_sizeof_int
2947 echo $ac_n "checking size of long""... $ac_c" 1>&6
2948 echo "configure:2949: checking size of long" >&5
2949 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2951 else
2952 if test "$cross_compiling" = yes; then
2953 ac_cv_sizeof_long=cross
2954 else
2955 cat > conftest.$ac_ext <<EOF
2956 #line 2957 "configure"
2957 #include "confdefs.h"
2958 #include <stdio.h>
2959 int main()
2961 FILE *f=fopen("conftestval", "w");
2962 if (!f) return(1);
2963 fprintf(f, "%d\n", sizeof(long));
2964 return(0);
2967 if { (eval echo configure:2968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2968 then
2969 ac_cv_sizeof_long=`cat conftestval`
2970 else
2971 echo "configure: failed program was:" >&5
2972 cat conftest.$ac_ext >&5
2973 rm -fr conftest*
2974 ac_cv_sizeof_long=0
2976 rm -fr conftest*
2980 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2981 cat >> confdefs.h <<EOF
2982 #define SIZEOF_LONG $ac_cv_sizeof_long
2986 echo $ac_n "checking size of short""... $ac_c" 1>&6
2987 echo "configure:2988: checking size of short" >&5
2988 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2990 else
2991 if test "$cross_compiling" = yes; then
2992 ac_cv_sizeof_short=cross
2993 else
2994 cat > conftest.$ac_ext <<EOF
2995 #line 2996 "configure"
2996 #include "confdefs.h"
2997 #include <stdio.h>
2998 int main()
3000 FILE *f=fopen("conftestval", "w");
3001 if (!f) return(1);
3002 fprintf(f, "%d\n", sizeof(short));
3003 return(0);
3006 if { (eval echo configure:3007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3007 then
3008 ac_cv_sizeof_short=`cat conftestval`
3009 else
3010 echo "configure: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3012 rm -fr conftest*
3013 ac_cv_sizeof_short=0
3015 rm -fr conftest*
3019 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3020 cat >> confdefs.h <<EOF
3021 #define SIZEOF_SHORT $ac_cv_sizeof_short
3026 echo $ac_n "checking for working const""... $ac_c" 1>&6
3027 echo "configure:3028: checking for working const" >&5
3028 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3030 else
3031 cat > conftest.$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3035 int main() {
3037 /* Ultrix mips cc rejects this. */
3038 typedef int charset[2]; const charset x;
3039 /* SunOS 4.1.1 cc rejects this. */
3040 char const *const *ccp;
3041 char **p;
3042 /* NEC SVR4.0.2 mips cc rejects this. */
3043 struct point {int x, y;};
3044 static struct point const zero = {0,0};
3045 /* AIX XL C 1.02.0.0 rejects this.
3046 It does not let you subtract one const X* pointer from another in an arm
3047 of an if-expression whose if-part is not a constant expression */
3048 const char *g = "string";
3049 ccp = &g + (g ? g-g : 0);
3050 /* HPUX 7.0 cc rejects these. */
3051 ++ccp;
3052 p = (char**) ccp;
3053 ccp = (char const *const *) p;
3054 { /* SCO 3.2v4 cc rejects this. */
3055 char *t;
3056 char const *s = 0 ? (char *) 0 : (char const *) 0;
3058 *t++ = 0;
3060 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3061 int x[] = {25, 17};
3062 const int *foo = &x[0];
3063 ++foo;
3065 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3066 typedef const int *iptr;
3067 iptr p = 0;
3068 ++p;
3070 { /* AIX XL C 1.02.0.0 rejects this saying
3071 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3072 struct s { int j; const int *ap[3]; };
3073 struct s *b; b->j = 5;
3075 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3076 const int foo = 10;
3079 ; return 0; }
3081 if { (eval echo configure:3082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3082 rm -rf conftest*
3083 ac_cv_c_const=yes
3084 else
3085 echo "configure: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3087 rm -rf conftest*
3088 ac_cv_c_const=no
3090 rm -f conftest*
3093 echo "$ac_t""$ac_cv_c_const" 1>&6
3094 if test $ac_cv_c_const = no; then
3095 cat >> confdefs.h <<\EOF
3096 #define const
3101 echo $ac_n "checking for inline""... $ac_c" 1>&6
3102 echo "configure:3103: checking for inline" >&5
3103 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3105 else
3106 ac_cv_c_inline=no
3107 for ac_kw in inline __inline__ __inline; do
3108 cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3112 int main() {
3113 } $ac_kw foo() {
3114 ; return 0; }
3116 if { (eval echo configure:3117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3117 rm -rf conftest*
3118 ac_cv_c_inline=$ac_kw; break
3119 else
3120 echo "configure: failed program was:" >&5
3121 cat conftest.$ac_ext >&5
3123 rm -f conftest*
3124 done
3128 echo "$ac_t""$ac_cv_c_inline" 1>&6
3129 case "$ac_cv_c_inline" in
3130 inline | yes) ;;
3131 no) cat >> confdefs.h <<\EOF
3132 #define inline
3135 *) cat >> confdefs.h <<EOF
3136 #define inline $ac_cv_c_inline
3139 esac
3141 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3142 echo "configure:3143: checking whether byte ordering is bigendian" >&5
3143 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3144 echo $ac_n "(cached) $ac_c" 1>&6
3145 else
3146 ac_cv_c_bigendian=unknown
3147 # See if sys/param.h defines the BYTE_ORDER macro.
3148 cat > conftest.$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3151 #include <sys/types.h>
3152 #include <sys/param.h>
3153 int main() {
3155 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3156 bogus endian macros
3157 #endif
3158 ; return 0; }
3160 if { (eval echo configure:3161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3161 rm -rf conftest*
3162 # It does; now see whether it defined to BIG_ENDIAN or not.
3163 cat > conftest.$ac_ext <<EOF
3164 #line 3165 "configure"
3165 #include "confdefs.h"
3166 #include <sys/types.h>
3167 #include <sys/param.h>
3168 int main() {
3170 #if BYTE_ORDER != BIG_ENDIAN
3171 not big endian
3172 #endif
3173 ; return 0; }
3175 if { (eval echo configure:3176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3176 rm -rf conftest*
3177 ac_cv_c_bigendian=yes
3178 else
3179 echo "configure: failed program was:" >&5
3180 cat conftest.$ac_ext >&5
3181 rm -rf conftest*
3182 ac_cv_c_bigendian=no
3184 rm -f conftest*
3185 else
3186 echo "configure: failed program was:" >&5
3187 cat conftest.$ac_ext >&5
3189 rm -f conftest*
3190 if test $ac_cv_c_bigendian = unknown; then
3191 if test "$cross_compiling" = yes; then
3192 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3193 else
3194 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197 main () {
3198 /* Are we little or big endian? From Harbison&Steele. */
3199 union
3201 long l;
3202 char c[sizeof (long)];
3203 } u;
3204 u.l = 1;
3205 exit (u.c[sizeof (long) - 1] == 1);
3208 if { (eval echo configure:3209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3209 then
3210 ac_cv_c_bigendian=no
3211 else
3212 echo "configure: failed program was:" >&5
3213 cat conftest.$ac_ext >&5
3214 rm -fr conftest*
3215 ac_cv_c_bigendian=yes
3217 rm -fr conftest*
3223 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3224 if test $ac_cv_c_bigendian = yes; then
3225 cat >> confdefs.h <<\EOF
3226 #define WORDS_BIGENDIAN 1
3231 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3232 echo "configure:3233: checking whether char is unsigned" >&5
3233 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3235 else
3236 if test "$GCC" = yes; then
3237 # GCC predefines this symbol on systems where it applies.
3238 cat > conftest.$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3241 #ifdef __CHAR_UNSIGNED__
3243 #endif
3246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3247 egrep "yes" >/dev/null 2>&1; then
3248 rm -rf conftest*
3249 ac_cv_c_char_unsigned=yes
3250 else
3251 rm -rf conftest*
3252 ac_cv_c_char_unsigned=no
3254 rm -f conftest*
3256 else
3257 if test "$cross_compiling" = yes; then
3258 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3259 else
3260 cat > conftest.$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3263 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3264 #if !defined(__STDC__) || __STDC__ != 1
3265 #define volatile
3266 #endif
3267 main() {
3268 volatile char c = 255; exit(c < 0);
3271 if { (eval echo configure:3272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3272 then
3273 ac_cv_c_char_unsigned=yes
3274 else
3275 echo "configure: failed program was:" >&5
3276 cat conftest.$ac_ext >&5
3277 rm -fr conftest*
3278 ac_cv_c_char_unsigned=no
3280 rm -fr conftest*
3286 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3287 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3288 cat >> confdefs.h <<\EOF
3289 #define __CHAR_UNSIGNED__ 1
3295 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3296 echo "configure:3297: checking return type of signal handlers" >&5
3297 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3299 else
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 #include <sys/types.h>
3304 #include <signal.h>
3305 #ifdef signal
3306 #undef signal
3307 #endif
3308 #ifdef __cplusplus
3309 extern "C" void (*signal (int, void (*)(int)))(int);
3310 #else
3311 void (*signal ()) ();
3312 #endif
3314 int main() {
3315 int i;
3316 ; return 0; }
3318 if { (eval echo configure:3319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3319 rm -rf conftest*
3320 ac_cv_type_signal=void
3321 else
3322 echo "configure: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3324 rm -rf conftest*
3325 ac_cv_type_signal=int
3327 rm -f conftest*
3330 echo "$ac_t""$ac_cv_type_signal" 1>&6
3331 cat >> confdefs.h <<EOF
3332 #define RETSIGTYPE $ac_cv_type_signal
3336 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3337 echo "configure:3338: checking for uid_t in sys/types.h" >&5
3338 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3339 echo $ac_n "(cached) $ac_c" 1>&6
3340 else
3341 cat > conftest.$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3344 #include <sys/types.h>
3346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3347 egrep "uid_t" >/dev/null 2>&1; then
3348 rm -rf conftest*
3349 ac_cv_type_uid_t=yes
3350 else
3351 rm -rf conftest*
3352 ac_cv_type_uid_t=no
3354 rm -f conftest*
3358 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3359 if test $ac_cv_type_uid_t = no; then
3360 cat >> confdefs.h <<\EOF
3361 #define uid_t int
3364 cat >> confdefs.h <<\EOF
3365 #define gid_t int
3370 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3371 echo "configure:3372: checking for mode_t" >&5
3372 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3374 else
3375 cat > conftest.$ac_ext <<EOF
3376 #line 3377 "configure"
3377 #include "confdefs.h"
3378 #include <sys/types.h>
3379 #if STDC_HEADERS
3380 #include <stdlib.h>
3381 #include <stddef.h>
3382 #endif
3384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3385 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3386 rm -rf conftest*
3387 ac_cv_type_mode_t=yes
3388 else
3389 rm -rf conftest*
3390 ac_cv_type_mode_t=no
3392 rm -f conftest*
3395 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3396 if test $ac_cv_type_mode_t = no; then
3397 cat >> confdefs.h <<\EOF
3398 #define mode_t int
3403 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3404 echo "configure:3405: checking for off_t" >&5
3405 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3406 echo $ac_n "(cached) $ac_c" 1>&6
3407 else
3408 cat > conftest.$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3411 #include <sys/types.h>
3412 #if STDC_HEADERS
3413 #include <stdlib.h>
3414 #include <stddef.h>
3415 #endif
3417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3418 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3419 rm -rf conftest*
3420 ac_cv_type_off_t=yes
3421 else
3422 rm -rf conftest*
3423 ac_cv_type_off_t=no
3425 rm -f conftest*
3428 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3429 if test $ac_cv_type_off_t = no; then
3430 cat >> confdefs.h <<\EOF
3431 #define off_t long
3436 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3437 echo "configure:3438: checking for size_t" >&5
3438 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3439 echo $ac_n "(cached) $ac_c" 1>&6
3440 else
3441 cat > conftest.$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3444 #include <sys/types.h>
3445 #if STDC_HEADERS
3446 #include <stdlib.h>
3447 #include <stddef.h>
3448 #endif
3450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3451 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3452 rm -rf conftest*
3453 ac_cv_type_size_t=yes
3454 else
3455 rm -rf conftest*
3456 ac_cv_type_size_t=no
3458 rm -f conftest*
3461 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3462 if test $ac_cv_type_size_t = no; then
3463 cat >> confdefs.h <<\EOF
3464 #define size_t unsigned
3469 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3470 echo "configure:3471: checking for pid_t" >&5
3471 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3472 echo $ac_n "(cached) $ac_c" 1>&6
3473 else
3474 cat > conftest.$ac_ext <<EOF
3475 #line 3476 "configure"
3476 #include "confdefs.h"
3477 #include <sys/types.h>
3478 #if STDC_HEADERS
3479 #include <stdlib.h>
3480 #include <stddef.h>
3481 #endif
3483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3484 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3485 rm -rf conftest*
3486 ac_cv_type_pid_t=yes
3487 else
3488 rm -rf conftest*
3489 ac_cv_type_pid_t=no
3491 rm -f conftest*
3494 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3495 if test $ac_cv_type_pid_t = no; then
3496 cat >> confdefs.h <<\EOF
3497 #define pid_t int
3502 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3503 echo "configure:3504: checking for st_rdev in struct stat" >&5
3504 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3505 echo $ac_n "(cached) $ac_c" 1>&6
3506 else
3507 cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3510 #include <sys/types.h>
3511 #include <sys/stat.h>
3512 int main() {
3513 struct stat s; s.st_rdev;
3514 ; return 0; }
3516 if { (eval echo configure:3517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3517 rm -rf conftest*
3518 ac_cv_struct_st_rdev=yes
3519 else
3520 echo "configure: failed program was:" >&5
3521 cat conftest.$ac_ext >&5
3522 rm -rf conftest*
3523 ac_cv_struct_st_rdev=no
3525 rm -f conftest*
3528 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3529 if test $ac_cv_struct_st_rdev = yes; then
3530 cat >> confdefs.h <<\EOF
3531 #define HAVE_ST_RDEV 1
3536 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3537 echo "configure:3538: checking for d_off in dirent" >&5
3538 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3540 else
3541 cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3545 #include <unistd.h>
3546 #include <sys/types.h>
3547 #include <dirent.h>
3548 int main() {
3549 struct dirent d; d.d_off;
3550 ; return 0; }
3552 if { (eval echo configure:3553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3553 rm -rf conftest*
3554 ac_cv_dirent_d_off=yes
3555 else
3556 echo "configure: failed program was:" >&5
3557 cat conftest.$ac_ext >&5
3558 rm -rf conftest*
3559 ac_cv_dirent_d_off=no
3561 rm -f conftest*
3564 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3565 if test $ac_cv_dirent_d_off = yes; then
3566 cat >> confdefs.h <<\EOF
3567 #define HAVE_DIRENT_D_OFF 1
3572 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3573 echo "configure:3574: checking for ino_t" >&5
3574 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3575 echo $ac_n "(cached) $ac_c" 1>&6
3576 else
3577 cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3580 #include <sys/types.h>
3581 #if STDC_HEADERS
3582 #include <stdlib.h>
3583 #include <stddef.h>
3584 #endif
3586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3587 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3588 rm -rf conftest*
3589 ac_cv_type_ino_t=yes
3590 else
3591 rm -rf conftest*
3592 ac_cv_type_ino_t=no
3594 rm -f conftest*
3597 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3598 if test $ac_cv_type_ino_t = no; then
3599 cat >> confdefs.h <<\EOF
3600 #define ino_t unsigned
3605 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3606 echo "configure:3607: checking for loff_t" >&5
3607 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3608 echo $ac_n "(cached) $ac_c" 1>&6
3609 else
3610 cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3613 #include <sys/types.h>
3614 #if STDC_HEADERS
3615 #include <stdlib.h>
3616 #include <stddef.h>
3617 #endif
3619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3620 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3621 rm -rf conftest*
3622 ac_cv_type_loff_t=yes
3623 else
3624 rm -rf conftest*
3625 ac_cv_type_loff_t=no
3627 rm -f conftest*
3630 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3631 if test $ac_cv_type_loff_t = no; then
3632 cat >> confdefs.h <<\EOF
3633 #define loff_t off_t
3638 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3639 echo "configure:3640: checking for offset_t" >&5
3640 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3641 echo $ac_n "(cached) $ac_c" 1>&6
3642 else
3643 cat > conftest.$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3646 #include <sys/types.h>
3647 #if STDC_HEADERS
3648 #include <stdlib.h>
3649 #include <stddef.h>
3650 #endif
3652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3653 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3654 rm -rf conftest*
3655 ac_cv_type_offset_t=yes
3656 else
3657 rm -rf conftest*
3658 ac_cv_type_offset_t=no
3660 rm -f conftest*
3663 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3664 if test $ac_cv_type_offset_t = no; then
3665 cat >> confdefs.h <<\EOF
3666 #define offset_t loff_t
3671 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3672 echo "configure:3673: checking for ssize_t" >&5
3673 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3675 else
3676 cat > conftest.$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3679 #include <sys/types.h>
3680 #if STDC_HEADERS
3681 #include <stdlib.h>
3682 #include <stddef.h>
3683 #endif
3685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3686 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3687 rm -rf conftest*
3688 ac_cv_type_ssize_t=yes
3689 else
3690 rm -rf conftest*
3691 ac_cv_type_ssize_t=no
3693 rm -f conftest*
3696 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3697 if test $ac_cv_type_ssize_t = no; then
3698 cat >> confdefs.h <<\EOF
3699 #define ssize_t int
3704 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3705 echo "configure:3706: checking for wchar_t" >&5
3706 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3707 echo $ac_n "(cached) $ac_c" 1>&6
3708 else
3709 cat > conftest.$ac_ext <<EOF
3710 #line 3711 "configure"
3711 #include "confdefs.h"
3712 #include <sys/types.h>
3713 #if STDC_HEADERS
3714 #include <stdlib.h>
3715 #include <stddef.h>
3716 #endif
3718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3719 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3720 rm -rf conftest*
3721 ac_cv_type_wchar_t=yes
3722 else
3723 rm -rf conftest*
3724 ac_cv_type_wchar_t=no
3726 rm -f conftest*
3729 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3730 if test $ac_cv_type_wchar_t = no; then
3731 cat >> confdefs.h <<\EOF
3732 #define wchar_t unsigned short
3738 ############################################
3739 # for cups support we need libcups, and a handful of header files
3741 # Check whether --enable-cups or --disable-cups was given.
3742 if test "${enable_cups+set}" = set; then
3743 enableval="$enable_cups"
3748 if test x$enable_cups != xno; then
3749 # Extract the first word of "cups-config", so it can be a program name with args.
3750 set dummy cups-config; ac_word=$2
3751 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3752 echo "configure:3753: checking for $ac_word" >&5
3753 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3754 echo $ac_n "(cached) $ac_c" 1>&6
3755 else
3756 case "$CUPS_CONFIG" in
3758 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
3760 ?:/*)
3761 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
3764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3765 ac_dummy="$PATH"
3766 for ac_dir in $ac_dummy; do
3767 test -z "$ac_dir" && ac_dir=.
3768 if test -f $ac_dir/$ac_word; then
3769 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
3770 break
3772 done
3773 IFS="$ac_save_ifs"
3775 esac
3777 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
3778 if test -n "$CUPS_CONFIG"; then
3779 echo "$ac_t""$CUPS_CONFIG" 1>&6
3780 else
3781 echo "$ac_t""no" 1>&6
3785 if test "x$CUPS_CONFIG" != x; then
3786 cat >> confdefs.h <<\EOF
3787 #define HAVE_CUPS 1
3790 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
3791 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3792 LIBS="$LIBS `$CUPS_CONFIG --libs`"
3796 ############################################
3797 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3798 for ac_func in dlopen
3800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3801 echo "configure:3802: checking for $ac_func" >&5
3802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3803 echo $ac_n "(cached) $ac_c" 1>&6
3804 else
3805 cat > conftest.$ac_ext <<EOF
3806 #line 3807 "configure"
3807 #include "confdefs.h"
3808 /* System header to define __stub macros and hopefully few prototypes,
3809 which can conflict with char $ac_func(); below. */
3810 #include <assert.h>
3811 /* Override any gcc2 internal prototype to avoid an error. */
3812 /* We use char because int might match the return type of a gcc2
3813 builtin and then its argument prototype would still apply. */
3814 char $ac_func();
3816 int main() {
3818 /* The GNU C library defines this for functions which it implements
3819 to always fail with ENOSYS. Some functions are actually named
3820 something starting with __ and the normal name is an alias. */
3821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3822 choke me
3823 #else
3824 $ac_func();
3825 #endif
3827 ; return 0; }
3829 if { (eval echo configure:3830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3830 rm -rf conftest*
3831 eval "ac_cv_func_$ac_func=yes"
3832 else
3833 echo "configure: failed program was:" >&5
3834 cat conftest.$ac_ext >&5
3835 rm -rf conftest*
3836 eval "ac_cv_func_$ac_func=no"
3838 rm -f conftest*
3841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3842 echo "$ac_t""yes" 1>&6
3843 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3844 cat >> confdefs.h <<EOF
3845 #define $ac_tr_func 1
3848 else
3849 echo "$ac_t""no" 1>&6
3851 done
3853 if test x"$ac_cv_func_dlopen" = x"no"; then
3854 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3855 echo "configure:3856: checking for dlopen in -ldl" >&5
3856 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3859 else
3860 ac_save_LIBS="$LIBS"
3861 LIBS="-ldl $LIBS"
3862 cat > conftest.$ac_ext <<EOF
3863 #line 3864 "configure"
3864 #include "confdefs.h"
3865 /* Override any gcc2 internal prototype to avoid an error. */
3866 /* We use char because int might match the return type of a gcc2
3867 builtin and then its argument prototype would still apply. */
3868 char dlopen();
3870 int main() {
3871 dlopen()
3872 ; return 0; }
3874 if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3875 rm -rf conftest*
3876 eval "ac_cv_lib_$ac_lib_var=yes"
3877 else
3878 echo "configure: failed program was:" >&5
3879 cat conftest.$ac_ext >&5
3880 rm -rf conftest*
3881 eval "ac_cv_lib_$ac_lib_var=no"
3883 rm -f conftest*
3884 LIBS="$ac_save_LIBS"
3887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3888 echo "$ac_t""yes" 1>&6
3889 LIBS="$LIBS -ldl";
3890 cat >> confdefs.h <<\EOF
3891 #define HAVE_DLOPEN 1
3894 else
3895 echo "$ac_t""no" 1>&6
3899 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3901 ############################################
3902 # check if the compiler can do immediate structures
3903 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3904 echo "configure:3905: checking for immediate structures" >&5
3905 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3907 else
3909 cat > conftest.$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3913 #include <stdio.h>
3914 int main() {
3916 typedef struct {unsigned x;} FOOBAR;
3917 #define X_FOOBAR(x) ((FOOBAR) { x })
3918 #define FOO_ONE X_FOOBAR(1)
3919 FOOBAR f = FOO_ONE;
3920 static struct {
3921 FOOBAR y;
3922 } f2[] = {
3923 {FOO_ONE}
3926 ; return 0; }
3928 if { (eval echo configure:3929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3929 rm -rf conftest*
3930 samba_cv_immediate_structures=yes
3931 else
3932 echo "configure: failed program was:" >&5
3933 cat conftest.$ac_ext >&5
3934 rm -rf conftest*
3935 samba_cv_immediate_structures=no
3937 rm -f conftest*
3940 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3941 if test x"$samba_cv_immediate_structures" = x"yes"; then
3942 cat >> confdefs.h <<\EOF
3943 #define HAVE_IMMEDIATE_STRUCTURES 1
3948 ############################################
3949 # check for unix domain sockets
3950 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3951 echo "configure:3952: checking for unix domain sockets" >&5
3952 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3954 else
3956 cat > conftest.$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3960 #include <sys/types.h>
3961 #include <stdlib.h>
3962 #include <stddef.h>
3963 #include <sys/socket.h>
3964 #include <sys/un.h>
3965 int main() {
3967 struct sockaddr_un sunaddr;
3968 sunaddr.sun_family = AF_UNIX;
3970 ; return 0; }
3972 if { (eval echo configure:3973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3973 rm -rf conftest*
3974 samba_cv_unixsocket=yes
3975 else
3976 echo "configure: failed program was:" >&5
3977 cat conftest.$ac_ext >&5
3978 rm -rf conftest*
3979 samba_cv_unixsocket=no
3981 rm -f conftest*
3984 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3985 if test x"$samba_cv_unixsocket" = x"yes"; then
3986 cat >> confdefs.h <<\EOF
3987 #define HAVE_UNIXSOCKET 1
3992 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3993 echo "configure:3994: checking for socklen_t type" >&5
3994 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3996 else
3998 cat > conftest.$ac_ext <<EOF
3999 #line 4000 "configure"
4000 #include "confdefs.h"
4002 #include <sys/types.h>
4003 #if STDC_HEADERS
4004 #include <stdlib.h>
4005 #include <stddef.h>
4006 #endif
4007 #include <sys/socket.h>
4008 int main() {
4009 socklen_t i = 0
4010 ; return 0; }
4012 if { (eval echo configure:4013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4013 rm -rf conftest*
4014 samba_cv_socklen_t=yes
4015 else
4016 echo "configure: failed program was:" >&5
4017 cat conftest.$ac_ext >&5
4018 rm -rf conftest*
4019 samba_cv_socklen_t=no
4021 rm -f conftest*
4024 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4025 if test x"$samba_cv_socklen_t" = x"yes"; then
4026 cat >> confdefs.h <<\EOF
4027 #define HAVE_SOCKLEN_T_TYPE 1
4032 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4033 echo "configure:4034: checking for sig_atomic_t type" >&5
4034 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4035 echo $ac_n "(cached) $ac_c" 1>&6
4036 else
4038 cat > conftest.$ac_ext <<EOF
4039 #line 4040 "configure"
4040 #include "confdefs.h"
4042 #include <sys/types.h>
4043 #if STDC_HEADERS
4044 #include <stdlib.h>
4045 #include <stddef.h>
4046 #endif
4047 #include <signal.h>
4048 int main() {
4049 sig_atomic_t i = 0
4050 ; return 0; }
4052 if { (eval echo configure:4053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4053 rm -rf conftest*
4054 samba_cv_sig_atomic_t=yes
4055 else
4056 echo "configure: failed program was:" >&5
4057 cat conftest.$ac_ext >&5
4058 rm -rf conftest*
4059 samba_cv_sig_atomic_t=no
4061 rm -f conftest*
4064 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4065 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4066 cat >> confdefs.h <<\EOF
4067 #define HAVE_SIG_ATOMIC_T_TYPE 1
4072 # stupid headers have the functions but no declaration. grrrr.
4074 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4075 echo "configure:4076: checking for errno declaration" >&5
4076 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4077 echo $ac_n "(cached) $ac_c" 1>&6
4078 else
4080 cat > conftest.$ac_ext <<EOF
4081 #line 4082 "configure"
4082 #include "confdefs.h"
4083 #include <errno.h>
4084 int main() {
4085 int i = (int)errno
4086 ; return 0; }
4088 if { (eval echo configure:4089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4089 rm -rf conftest*
4090 ac_cv_have_errno_decl=yes
4091 else
4092 echo "configure: failed program was:" >&5
4093 cat conftest.$ac_ext >&5
4094 rm -rf conftest*
4095 ac_cv_have_errno_decl=no
4097 rm -f conftest*
4100 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4101 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4102 cat >> confdefs.h <<\EOF
4103 #define HAVE_ERRNO_DECL 1
4109 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4110 echo "configure:4111: checking for setresuid declaration" >&5
4111 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4112 echo $ac_n "(cached) $ac_c" 1>&6
4113 else
4115 cat > conftest.$ac_ext <<EOF
4116 #line 4117 "configure"
4117 #include "confdefs.h"
4118 #include <unistd.h>
4119 int main() {
4120 int i = (int)setresuid
4121 ; return 0; }
4123 if { (eval echo configure:4124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4124 rm -rf conftest*
4125 ac_cv_have_setresuid_decl=yes
4126 else
4127 echo "configure: failed program was:" >&5
4128 cat conftest.$ac_ext >&5
4129 rm -rf conftest*
4130 ac_cv_have_setresuid_decl=no
4132 rm -f conftest*
4135 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4136 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4137 cat >> confdefs.h <<\EOF
4138 #define HAVE_SETRESUID_DECL 1
4144 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4145 echo "configure:4146: checking for setresgid declaration" >&5
4146 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4148 else
4150 cat > conftest.$ac_ext <<EOF
4151 #line 4152 "configure"
4152 #include "confdefs.h"
4153 #include <unistd.h>
4154 int main() {
4155 int i = (int)setresgid
4156 ; return 0; }
4158 if { (eval echo configure:4159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4159 rm -rf conftest*
4160 ac_cv_have_setresgid_decl=yes
4161 else
4162 echo "configure: failed program was:" >&5
4163 cat conftest.$ac_ext >&5
4164 rm -rf conftest*
4165 ac_cv_have_setresgid_decl=no
4167 rm -f conftest*
4170 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4171 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4172 cat >> confdefs.h <<\EOF
4173 #define HAVE_SETRESGID_DECL 1
4179 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4180 echo "configure:4181: checking for asprintf declaration" >&5
4181 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4182 echo $ac_n "(cached) $ac_c" 1>&6
4183 else
4185 cat > conftest.$ac_ext <<EOF
4186 #line 4187 "configure"
4187 #include "confdefs.h"
4188 #include <stdio.h>
4189 int main() {
4190 int i = (int)asprintf
4191 ; return 0; }
4193 if { (eval echo configure:4194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4194 rm -rf conftest*
4195 ac_cv_have_asprintf_decl=yes
4196 else
4197 echo "configure: failed program was:" >&5
4198 cat conftest.$ac_ext >&5
4199 rm -rf conftest*
4200 ac_cv_have_asprintf_decl=no
4202 rm -f conftest*
4205 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4206 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4207 cat >> confdefs.h <<\EOF
4208 #define HAVE_ASPRINTF_DECL 1
4214 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4215 echo "configure:4216: checking for vasprintf declaration" >&5
4216 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4217 echo $ac_n "(cached) $ac_c" 1>&6
4218 else
4220 cat > conftest.$ac_ext <<EOF
4221 #line 4222 "configure"
4222 #include "confdefs.h"
4223 #include <stdio.h>
4224 int main() {
4225 int i = (int)vasprintf
4226 ; return 0; }
4228 if { (eval echo configure:4229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4229 rm -rf conftest*
4230 ac_cv_have_vasprintf_decl=yes
4231 else
4232 echo "configure: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4234 rm -rf conftest*
4235 ac_cv_have_vasprintf_decl=no
4237 rm -f conftest*
4240 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4241 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4242 cat >> confdefs.h <<\EOF
4243 #define HAVE_VASPRINTF_DECL 1
4249 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4250 echo "configure:4251: checking for vsnprintf declaration" >&5
4251 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4252 echo $ac_n "(cached) $ac_c" 1>&6
4253 else
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4258 #include <stdio.h>
4259 int main() {
4260 int i = (int)vsnprintf
4261 ; return 0; }
4263 if { (eval echo configure:4264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4264 rm -rf conftest*
4265 ac_cv_have_vsnprintf_decl=yes
4266 else
4267 echo "configure: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4269 rm -rf conftest*
4270 ac_cv_have_vsnprintf_decl=no
4272 rm -f conftest*
4275 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4276 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4277 cat >> confdefs.h <<\EOF
4278 #define HAVE_VSNPRINTF_DECL 1
4284 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4285 echo "configure:4286: checking for snprintf declaration" >&5
4286 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4287 echo $ac_n "(cached) $ac_c" 1>&6
4288 else
4290 cat > conftest.$ac_ext <<EOF
4291 #line 4292 "configure"
4292 #include "confdefs.h"
4293 #include <stdio.h>
4294 int main() {
4295 int i = (int)snprintf
4296 ; return 0; }
4298 if { (eval echo configure:4299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4299 rm -rf conftest*
4300 ac_cv_have_snprintf_decl=yes
4301 else
4302 echo "configure: failed program was:" >&5
4303 cat conftest.$ac_ext >&5
4304 rm -rf conftest*
4305 ac_cv_have_snprintf_decl=no
4307 rm -f conftest*
4310 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4311 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4312 cat >> confdefs.h <<\EOF
4313 #define HAVE_SNPRINTF_DECL 1
4319 # and glibc has setresuid under linux but the function does
4320 # nothing until kernel 2.1.44! very dumb.
4321 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4322 echo "configure:4323: checking for real setresuid" >&5
4323 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4324 echo $ac_n "(cached) $ac_c" 1>&6
4325 else
4327 if test "$cross_compiling" = yes; then
4328 samba_cv_have_setresuid=cross
4329 else
4330 cat > conftest.$ac_ext <<EOF
4331 #line 4332 "configure"
4332 #include "confdefs.h"
4333 #include <errno.h>
4334 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4336 if { (eval echo configure:4337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4337 then
4338 samba_cv_have_setresuid=yes
4339 else
4340 echo "configure: failed program was:" >&5
4341 cat conftest.$ac_ext >&5
4342 rm -fr conftest*
4343 samba_cv_have_setresuid=no
4345 rm -fr conftest*
4350 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4351 if test x"$samba_cv_have_setresuid" = x"yes"; then
4352 cat >> confdefs.h <<\EOF
4353 #define HAVE_SETRESUID 1
4358 # Do the same check for setresguid...
4360 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4361 echo "configure:4362: checking for real setresgid" >&5
4362 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4363 echo $ac_n "(cached) $ac_c" 1>&6
4364 else
4366 if test "$cross_compiling" = yes; then
4367 samba_cv_have_setresgid=cross
4368 else
4369 cat > conftest.$ac_ext <<EOF
4370 #line 4371 "configure"
4371 #include "confdefs.h"
4372 #include <unistd.h>
4373 #include <errno.h>
4374 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4376 if { (eval echo configure:4377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4377 then
4378 samba_cv_have_setresgid=yes
4379 else
4380 echo "configure: failed program was:" >&5
4381 cat conftest.$ac_ext >&5
4382 rm -fr conftest*
4383 samba_cv_have_setresgid=no
4385 rm -fr conftest*
4390 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4391 if test x"$samba_cv_have_setresgid" = x"yes"; then
4392 cat >> confdefs.h <<\EOF
4393 #define HAVE_SETRESGID 1
4398 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4399 echo "configure:4400: checking for 8-bit clean memcmp" >&5
4400 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4401 echo $ac_n "(cached) $ac_c" 1>&6
4402 else
4403 if test "$cross_compiling" = yes; then
4404 ac_cv_func_memcmp_clean=no
4405 else
4406 cat > conftest.$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4410 main()
4412 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4413 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4417 if { (eval echo configure:4418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4418 then
4419 ac_cv_func_memcmp_clean=yes
4420 else
4421 echo "configure: failed program was:" >&5
4422 cat conftest.$ac_ext >&5
4423 rm -fr conftest*
4424 ac_cv_func_memcmp_clean=no
4426 rm -fr conftest*
4431 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4432 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4435 ###############################################
4436 # Readline included by default unless explicitly asked not to
4437 test "${with_readline+set}" != "set" && with_readline=yes
4439 # test for where we get readline() from
4440 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4441 echo "configure:4442: checking whether to use readline" >&5
4442 # Check whether --with-readline or --without-readline was given.
4443 if test "${with_readline+set}" = set; then
4444 withval="$with_readline"
4445 case "$with_readline" in
4446 yes)
4447 echo "$ac_t""yes" 1>&6
4449 for ac_hdr in readline.h history.h readline/readline.h
4451 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4452 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4453 echo "configure:4454: checking for $ac_hdr" >&5
4454 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4455 echo $ac_n "(cached) $ac_c" 1>&6
4456 else
4457 cat > conftest.$ac_ext <<EOF
4458 #line 4459 "configure"
4459 #include "confdefs.h"
4460 #include <$ac_hdr>
4462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4463 { (eval echo configure:4464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4465 if test -z "$ac_err"; then
4466 rm -rf conftest*
4467 eval "ac_cv_header_$ac_safe=yes"
4468 else
4469 echo "$ac_err" >&5
4470 echo "configure: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4472 rm -rf conftest*
4473 eval "ac_cv_header_$ac_safe=no"
4475 rm -f conftest*
4477 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4478 echo "$ac_t""yes" 1>&6
4479 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4480 cat >> confdefs.h <<EOF
4481 #define $ac_tr_hdr 1
4484 else
4485 echo "$ac_t""no" 1>&6
4487 done
4489 for ac_hdr in readline/history.h
4491 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4492 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4493 echo "configure:4494: checking for $ac_hdr" >&5
4494 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4495 echo $ac_n "(cached) $ac_c" 1>&6
4496 else
4497 cat > conftest.$ac_ext <<EOF
4498 #line 4499 "configure"
4499 #include "confdefs.h"
4500 #include <$ac_hdr>
4502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4503 { (eval echo configure:4504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4505 if test -z "$ac_err"; then
4506 rm -rf conftest*
4507 eval "ac_cv_header_$ac_safe=yes"
4508 else
4509 echo "$ac_err" >&5
4510 echo "configure: failed program was:" >&5
4511 cat conftest.$ac_ext >&5
4512 rm -rf conftest*
4513 eval "ac_cv_header_$ac_safe=no"
4515 rm -f conftest*
4517 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4518 echo "$ac_t""yes" 1>&6
4519 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4520 cat >> confdefs.h <<EOF
4521 #define $ac_tr_hdr 1
4524 else
4525 echo "$ac_t""no" 1>&6
4527 done
4530 for ac_hdr in readline.h readline/readline.h
4532 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4534 echo "configure:4535: checking for $ac_hdr" >&5
4535 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4536 echo $ac_n "(cached) $ac_c" 1>&6
4537 else
4538 cat > conftest.$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4541 #include <$ac_hdr>
4543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4544 { (eval echo configure:4545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4546 if test -z "$ac_err"; then
4547 rm -rf conftest*
4548 eval "ac_cv_header_$ac_safe=yes"
4549 else
4550 echo "$ac_err" >&5
4551 echo "configure: failed program was:" >&5
4552 cat conftest.$ac_ext >&5
4553 rm -rf conftest*
4554 eval "ac_cv_header_$ac_safe=no"
4556 rm -f conftest*
4558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4559 echo "$ac_t""yes" 1>&6
4560 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4561 cat >> confdefs.h <<EOF
4562 #define $ac_tr_hdr 1
4565 for termlib in ncurses curses termcap terminfo termlib; do
4566 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4567 echo "configure:4568: checking for tgetent in -l${termlib}" >&5
4568 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4569 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4570 echo $ac_n "(cached) $ac_c" 1>&6
4571 else
4572 ac_save_LIBS="$LIBS"
4573 LIBS="-l${termlib} $LIBS"
4574 cat > conftest.$ac_ext <<EOF
4575 #line 4576 "configure"
4576 #include "confdefs.h"
4577 /* Override any gcc2 internal prototype to avoid an error. */
4578 /* We use char because int might match the return type of a gcc2
4579 builtin and then its argument prototype would still apply. */
4580 char tgetent();
4582 int main() {
4583 tgetent()
4584 ; return 0; }
4586 if { (eval echo configure:4587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4587 rm -rf conftest*
4588 eval "ac_cv_lib_$ac_lib_var=yes"
4589 else
4590 echo "configure: failed program was:" >&5
4591 cat conftest.$ac_ext >&5
4592 rm -rf conftest*
4593 eval "ac_cv_lib_$ac_lib_var=no"
4595 rm -f conftest*
4596 LIBS="$ac_save_LIBS"
4599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4600 echo "$ac_t""yes" 1>&6
4601 TERMLIBS="-l${termlib}"; break
4602 else
4603 echo "$ac_t""no" 1>&6
4606 done
4607 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4608 echo "configure:4609: checking for rl_callback_handler_install in -lreadline" >&5
4609 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4611 echo $ac_n "(cached) $ac_c" 1>&6
4612 else
4613 ac_save_LIBS="$LIBS"
4614 LIBS="-lreadline $TERMLIBS $LIBS"
4615 cat > conftest.$ac_ext <<EOF
4616 #line 4617 "configure"
4617 #include "confdefs.h"
4618 /* Override any gcc2 internal prototype to avoid an error. */
4619 /* We use char because int might match the return type of a gcc2
4620 builtin and then its argument prototype would still apply. */
4621 char rl_callback_handler_install();
4623 int main() {
4624 rl_callback_handler_install()
4625 ; return 0; }
4627 if { (eval echo configure:4628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4628 rm -rf conftest*
4629 eval "ac_cv_lib_$ac_lib_var=yes"
4630 else
4631 echo "configure: failed program was:" >&5
4632 cat conftest.$ac_ext >&5
4633 rm -rf conftest*
4634 eval "ac_cv_lib_$ac_lib_var=no"
4636 rm -f conftest*
4637 LIBS="$ac_save_LIBS"
4640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4641 echo "$ac_t""yes" 1>&6
4642 TERMLIBS="-lreadline $TERMLIBS"
4643 cat >> confdefs.h <<\EOF
4644 #define HAVE_LIBREADLINE 1
4647 break
4648 else
4649 echo "$ac_t""no" 1>&6
4650 TERMLIBS=
4653 else
4654 echo "$ac_t""no" 1>&6
4656 done
4660 echo "$ac_t""no" 1>&6
4663 echo "$ac_t""yes" 1>&6
4665 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4666 # alternate readline path
4667 _ldflags=${LDFLAGS}
4668 _cppflags=${CPPFLAGS}
4670 # Add additional search path
4671 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4672 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4674 for ac_hdr in readline.h history.h readline/readline.h
4676 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4677 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4678 echo "configure:4679: checking for $ac_hdr" >&5
4679 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4681 else
4682 cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4685 #include <$ac_hdr>
4687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4688 { (eval echo configure:4689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4690 if test -z "$ac_err"; then
4691 rm -rf conftest*
4692 eval "ac_cv_header_$ac_safe=yes"
4693 else
4694 echo "$ac_err" >&5
4695 echo "configure: failed program was:" >&5
4696 cat conftest.$ac_ext >&5
4697 rm -rf conftest*
4698 eval "ac_cv_header_$ac_safe=no"
4700 rm -f conftest*
4702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4703 echo "$ac_t""yes" 1>&6
4704 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4705 cat >> confdefs.h <<EOF
4706 #define $ac_tr_hdr 1
4709 else
4710 echo "$ac_t""no" 1>&6
4712 done
4714 for ac_hdr in readline/history.h
4716 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4717 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4718 echo "configure:4719: checking for $ac_hdr" >&5
4719 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4720 echo $ac_n "(cached) $ac_c" 1>&6
4721 else
4722 cat > conftest.$ac_ext <<EOF
4723 #line 4724 "configure"
4724 #include "confdefs.h"
4725 #include <$ac_hdr>
4727 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4728 { (eval echo configure:4729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4729 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4730 if test -z "$ac_err"; then
4731 rm -rf conftest*
4732 eval "ac_cv_header_$ac_safe=yes"
4733 else
4734 echo "$ac_err" >&5
4735 echo "configure: failed program was:" >&5
4736 cat conftest.$ac_ext >&5
4737 rm -rf conftest*
4738 eval "ac_cv_header_$ac_safe=no"
4740 rm -f conftest*
4742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4743 echo "$ac_t""yes" 1>&6
4744 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4745 cat >> confdefs.h <<EOF
4746 #define $ac_tr_hdr 1
4749 else
4750 echo "$ac_t""no" 1>&6
4752 done
4755 for ac_hdr in readline.h readline/readline.h
4757 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4758 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4759 echo "configure:4760: checking for $ac_hdr" >&5
4760 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4761 echo $ac_n "(cached) $ac_c" 1>&6
4762 else
4763 cat > conftest.$ac_ext <<EOF
4764 #line 4765 "configure"
4765 #include "confdefs.h"
4766 #include <$ac_hdr>
4768 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4769 { (eval echo configure:4770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4770 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4771 if test -z "$ac_err"; then
4772 rm -rf conftest*
4773 eval "ac_cv_header_$ac_safe=yes"
4774 else
4775 echo "$ac_err" >&5
4776 echo "configure: failed program was:" >&5
4777 cat conftest.$ac_ext >&5
4778 rm -rf conftest*
4779 eval "ac_cv_header_$ac_safe=no"
4781 rm -f conftest*
4783 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4784 echo "$ac_t""yes" 1>&6
4785 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4786 cat >> confdefs.h <<EOF
4787 #define $ac_tr_hdr 1
4790 for termlib in ncurses curses termcap terminfo termlib; do
4791 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4792 echo "configure:4793: checking for tgetent in -l${termlib}" >&5
4793 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4795 echo $ac_n "(cached) $ac_c" 1>&6
4796 else
4797 ac_save_LIBS="$LIBS"
4798 LIBS="-l${termlib} $LIBS"
4799 cat > conftest.$ac_ext <<EOF
4800 #line 4801 "configure"
4801 #include "confdefs.h"
4802 /* Override any gcc2 internal prototype to avoid an error. */
4803 /* We use char because int might match the return type of a gcc2
4804 builtin and then its argument prototype would still apply. */
4805 char tgetent();
4807 int main() {
4808 tgetent()
4809 ; return 0; }
4811 if { (eval echo configure:4812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4812 rm -rf conftest*
4813 eval "ac_cv_lib_$ac_lib_var=yes"
4814 else
4815 echo "configure: failed program was:" >&5
4816 cat conftest.$ac_ext >&5
4817 rm -rf conftest*
4818 eval "ac_cv_lib_$ac_lib_var=no"
4820 rm -f conftest*
4821 LIBS="$ac_save_LIBS"
4824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4825 echo "$ac_t""yes" 1>&6
4826 TERMLIBS="-l${termlib}"; break
4827 else
4828 echo "$ac_t""no" 1>&6
4831 done
4832 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4833 echo "configure:4834: checking for rl_callback_handler_install in -lreadline" >&5
4834 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4836 echo $ac_n "(cached) $ac_c" 1>&6
4837 else
4838 ac_save_LIBS="$LIBS"
4839 LIBS="-lreadline $TERMLIBS $LIBS"
4840 cat > conftest.$ac_ext <<EOF
4841 #line 4842 "configure"
4842 #include "confdefs.h"
4843 /* Override any gcc2 internal prototype to avoid an error. */
4844 /* We use char because int might match the return type of a gcc2
4845 builtin and then its argument prototype would still apply. */
4846 char rl_callback_handler_install();
4848 int main() {
4849 rl_callback_handler_install()
4850 ; return 0; }
4852 if { (eval echo configure:4853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4853 rm -rf conftest*
4854 eval "ac_cv_lib_$ac_lib_var=yes"
4855 else
4856 echo "configure: failed program was:" >&5
4857 cat conftest.$ac_ext >&5
4858 rm -rf conftest*
4859 eval "ac_cv_lib_$ac_lib_var=no"
4861 rm -f conftest*
4862 LIBS="$ac_save_LIBS"
4865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4866 echo "$ac_t""yes" 1>&6
4867 TERMLDFLAGS="-L$with_readline/lib"
4868 TERMCPPFLAGS="-I$with_readline/include"
4869 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4870 TERMLIBS="-lreadline $TERMLIBS"
4871 cat >> confdefs.h <<\EOF
4872 #define HAVE_LIBREADLINE 1
4875 break
4876 else
4877 echo "$ac_t""no" 1>&6
4878 TERMLIBS= CPPFLAGS=$_cppflags
4881 else
4882 echo "$ac_t""no" 1>&6
4884 done
4887 LDFLAGS=$_ldflags
4889 esac
4890 else
4891 echo "$ac_t""no" 1>&6
4898 # The following test taken from the cvs sources
4899 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4900 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4901 # libsocket.so which has a bad implementation of gethostbyname (it
4902 # only looks in /etc/hosts), so we only look for -lsocket if we need
4903 # it.
4904 for ac_func in connect
4906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4907 echo "configure:4908: checking for $ac_func" >&5
4908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4909 echo $ac_n "(cached) $ac_c" 1>&6
4910 else
4911 cat > conftest.$ac_ext <<EOF
4912 #line 4913 "configure"
4913 #include "confdefs.h"
4914 /* System header to define __stub macros and hopefully few prototypes,
4915 which can conflict with char $ac_func(); below. */
4916 #include <assert.h>
4917 /* Override any gcc2 internal prototype to avoid an error. */
4918 /* We use char because int might match the return type of a gcc2
4919 builtin and then its argument prototype would still apply. */
4920 char $ac_func();
4922 int main() {
4924 /* The GNU C library defines this for functions which it implements
4925 to always fail with ENOSYS. Some functions are actually named
4926 something starting with __ and the normal name is an alias. */
4927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4928 choke me
4929 #else
4930 $ac_func();
4931 #endif
4933 ; return 0; }
4935 if { (eval echo configure:4936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4936 rm -rf conftest*
4937 eval "ac_cv_func_$ac_func=yes"
4938 else
4939 echo "configure: failed program was:" >&5
4940 cat conftest.$ac_ext >&5
4941 rm -rf conftest*
4942 eval "ac_cv_func_$ac_func=no"
4944 rm -f conftest*
4947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4948 echo "$ac_t""yes" 1>&6
4949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4950 cat >> confdefs.h <<EOF
4951 #define $ac_tr_func 1
4954 else
4955 echo "$ac_t""no" 1>&6
4957 done
4959 if test x"$ac_cv_func_connect" = x"no"; then
4960 case "$LIBS" in
4961 *-lnsl*) ;;
4962 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4963 echo "configure:4964: checking for printf in -lnsl_s" >&5
4964 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4966 echo $ac_n "(cached) $ac_c" 1>&6
4967 else
4968 ac_save_LIBS="$LIBS"
4969 LIBS="-lnsl_s $LIBS"
4970 cat > conftest.$ac_ext <<EOF
4971 #line 4972 "configure"
4972 #include "confdefs.h"
4973 /* Override any gcc2 internal prototype to avoid an error. */
4974 /* We use char because int might match the return type of a gcc2
4975 builtin and then its argument prototype would still apply. */
4976 char printf();
4978 int main() {
4979 printf()
4980 ; return 0; }
4982 if { (eval echo configure:4983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4983 rm -rf conftest*
4984 eval "ac_cv_lib_$ac_lib_var=yes"
4985 else
4986 echo "configure: failed program was:" >&5
4987 cat conftest.$ac_ext >&5
4988 rm -rf conftest*
4989 eval "ac_cv_lib_$ac_lib_var=no"
4991 rm -f conftest*
4992 LIBS="$ac_save_LIBS"
4995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4996 echo "$ac_t""yes" 1>&6
4997 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4998 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4999 cat >> confdefs.h <<EOF
5000 #define $ac_tr_lib 1
5003 LIBS="-lnsl_s $LIBS"
5005 else
5006 echo "$ac_t""no" 1>&6
5009 esac
5010 case "$LIBS" in
5011 *-lnsl*) ;;
5012 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5013 echo "configure:5014: checking for printf in -lnsl" >&5
5014 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5016 echo $ac_n "(cached) $ac_c" 1>&6
5017 else
5018 ac_save_LIBS="$LIBS"
5019 LIBS="-lnsl $LIBS"
5020 cat > conftest.$ac_ext <<EOF
5021 #line 5022 "configure"
5022 #include "confdefs.h"
5023 /* Override any gcc2 internal prototype to avoid an error. */
5024 /* We use char because int might match the return type of a gcc2
5025 builtin and then its argument prototype would still apply. */
5026 char printf();
5028 int main() {
5029 printf()
5030 ; return 0; }
5032 if { (eval echo configure:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5033 rm -rf conftest*
5034 eval "ac_cv_lib_$ac_lib_var=yes"
5035 else
5036 echo "configure: failed program was:" >&5
5037 cat conftest.$ac_ext >&5
5038 rm -rf conftest*
5039 eval "ac_cv_lib_$ac_lib_var=no"
5041 rm -f conftest*
5042 LIBS="$ac_save_LIBS"
5045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5046 echo "$ac_t""yes" 1>&6
5047 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5048 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5049 cat >> confdefs.h <<EOF
5050 #define $ac_tr_lib 1
5053 LIBS="-lnsl $LIBS"
5055 else
5056 echo "$ac_t""no" 1>&6
5059 esac
5060 case "$LIBS" in
5061 *-lsocket*) ;;
5062 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5063 echo "configure:5064: checking for connect in -lsocket" >&5
5064 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5066 echo $ac_n "(cached) $ac_c" 1>&6
5067 else
5068 ac_save_LIBS="$LIBS"
5069 LIBS="-lsocket $LIBS"
5070 cat > conftest.$ac_ext <<EOF
5071 #line 5072 "configure"
5072 #include "confdefs.h"
5073 /* Override any gcc2 internal prototype to avoid an error. */
5074 /* We use char because int might match the return type of a gcc2
5075 builtin and then its argument prototype would still apply. */
5076 char connect();
5078 int main() {
5079 connect()
5080 ; return 0; }
5082 if { (eval echo configure:5083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5083 rm -rf conftest*
5084 eval "ac_cv_lib_$ac_lib_var=yes"
5085 else
5086 echo "configure: failed program was:" >&5
5087 cat conftest.$ac_ext >&5
5088 rm -rf conftest*
5089 eval "ac_cv_lib_$ac_lib_var=no"
5091 rm -f conftest*
5092 LIBS="$ac_save_LIBS"
5095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5096 echo "$ac_t""yes" 1>&6
5097 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5098 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5099 cat >> confdefs.h <<EOF
5100 #define $ac_tr_lib 1
5103 LIBS="-lsocket $LIBS"
5105 else
5106 echo "$ac_t""no" 1>&6
5109 esac
5110 case "$LIBS" in
5111 *-linet*) ;;
5112 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5113 echo "configure:5114: checking for connect in -linet" >&5
5114 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5115 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5117 else
5118 ac_save_LIBS="$LIBS"
5119 LIBS="-linet $LIBS"
5120 cat > conftest.$ac_ext <<EOF
5121 #line 5122 "configure"
5122 #include "confdefs.h"
5123 /* Override any gcc2 internal prototype to avoid an error. */
5124 /* We use char because int might match the return type of a gcc2
5125 builtin and then its argument prototype would still apply. */
5126 char connect();
5128 int main() {
5129 connect()
5130 ; return 0; }
5132 if { (eval echo configure:5133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5133 rm -rf conftest*
5134 eval "ac_cv_lib_$ac_lib_var=yes"
5135 else
5136 echo "configure: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5138 rm -rf conftest*
5139 eval "ac_cv_lib_$ac_lib_var=no"
5141 rm -f conftest*
5142 LIBS="$ac_save_LIBS"
5145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5146 echo "$ac_t""yes" 1>&6
5147 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5148 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5149 cat >> confdefs.h <<EOF
5150 #define $ac_tr_lib 1
5153 LIBS="-linet $LIBS"
5155 else
5156 echo "$ac_t""no" 1>&6
5159 esac
5160 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5161 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5162 # ac_cv_func_connect=yes
5163 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5164 cat >> confdefs.h <<\EOF
5165 #define HAVE_CONNECT 1
5171 ###############################################
5172 # test for where we get get_yp_default_domain() from
5173 for ac_func in yp_get_default_domain
5175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5176 echo "configure:5177: checking for $ac_func" >&5
5177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5178 echo $ac_n "(cached) $ac_c" 1>&6
5179 else
5180 cat > conftest.$ac_ext <<EOF
5181 #line 5182 "configure"
5182 #include "confdefs.h"
5183 /* System header to define __stub macros and hopefully few prototypes,
5184 which can conflict with char $ac_func(); below. */
5185 #include <assert.h>
5186 /* Override any gcc2 internal prototype to avoid an error. */
5187 /* We use char because int might match the return type of a gcc2
5188 builtin and then its argument prototype would still apply. */
5189 char $ac_func();
5191 int main() {
5193 /* The GNU C library defines this for functions which it implements
5194 to always fail with ENOSYS. Some functions are actually named
5195 something starting with __ and the normal name is an alias. */
5196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5197 choke me
5198 #else
5199 $ac_func();
5200 #endif
5202 ; return 0; }
5204 if { (eval echo configure:5205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5205 rm -rf conftest*
5206 eval "ac_cv_func_$ac_func=yes"
5207 else
5208 echo "configure: failed program was:" >&5
5209 cat conftest.$ac_ext >&5
5210 rm -rf conftest*
5211 eval "ac_cv_func_$ac_func=no"
5213 rm -f conftest*
5216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5217 echo "$ac_t""yes" 1>&6
5218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5219 cat >> confdefs.h <<EOF
5220 #define $ac_tr_func 1
5223 else
5224 echo "$ac_t""no" 1>&6
5226 done
5228 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5229 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5230 echo "configure:5231: checking for yp_get_default_domain in -lnsl" >&5
5231 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5233 echo $ac_n "(cached) $ac_c" 1>&6
5234 else
5235 ac_save_LIBS="$LIBS"
5236 LIBS="-lnsl $LIBS"
5237 cat > conftest.$ac_ext <<EOF
5238 #line 5239 "configure"
5239 #include "confdefs.h"
5240 /* Override any gcc2 internal prototype to avoid an error. */
5241 /* We use char because int might match the return type of a gcc2
5242 builtin and then its argument prototype would still apply. */
5243 char yp_get_default_domain();
5245 int main() {
5246 yp_get_default_domain()
5247 ; return 0; }
5249 if { (eval echo configure:5250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5250 rm -rf conftest*
5251 eval "ac_cv_lib_$ac_lib_var=yes"
5252 else
5253 echo "configure: failed program was:" >&5
5254 cat conftest.$ac_ext >&5
5255 rm -rf conftest*
5256 eval "ac_cv_lib_$ac_lib_var=no"
5258 rm -f conftest*
5259 LIBS="$ac_save_LIBS"
5262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5263 echo "$ac_t""yes" 1>&6
5264 LIBS="$LIBS -lnsl";
5265 cat >> confdefs.h <<\EOF
5266 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5269 else
5270 echo "$ac_t""no" 1>&6
5275 # Check if we have execl, if not we need to compile smbrun.
5276 for ac_func in execl
5278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5279 echo "configure:5280: checking for $ac_func" >&5
5280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5281 echo $ac_n "(cached) $ac_c" 1>&6
5282 else
5283 cat > conftest.$ac_ext <<EOF
5284 #line 5285 "configure"
5285 #include "confdefs.h"
5286 /* System header to define __stub macros and hopefully few prototypes,
5287 which can conflict with char $ac_func(); below. */
5288 #include <assert.h>
5289 /* Override any gcc2 internal prototype to avoid an error. */
5290 /* We use char because int might match the return type of a gcc2
5291 builtin and then its argument prototype would still apply. */
5292 char $ac_func();
5294 int main() {
5296 /* The GNU C library defines this for functions which it implements
5297 to always fail with ENOSYS. Some functions are actually named
5298 something starting with __ and the normal name is an alias. */
5299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5300 choke me
5301 #else
5302 $ac_func();
5303 #endif
5305 ; return 0; }
5307 if { (eval echo configure:5308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5308 rm -rf conftest*
5309 eval "ac_cv_func_$ac_func=yes"
5310 else
5311 echo "configure: failed program was:" >&5
5312 cat conftest.$ac_ext >&5
5313 rm -rf conftest*
5314 eval "ac_cv_func_$ac_func=no"
5316 rm -f conftest*
5319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5320 echo "$ac_t""yes" 1>&6
5321 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5322 cat >> confdefs.h <<EOF
5323 #define $ac_tr_func 1
5326 else
5327 echo "$ac_t""no" 1>&6
5329 done
5331 if test x"$ac_cv_func_execl" = x"no"; then
5332 RUNPROG="bin/smbrun"
5333 else
5334 RUNPROG=""
5337 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link
5339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5340 echo "configure:5341: checking for $ac_func" >&5
5341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5342 echo $ac_n "(cached) $ac_c" 1>&6
5343 else
5344 cat > conftest.$ac_ext <<EOF
5345 #line 5346 "configure"
5346 #include "confdefs.h"
5347 /* System header to define __stub macros and hopefully few prototypes,
5348 which can conflict with char $ac_func(); below. */
5349 #include <assert.h>
5350 /* Override any gcc2 internal prototype to avoid an error. */
5351 /* We use char because int might match the return type of a gcc2
5352 builtin and then its argument prototype would still apply. */
5353 char $ac_func();
5355 int main() {
5357 /* The GNU C library defines this for functions which it implements
5358 to always fail with ENOSYS. Some functions are actually named
5359 something starting with __ and the normal name is an alias. */
5360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5361 choke me
5362 #else
5363 $ac_func();
5364 #endif
5366 ; return 0; }
5368 if { (eval echo configure:5369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5369 rm -rf conftest*
5370 eval "ac_cv_func_$ac_func=yes"
5371 else
5372 echo "configure: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5374 rm -rf conftest*
5375 eval "ac_cv_func_$ac_func=no"
5377 rm -f conftest*
5380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5381 echo "$ac_t""yes" 1>&6
5382 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5383 cat >> confdefs.h <<EOF
5384 #define $ac_tr_func 1
5387 else
5388 echo "$ac_t""no" 1>&6
5390 done
5392 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid mknod mknod64
5394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5395 echo "configure:5396: checking for $ac_func" >&5
5396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5397 echo $ac_n "(cached) $ac_c" 1>&6
5398 else
5399 cat > conftest.$ac_ext <<EOF
5400 #line 5401 "configure"
5401 #include "confdefs.h"
5402 /* System header to define __stub macros and hopefully few prototypes,
5403 which can conflict with char $ac_func(); below. */
5404 #include <assert.h>
5405 /* Override any gcc2 internal prototype to avoid an error. */
5406 /* We use char because int might match the return type of a gcc2
5407 builtin and then its argument prototype would still apply. */
5408 char $ac_func();
5410 int main() {
5412 /* The GNU C library defines this for functions which it implements
5413 to always fail with ENOSYS. Some functions are actually named
5414 something starting with __ and the normal name is an alias. */
5415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5416 choke me
5417 #else
5418 $ac_func();
5419 #endif
5421 ; return 0; }
5423 if { (eval echo configure:5424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5424 rm -rf conftest*
5425 eval "ac_cv_func_$ac_func=yes"
5426 else
5427 echo "configure: failed program was:" >&5
5428 cat conftest.$ac_ext >&5
5429 rm -rf conftest*
5430 eval "ac_cv_func_$ac_func=no"
5432 rm -f conftest*
5435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5436 echo "$ac_t""yes" 1>&6
5437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5438 cat >> confdefs.h <<EOF
5439 #define $ac_tr_func 1
5442 else
5443 echo "$ac_t""no" 1>&6
5445 done
5447 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5450 echo "configure:5451: checking for $ac_func" >&5
5451 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5452 echo $ac_n "(cached) $ac_c" 1>&6
5453 else
5454 cat > conftest.$ac_ext <<EOF
5455 #line 5456 "configure"
5456 #include "confdefs.h"
5457 /* System header to define __stub macros and hopefully few prototypes,
5458 which can conflict with char $ac_func(); below. */
5459 #include <assert.h>
5460 /* Override any gcc2 internal prototype to avoid an error. */
5461 /* We use char because int might match the return type of a gcc2
5462 builtin and then its argument prototype would still apply. */
5463 char $ac_func();
5465 int main() {
5467 /* The GNU C library defines this for functions which it implements
5468 to always fail with ENOSYS. Some functions are actually named
5469 something starting with __ and the normal name is an alias. */
5470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5471 choke me
5472 #else
5473 $ac_func();
5474 #endif
5476 ; return 0; }
5478 if { (eval echo configure:5479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5479 rm -rf conftest*
5480 eval "ac_cv_func_$ac_func=yes"
5481 else
5482 echo "configure: failed program was:" >&5
5483 cat conftest.$ac_ext >&5
5484 rm -rf conftest*
5485 eval "ac_cv_func_$ac_func=no"
5487 rm -f conftest*
5490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5491 echo "$ac_t""yes" 1>&6
5492 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5493 cat >> confdefs.h <<EOF
5494 #define $ac_tr_func 1
5497 else
5498 echo "$ac_t""no" 1>&6
5500 done
5502 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5505 echo "configure:5506: checking for $ac_func" >&5
5506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5507 echo $ac_n "(cached) $ac_c" 1>&6
5508 else
5509 cat > conftest.$ac_ext <<EOF
5510 #line 5511 "configure"
5511 #include "confdefs.h"
5512 /* System header to define __stub macros and hopefully few prototypes,
5513 which can conflict with char $ac_func(); below. */
5514 #include <assert.h>
5515 /* Override any gcc2 internal prototype to avoid an error. */
5516 /* We use char because int might match the return type of a gcc2
5517 builtin and then its argument prototype would still apply. */
5518 char $ac_func();
5520 int main() {
5522 /* The GNU C library defines this for functions which it implements
5523 to always fail with ENOSYS. Some functions are actually named
5524 something starting with __ and the normal name is an alias. */
5525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5526 choke me
5527 #else
5528 $ac_func();
5529 #endif
5531 ; return 0; }
5533 if { (eval echo configure:5534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5534 rm -rf conftest*
5535 eval "ac_cv_func_$ac_func=yes"
5536 else
5537 echo "configure: failed program was:" >&5
5538 cat conftest.$ac_ext >&5
5539 rm -rf conftest*
5540 eval "ac_cv_func_$ac_func=no"
5542 rm -f conftest*
5545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5546 echo "$ac_t""yes" 1>&6
5547 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5548 cat >> confdefs.h <<EOF
5549 #define $ac_tr_func 1
5552 else
5553 echo "$ac_t""no" 1>&6
5555 done
5557 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5560 echo "configure:5561: checking for $ac_func" >&5
5561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5562 echo $ac_n "(cached) $ac_c" 1>&6
5563 else
5564 cat > conftest.$ac_ext <<EOF
5565 #line 5566 "configure"
5566 #include "confdefs.h"
5567 /* System header to define __stub macros and hopefully few prototypes,
5568 which can conflict with char $ac_func(); below. */
5569 #include <assert.h>
5570 /* Override any gcc2 internal prototype to avoid an error. */
5571 /* We use char because int might match the return type of a gcc2
5572 builtin and then its argument prototype would still apply. */
5573 char $ac_func();
5575 int main() {
5577 /* The GNU C library defines this for functions which it implements
5578 to always fail with ENOSYS. Some functions are actually named
5579 something starting with __ and the normal name is an alias. */
5580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5581 choke me
5582 #else
5583 $ac_func();
5584 #endif
5586 ; return 0; }
5588 if { (eval echo configure:5589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5589 rm -rf conftest*
5590 eval "ac_cv_func_$ac_func=yes"
5591 else
5592 echo "configure: failed program was:" >&5
5593 cat conftest.$ac_ext >&5
5594 rm -rf conftest*
5595 eval "ac_cv_func_$ac_func=no"
5597 rm -f conftest*
5600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5601 echo "$ac_t""yes" 1>&6
5602 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5603 cat >> confdefs.h <<EOF
5604 #define $ac_tr_func 1
5607 else
5608 echo "$ac_t""no" 1>&6
5610 done
5612 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5615 echo "configure:5616: checking for $ac_func" >&5
5616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5617 echo $ac_n "(cached) $ac_c" 1>&6
5618 else
5619 cat > conftest.$ac_ext <<EOF
5620 #line 5621 "configure"
5621 #include "confdefs.h"
5622 /* System header to define __stub macros and hopefully few prototypes,
5623 which can conflict with char $ac_func(); below. */
5624 #include <assert.h>
5625 /* Override any gcc2 internal prototype to avoid an error. */
5626 /* We use char because int might match the return type of a gcc2
5627 builtin and then its argument prototype would still apply. */
5628 char $ac_func();
5630 int main() {
5632 /* The GNU C library defines this for functions which it implements
5633 to always fail with ENOSYS. Some functions are actually named
5634 something starting with __ and the normal name is an alias. */
5635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5636 choke me
5637 #else
5638 $ac_func();
5639 #endif
5641 ; return 0; }
5643 if { (eval echo configure:5644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5644 rm -rf conftest*
5645 eval "ac_cv_func_$ac_func=yes"
5646 else
5647 echo "configure: failed program was:" >&5
5648 cat conftest.$ac_ext >&5
5649 rm -rf conftest*
5650 eval "ac_cv_func_$ac_func=no"
5652 rm -f conftest*
5655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5656 echo "$ac_t""yes" 1>&6
5657 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5658 cat >> confdefs.h <<EOF
5659 #define $ac_tr_func 1
5662 else
5663 echo "$ac_t""no" 1>&6
5665 done
5667 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5670 echo "configure:5671: checking for $ac_func" >&5
5671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5672 echo $ac_n "(cached) $ac_c" 1>&6
5673 else
5674 cat > conftest.$ac_ext <<EOF
5675 #line 5676 "configure"
5676 #include "confdefs.h"
5677 /* System header to define __stub macros and hopefully few prototypes,
5678 which can conflict with char $ac_func(); below. */
5679 #include <assert.h>
5680 /* Override any gcc2 internal prototype to avoid an error. */
5681 /* We use char because int might match the return type of a gcc2
5682 builtin and then its argument prototype would still apply. */
5683 char $ac_func();
5685 int main() {
5687 /* The GNU C library defines this for functions which it implements
5688 to always fail with ENOSYS. Some functions are actually named
5689 something starting with __ and the normal name is an alias. */
5690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5691 choke me
5692 #else
5693 $ac_func();
5694 #endif
5696 ; return 0; }
5698 if { (eval echo configure:5699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5699 rm -rf conftest*
5700 eval "ac_cv_func_$ac_func=yes"
5701 else
5702 echo "configure: failed program was:" >&5
5703 cat conftest.$ac_ext >&5
5704 rm -rf conftest*
5705 eval "ac_cv_func_$ac_func=no"
5707 rm -f conftest*
5710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5711 echo "$ac_t""yes" 1>&6
5712 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5713 cat >> confdefs.h <<EOF
5714 #define $ac_tr_func 1
5717 else
5718 echo "$ac_t""no" 1>&6
5720 done
5722 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5725 echo "configure:5726: checking for $ac_func" >&5
5726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5727 echo $ac_n "(cached) $ac_c" 1>&6
5728 else
5729 cat > conftest.$ac_ext <<EOF
5730 #line 5731 "configure"
5731 #include "confdefs.h"
5732 /* System header to define __stub macros and hopefully few prototypes,
5733 which can conflict with char $ac_func(); below. */
5734 #include <assert.h>
5735 /* Override any gcc2 internal prototype to avoid an error. */
5736 /* We use char because int might match the return type of a gcc2
5737 builtin and then its argument prototype would still apply. */
5738 char $ac_func();
5740 int main() {
5742 /* The GNU C library defines this for functions which it implements
5743 to always fail with ENOSYS. Some functions are actually named
5744 something starting with __ and the normal name is an alias. */
5745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5746 choke me
5747 #else
5748 $ac_func();
5749 #endif
5751 ; return 0; }
5753 if { (eval echo configure:5754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5754 rm -rf conftest*
5755 eval "ac_cv_func_$ac_func=yes"
5756 else
5757 echo "configure: failed program was:" >&5
5758 cat conftest.$ac_ext >&5
5759 rm -rf conftest*
5760 eval "ac_cv_func_$ac_func=no"
5762 rm -f conftest*
5765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5766 echo "$ac_t""yes" 1>&6
5767 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5768 cat >> confdefs.h <<EOF
5769 #define $ac_tr_func 1
5772 else
5773 echo "$ac_t""no" 1>&6
5775 done
5777 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5780 echo "configure:5781: checking for $ac_func" >&5
5781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5782 echo $ac_n "(cached) $ac_c" 1>&6
5783 else
5784 cat > conftest.$ac_ext <<EOF
5785 #line 5786 "configure"
5786 #include "confdefs.h"
5787 /* System header to define __stub macros and hopefully few prototypes,
5788 which can conflict with char $ac_func(); below. */
5789 #include <assert.h>
5790 /* Override any gcc2 internal prototype to avoid an error. */
5791 /* We use char because int might match the return type of a gcc2
5792 builtin and then its argument prototype would still apply. */
5793 char $ac_func();
5795 int main() {
5797 /* The GNU C library defines this for functions which it implements
5798 to always fail with ENOSYS. Some functions are actually named
5799 something starting with __ and the normal name is an alias. */
5800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5801 choke me
5802 #else
5803 $ac_func();
5804 #endif
5806 ; return 0; }
5808 if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5809 rm -rf conftest*
5810 eval "ac_cv_func_$ac_func=yes"
5811 else
5812 echo "configure: failed program was:" >&5
5813 cat conftest.$ac_ext >&5
5814 rm -rf conftest*
5815 eval "ac_cv_func_$ac_func=no"
5817 rm -f conftest*
5820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5821 echo "$ac_t""yes" 1>&6
5822 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5823 cat >> confdefs.h <<EOF
5824 #define $ac_tr_func 1
5827 else
5828 echo "$ac_t""no" 1>&6
5830 done
5832 for ac_func in syslog vsyslog
5834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5835 echo "configure:5836: checking for $ac_func" >&5
5836 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5837 echo $ac_n "(cached) $ac_c" 1>&6
5838 else
5839 cat > conftest.$ac_ext <<EOF
5840 #line 5841 "configure"
5841 #include "confdefs.h"
5842 /* System header to define __stub macros and hopefully few prototypes,
5843 which can conflict with char $ac_func(); below. */
5844 #include <assert.h>
5845 /* Override any gcc2 internal prototype to avoid an error. */
5846 /* We use char because int might match the return type of a gcc2
5847 builtin and then its argument prototype would still apply. */
5848 char $ac_func();
5850 int main() {
5852 /* The GNU C library defines this for functions which it implements
5853 to always fail with ENOSYS. Some functions are actually named
5854 something starting with __ and the normal name is an alias. */
5855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5856 choke me
5857 #else
5858 $ac_func();
5859 #endif
5861 ; return 0; }
5863 if { (eval echo configure:5864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5864 rm -rf conftest*
5865 eval "ac_cv_func_$ac_func=yes"
5866 else
5867 echo "configure: failed program was:" >&5
5868 cat conftest.$ac_ext >&5
5869 rm -rf conftest*
5870 eval "ac_cv_func_$ac_func=no"
5872 rm -f conftest*
5875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5876 echo "$ac_t""yes" 1>&6
5877 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5878 cat >> confdefs.h <<EOF
5879 #define $ac_tr_func 1
5882 else
5883 echo "$ac_t""no" 1>&6
5885 done
5888 # syscall() is needed for smbwrapper.
5889 for ac_func in syscall
5891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5892 echo "configure:5893: checking for $ac_func" >&5
5893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5894 echo $ac_n "(cached) $ac_c" 1>&6
5895 else
5896 cat > conftest.$ac_ext <<EOF
5897 #line 5898 "configure"
5898 #include "confdefs.h"
5899 /* System header to define __stub macros and hopefully few prototypes,
5900 which can conflict with char $ac_func(); below. */
5901 #include <assert.h>
5902 /* Override any gcc2 internal prototype to avoid an error. */
5903 /* We use char because int might match the return type of a gcc2
5904 builtin and then its argument prototype would still apply. */
5905 char $ac_func();
5907 int main() {
5909 /* The GNU C library defines this for functions which it implements
5910 to always fail with ENOSYS. Some functions are actually named
5911 something starting with __ and the normal name is an alias. */
5912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5913 choke me
5914 #else
5915 $ac_func();
5916 #endif
5918 ; return 0; }
5920 if { (eval echo configure:5921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5921 rm -rf conftest*
5922 eval "ac_cv_func_$ac_func=yes"
5923 else
5924 echo "configure: failed program was:" >&5
5925 cat conftest.$ac_ext >&5
5926 rm -rf conftest*
5927 eval "ac_cv_func_$ac_func=no"
5929 rm -f conftest*
5932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5933 echo "$ac_t""yes" 1>&6
5934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5935 cat >> confdefs.h <<EOF
5936 #define $ac_tr_func 1
5939 else
5940 echo "$ac_t""no" 1>&6
5942 done
5945 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5948 echo "configure:5949: checking for $ac_func" >&5
5949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5950 echo $ac_n "(cached) $ac_c" 1>&6
5951 else
5952 cat > conftest.$ac_ext <<EOF
5953 #line 5954 "configure"
5954 #include "confdefs.h"
5955 /* System header to define __stub macros and hopefully few prototypes,
5956 which can conflict with char $ac_func(); below. */
5957 #include <assert.h>
5958 /* Override any gcc2 internal prototype to avoid an error. */
5959 /* We use char because int might match the return type of a gcc2
5960 builtin and then its argument prototype would still apply. */
5961 char $ac_func();
5963 int main() {
5965 /* The GNU C library defines this for functions which it implements
5966 to always fail with ENOSYS. Some functions are actually named
5967 something starting with __ and the normal name is an alias. */
5968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5969 choke me
5970 #else
5971 $ac_func();
5972 #endif
5974 ; return 0; }
5976 if { (eval echo configure:5977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5977 rm -rf conftest*
5978 eval "ac_cv_func_$ac_func=yes"
5979 else
5980 echo "configure: failed program was:" >&5
5981 cat conftest.$ac_ext >&5
5982 rm -rf conftest*
5983 eval "ac_cv_func_$ac_func=no"
5985 rm -f conftest*
5988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5989 echo "$ac_t""yes" 1>&6
5990 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5991 cat >> confdefs.h <<EOF
5992 #define $ac_tr_func 1
5995 else
5996 echo "$ac_t""no" 1>&6
5998 done
6000 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6003 echo "configure:6004: checking for $ac_func" >&5
6004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6005 echo $ac_n "(cached) $ac_c" 1>&6
6006 else
6007 cat > conftest.$ac_ext <<EOF
6008 #line 6009 "configure"
6009 #include "confdefs.h"
6010 /* System header to define __stub macros and hopefully few prototypes,
6011 which can conflict with char $ac_func(); below. */
6012 #include <assert.h>
6013 /* Override any gcc2 internal prototype to avoid an error. */
6014 /* We use char because int might match the return type of a gcc2
6015 builtin and then its argument prototype would still apply. */
6016 char $ac_func();
6018 int main() {
6020 /* The GNU C library defines this for functions which it implements
6021 to always fail with ENOSYS. Some functions are actually named
6022 something starting with __ and the normal name is an alias. */
6023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6024 choke me
6025 #else
6026 $ac_func();
6027 #endif
6029 ; return 0; }
6031 if { (eval echo configure:6032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6032 rm -rf conftest*
6033 eval "ac_cv_func_$ac_func=yes"
6034 else
6035 echo "configure: failed program was:" >&5
6036 cat conftest.$ac_ext >&5
6037 rm -rf conftest*
6038 eval "ac_cv_func_$ac_func=no"
6040 rm -f conftest*
6043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6044 echo "$ac_t""yes" 1>&6
6045 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6046 cat >> confdefs.h <<EOF
6047 #define $ac_tr_func 1
6050 else
6051 echo "$ac_t""no" 1>&6
6053 done
6055 for ac_func in __getcwd _getcwd
6057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6058 echo "configure:6059: checking for $ac_func" >&5
6059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6060 echo $ac_n "(cached) $ac_c" 1>&6
6061 else
6062 cat > conftest.$ac_ext <<EOF
6063 #line 6064 "configure"
6064 #include "confdefs.h"
6065 /* System header to define __stub macros and hopefully few prototypes,
6066 which can conflict with char $ac_func(); below. */
6067 #include <assert.h>
6068 /* Override any gcc2 internal prototype to avoid an error. */
6069 /* We use char because int might match the return type of a gcc2
6070 builtin and then its argument prototype would still apply. */
6071 char $ac_func();
6073 int main() {
6075 /* The GNU C library defines this for functions which it implements
6076 to always fail with ENOSYS. Some functions are actually named
6077 something starting with __ and the normal name is an alias. */
6078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6079 choke me
6080 #else
6081 $ac_func();
6082 #endif
6084 ; return 0; }
6086 if { (eval echo configure:6087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6087 rm -rf conftest*
6088 eval "ac_cv_func_$ac_func=yes"
6089 else
6090 echo "configure: failed program was:" >&5
6091 cat conftest.$ac_ext >&5
6092 rm -rf conftest*
6093 eval "ac_cv_func_$ac_func=no"
6095 rm -f conftest*
6098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6099 echo "$ac_t""yes" 1>&6
6100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6101 cat >> confdefs.h <<EOF
6102 #define $ac_tr_func 1
6105 else
6106 echo "$ac_t""no" 1>&6
6108 done
6110 for ac_func in __xstat __fxstat __lxstat
6112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6113 echo "configure:6114: checking for $ac_func" >&5
6114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6115 echo $ac_n "(cached) $ac_c" 1>&6
6116 else
6117 cat > conftest.$ac_ext <<EOF
6118 #line 6119 "configure"
6119 #include "confdefs.h"
6120 /* System header to define __stub macros and hopefully few prototypes,
6121 which can conflict with char $ac_func(); below. */
6122 #include <assert.h>
6123 /* Override any gcc2 internal prototype to avoid an error. */
6124 /* We use char because int might match the return type of a gcc2
6125 builtin and then its argument prototype would still apply. */
6126 char $ac_func();
6128 int main() {
6130 /* The GNU C library defines this for functions which it implements
6131 to always fail with ENOSYS. Some functions are actually named
6132 something starting with __ and the normal name is an alias. */
6133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6134 choke me
6135 #else
6136 $ac_func();
6137 #endif
6139 ; return 0; }
6141 if { (eval echo configure:6142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6142 rm -rf conftest*
6143 eval "ac_cv_func_$ac_func=yes"
6144 else
6145 echo "configure: failed program was:" >&5
6146 cat conftest.$ac_ext >&5
6147 rm -rf conftest*
6148 eval "ac_cv_func_$ac_func=no"
6150 rm -f conftest*
6153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6154 echo "$ac_t""yes" 1>&6
6155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6156 cat >> confdefs.h <<EOF
6157 #define $ac_tr_func 1
6160 else
6161 echo "$ac_t""no" 1>&6
6163 done
6165 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6168 echo "configure:6169: checking for $ac_func" >&5
6169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6170 echo $ac_n "(cached) $ac_c" 1>&6
6171 else
6172 cat > conftest.$ac_ext <<EOF
6173 #line 6174 "configure"
6174 #include "confdefs.h"
6175 /* System header to define __stub macros and hopefully few prototypes,
6176 which can conflict with char $ac_func(); below. */
6177 #include <assert.h>
6178 /* Override any gcc2 internal prototype to avoid an error. */
6179 /* We use char because int might match the return type of a gcc2
6180 builtin and then its argument prototype would still apply. */
6181 char $ac_func();
6183 int main() {
6185 /* The GNU C library defines this for functions which it implements
6186 to always fail with ENOSYS. Some functions are actually named
6187 something starting with __ and the normal name is an alias. */
6188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6189 choke me
6190 #else
6191 $ac_func();
6192 #endif
6194 ; return 0; }
6196 if { (eval echo configure:6197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6197 rm -rf conftest*
6198 eval "ac_cv_func_$ac_func=yes"
6199 else
6200 echo "configure: failed program was:" >&5
6201 cat conftest.$ac_ext >&5
6202 rm -rf conftest*
6203 eval "ac_cv_func_$ac_func=no"
6205 rm -f conftest*
6208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6209 echo "$ac_t""yes" 1>&6
6210 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6211 cat >> confdefs.h <<EOF
6212 #define $ac_tr_func 1
6215 else
6216 echo "$ac_t""no" 1>&6
6218 done
6220 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6223 echo "configure:6224: checking for $ac_func" >&5
6224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6225 echo $ac_n "(cached) $ac_c" 1>&6
6226 else
6227 cat > conftest.$ac_ext <<EOF
6228 #line 6229 "configure"
6229 #include "confdefs.h"
6230 /* System header to define __stub macros and hopefully few prototypes,
6231 which can conflict with char $ac_func(); below. */
6232 #include <assert.h>
6233 /* Override any gcc2 internal prototype to avoid an error. */
6234 /* We use char because int might match the return type of a gcc2
6235 builtin and then its argument prototype would still apply. */
6236 char $ac_func();
6238 int main() {
6240 /* The GNU C library defines this for functions which it implements
6241 to always fail with ENOSYS. Some functions are actually named
6242 something starting with __ and the normal name is an alias. */
6243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6244 choke me
6245 #else
6246 $ac_func();
6247 #endif
6249 ; return 0; }
6251 if { (eval echo configure:6252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6252 rm -rf conftest*
6253 eval "ac_cv_func_$ac_func=yes"
6254 else
6255 echo "configure: failed program was:" >&5
6256 cat conftest.$ac_ext >&5
6257 rm -rf conftest*
6258 eval "ac_cv_func_$ac_func=no"
6260 rm -f conftest*
6263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6264 echo "$ac_t""yes" 1>&6
6265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6266 cat >> confdefs.h <<EOF
6267 #define $ac_tr_func 1
6270 else
6271 echo "$ac_t""no" 1>&6
6273 done
6275 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6278 echo "configure:6279: checking for $ac_func" >&5
6279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6280 echo $ac_n "(cached) $ac_c" 1>&6
6281 else
6282 cat > conftest.$ac_ext <<EOF
6283 #line 6284 "configure"
6284 #include "confdefs.h"
6285 /* System header to define __stub macros and hopefully few prototypes,
6286 which can conflict with char $ac_func(); below. */
6287 #include <assert.h>
6288 /* Override any gcc2 internal prototype to avoid an error. */
6289 /* We use char because int might match the return type of a gcc2
6290 builtin and then its argument prototype would still apply. */
6291 char $ac_func();
6293 int main() {
6295 /* The GNU C library defines this for functions which it implements
6296 to always fail with ENOSYS. Some functions are actually named
6297 something starting with __ and the normal name is an alias. */
6298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6299 choke me
6300 #else
6301 $ac_func();
6302 #endif
6304 ; return 0; }
6306 if { (eval echo configure:6307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6307 rm -rf conftest*
6308 eval "ac_cv_func_$ac_func=yes"
6309 else
6310 echo "configure: failed program was:" >&5
6311 cat conftest.$ac_ext >&5
6312 rm -rf conftest*
6313 eval "ac_cv_func_$ac_func=no"
6315 rm -f conftest*
6318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6319 echo "$ac_t""yes" 1>&6
6320 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6321 cat >> confdefs.h <<EOF
6322 #define $ac_tr_func 1
6325 else
6326 echo "$ac_t""no" 1>&6
6328 done
6330 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6333 echo "configure:6334: checking for $ac_func" >&5
6334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6335 echo $ac_n "(cached) $ac_c" 1>&6
6336 else
6337 cat > conftest.$ac_ext <<EOF
6338 #line 6339 "configure"
6339 #include "confdefs.h"
6340 /* System header to define __stub macros and hopefully few prototypes,
6341 which can conflict with char $ac_func(); below. */
6342 #include <assert.h>
6343 /* Override any gcc2 internal prototype to avoid an error. */
6344 /* We use char because int might match the return type of a gcc2
6345 builtin and then its argument prototype would still apply. */
6346 char $ac_func();
6348 int main() {
6350 /* The GNU C library defines this for functions which it implements
6351 to always fail with ENOSYS. Some functions are actually named
6352 something starting with __ and the normal name is an alias. */
6353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6354 choke me
6355 #else
6356 $ac_func();
6357 #endif
6359 ; return 0; }
6361 if { (eval echo configure:6362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6362 rm -rf conftest*
6363 eval "ac_cv_func_$ac_func=yes"
6364 else
6365 echo "configure: failed program was:" >&5
6366 cat conftest.$ac_ext >&5
6367 rm -rf conftest*
6368 eval "ac_cv_func_$ac_func=no"
6370 rm -f conftest*
6373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6374 echo "$ac_t""yes" 1>&6
6375 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6376 cat >> confdefs.h <<EOF
6377 #define $ac_tr_func 1
6380 else
6381 echo "$ac_t""no" 1>&6
6383 done
6385 for ac_func in _write __write _fork __fork
6387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6388 echo "configure:6389: checking for $ac_func" >&5
6389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6390 echo $ac_n "(cached) $ac_c" 1>&6
6391 else
6392 cat > conftest.$ac_ext <<EOF
6393 #line 6394 "configure"
6394 #include "confdefs.h"
6395 /* System header to define __stub macros and hopefully few prototypes,
6396 which can conflict with char $ac_func(); below. */
6397 #include <assert.h>
6398 /* Override any gcc2 internal prototype to avoid an error. */
6399 /* We use char because int might match the return type of a gcc2
6400 builtin and then its argument prototype would still apply. */
6401 char $ac_func();
6403 int main() {
6405 /* The GNU C library defines this for functions which it implements
6406 to always fail with ENOSYS. Some functions are actually named
6407 something starting with __ and the normal name is an alias. */
6408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6409 choke me
6410 #else
6411 $ac_func();
6412 #endif
6414 ; return 0; }
6416 if { (eval echo configure:6417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6417 rm -rf conftest*
6418 eval "ac_cv_func_$ac_func=yes"
6419 else
6420 echo "configure: failed program was:" >&5
6421 cat conftest.$ac_ext >&5
6422 rm -rf conftest*
6423 eval "ac_cv_func_$ac_func=no"
6425 rm -f conftest*
6428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6429 echo "$ac_t""yes" 1>&6
6430 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6431 cat >> confdefs.h <<EOF
6432 #define $ac_tr_func 1
6435 else
6436 echo "$ac_t""no" 1>&6
6438 done
6440 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6443 echo "configure:6444: checking for $ac_func" >&5
6444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6445 echo $ac_n "(cached) $ac_c" 1>&6
6446 else
6447 cat > conftest.$ac_ext <<EOF
6448 #line 6449 "configure"
6449 #include "confdefs.h"
6450 /* System header to define __stub macros and hopefully few prototypes,
6451 which can conflict with char $ac_func(); below. */
6452 #include <assert.h>
6453 /* Override any gcc2 internal prototype to avoid an error. */
6454 /* We use char because int might match the return type of a gcc2
6455 builtin and then its argument prototype would still apply. */
6456 char $ac_func();
6458 int main() {
6460 /* The GNU C library defines this for functions which it implements
6461 to always fail with ENOSYS. Some functions are actually named
6462 something starting with __ and the normal name is an alias. */
6463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6464 choke me
6465 #else
6466 $ac_func();
6467 #endif
6469 ; return 0; }
6471 if { (eval echo configure:6472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6472 rm -rf conftest*
6473 eval "ac_cv_func_$ac_func=yes"
6474 else
6475 echo "configure: failed program was:" >&5
6476 cat conftest.$ac_ext >&5
6477 rm -rf conftest*
6478 eval "ac_cv_func_$ac_func=no"
6480 rm -f conftest*
6483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6484 echo "$ac_t""yes" 1>&6
6485 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6486 cat >> confdefs.h <<EOF
6487 #define $ac_tr_func 1
6490 else
6491 echo "$ac_t""no" 1>&6
6493 done
6495 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6498 echo "configure:6499: checking for $ac_func" >&5
6499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6500 echo $ac_n "(cached) $ac_c" 1>&6
6501 else
6502 cat > conftest.$ac_ext <<EOF
6503 #line 6504 "configure"
6504 #include "confdefs.h"
6505 /* System header to define __stub macros and hopefully few prototypes,
6506 which can conflict with char $ac_func(); below. */
6507 #include <assert.h>
6508 /* Override any gcc2 internal prototype to avoid an error. */
6509 /* We use char because int might match the return type of a gcc2
6510 builtin and then its argument prototype would still apply. */
6511 char $ac_func();
6513 int main() {
6515 /* The GNU C library defines this for functions which it implements
6516 to always fail with ENOSYS. Some functions are actually named
6517 something starting with __ and the normal name is an alias. */
6518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6519 choke me
6520 #else
6521 $ac_func();
6522 #endif
6524 ; return 0; }
6526 if { (eval echo configure:6527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6527 rm -rf conftest*
6528 eval "ac_cv_func_$ac_func=yes"
6529 else
6530 echo "configure: failed program was:" >&5
6531 cat conftest.$ac_ext >&5
6532 rm -rf conftest*
6533 eval "ac_cv_func_$ac_func=no"
6535 rm -f conftest*
6538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6539 echo "$ac_t""yes" 1>&6
6540 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6541 cat >> confdefs.h <<EOF
6542 #define $ac_tr_func 1
6545 else
6546 echo "$ac_t""no" 1>&6
6548 done
6550 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6553 echo "configure:6554: checking for $ac_func" >&5
6554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6555 echo $ac_n "(cached) $ac_c" 1>&6
6556 else
6557 cat > conftest.$ac_ext <<EOF
6558 #line 6559 "configure"
6559 #include "confdefs.h"
6560 /* System header to define __stub macros and hopefully few prototypes,
6561 which can conflict with char $ac_func(); below. */
6562 #include <assert.h>
6563 /* Override any gcc2 internal prototype to avoid an error. */
6564 /* We use char because int might match the return type of a gcc2
6565 builtin and then its argument prototype would still apply. */
6566 char $ac_func();
6568 int main() {
6570 /* The GNU C library defines this for functions which it implements
6571 to always fail with ENOSYS. Some functions are actually named
6572 something starting with __ and the normal name is an alias. */
6573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6574 choke me
6575 #else
6576 $ac_func();
6577 #endif
6579 ; return 0; }
6581 if { (eval echo configure:6582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6582 rm -rf conftest*
6583 eval "ac_cv_func_$ac_func=yes"
6584 else
6585 echo "configure: failed program was:" >&5
6586 cat conftest.$ac_ext >&5
6587 rm -rf conftest*
6588 eval "ac_cv_func_$ac_func=no"
6590 rm -f conftest*
6593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6594 echo "$ac_t""yes" 1>&6
6595 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6596 cat >> confdefs.h <<EOF
6597 #define $ac_tr_func 1
6600 else
6601 echo "$ac_t""no" 1>&6
6603 done
6605 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6608 echo "configure:6609: checking for $ac_func" >&5
6609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6610 echo $ac_n "(cached) $ac_c" 1>&6
6611 else
6612 cat > conftest.$ac_ext <<EOF
6613 #line 6614 "configure"
6614 #include "confdefs.h"
6615 /* System header to define __stub macros and hopefully few prototypes,
6616 which can conflict with char $ac_func(); below. */
6617 #include <assert.h>
6618 /* Override any gcc2 internal prototype to avoid an error. */
6619 /* We use char because int might match the return type of a gcc2
6620 builtin and then its argument prototype would still apply. */
6621 char $ac_func();
6623 int main() {
6625 /* The GNU C library defines this for functions which it implements
6626 to always fail with ENOSYS. Some functions are actually named
6627 something starting with __ and the normal name is an alias. */
6628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6629 choke me
6630 #else
6631 $ac_func();
6632 #endif
6634 ; return 0; }
6636 if { (eval echo configure:6637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6637 rm -rf conftest*
6638 eval "ac_cv_func_$ac_func=yes"
6639 else
6640 echo "configure: failed program was:" >&5
6641 cat conftest.$ac_ext >&5
6642 rm -rf conftest*
6643 eval "ac_cv_func_$ac_func=no"
6645 rm -f conftest*
6648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6649 echo "$ac_t""yes" 1>&6
6650 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6651 cat >> confdefs.h <<EOF
6652 #define $ac_tr_func 1
6655 else
6656 echo "$ac_t""no" 1>&6
6658 done
6660 for ac_func in open64 _open64 __open64 creat64
6662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6663 echo "configure:6664: checking for $ac_func" >&5
6664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6665 echo $ac_n "(cached) $ac_c" 1>&6
6666 else
6667 cat > conftest.$ac_ext <<EOF
6668 #line 6669 "configure"
6669 #include "confdefs.h"
6670 /* System header to define __stub macros and hopefully few prototypes,
6671 which can conflict with char $ac_func(); below. */
6672 #include <assert.h>
6673 /* Override any gcc2 internal prototype to avoid an error. */
6674 /* We use char because int might match the return type of a gcc2
6675 builtin and then its argument prototype would still apply. */
6676 char $ac_func();
6678 int main() {
6680 /* The GNU C library defines this for functions which it implements
6681 to always fail with ENOSYS. Some functions are actually named
6682 something starting with __ and the normal name is an alias. */
6683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6684 choke me
6685 #else
6686 $ac_func();
6687 #endif
6689 ; return 0; }
6691 if { (eval echo configure:6692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6692 rm -rf conftest*
6693 eval "ac_cv_func_$ac_func=yes"
6694 else
6695 echo "configure: failed program was:" >&5
6696 cat conftest.$ac_ext >&5
6697 rm -rf conftest*
6698 eval "ac_cv_func_$ac_func=no"
6700 rm -f conftest*
6703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6704 echo "$ac_t""yes" 1>&6
6705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6706 cat >> confdefs.h <<EOF
6707 #define $ac_tr_func 1
6710 else
6711 echo "$ac_t""no" 1>&6
6713 done
6717 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6720 if test x$ac_cv_func_stat64 = xno ; then
6721 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6722 echo "configure:6723: checking for stat64 in <sys/stat.h>" >&5
6723 cat > conftest.$ac_ext <<EOF
6724 #line 6725 "configure"
6725 #include "confdefs.h"
6727 #if defined(HAVE_UNISTD_H)
6728 #include <unistd.h>
6729 #endif
6730 #include <sys/stat.h>
6732 int main() {
6733 struct stat64 st64; exit(stat64(".",&st64));
6734 ; return 0; }
6736 if { (eval echo configure:6737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6737 rm -rf conftest*
6738 ac_cv_func_stat64=yes
6739 else
6740 echo "configure: failed program was:" >&5
6741 cat conftest.$ac_ext >&5
6743 rm -f conftest*
6744 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6745 if test x$ac_cv_func_stat64 = xyes ; then
6746 cat >> confdefs.h <<\EOF
6747 #define HAVE_STAT64 1
6753 if test x$ac_cv_func_lstat64 = xno ; then
6754 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6755 echo "configure:6756: checking for lstat64 in <sys/stat.h>" >&5
6756 cat > conftest.$ac_ext <<EOF
6757 #line 6758 "configure"
6758 #include "confdefs.h"
6760 #if defined(HAVE_UNISTD_H)
6761 #include <unistd.h>
6762 #endif
6763 #include <sys/stat.h>
6765 int main() {
6766 struct stat64 st64; exit(lstat64(".",&st64));
6767 ; return 0; }
6769 if { (eval echo configure:6770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6770 rm -rf conftest*
6771 ac_cv_func_lstat64=yes
6772 else
6773 echo "configure: failed program was:" >&5
6774 cat conftest.$ac_ext >&5
6776 rm -f conftest*
6777 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6778 if test x$ac_cv_func_lstat64 = xyes ; then
6779 cat >> confdefs.h <<\EOF
6780 #define HAVE_LSTAT64 1
6786 if test x$ac_cv_func_fstat64 = xno ; then
6787 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6788 echo "configure:6789: checking for fstat64 in <sys/stat.h>" >&5
6789 cat > conftest.$ac_ext <<EOF
6790 #line 6791 "configure"
6791 #include "confdefs.h"
6793 #if defined(HAVE_UNISTD_H)
6794 #include <unistd.h>
6795 #endif
6796 #include <sys/stat.h>
6798 int main() {
6799 struct stat64 st64; exit(fstat64(0,&st64));
6800 ; return 0; }
6802 if { (eval echo configure:6803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6803 rm -rf conftest*
6804 ac_cv_func_fstat64=yes
6805 else
6806 echo "configure: failed program was:" >&5
6807 cat conftest.$ac_ext >&5
6809 rm -f conftest*
6810 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6811 if test x$ac_cv_func_fstat64 = xyes ; then
6812 cat >> confdefs.h <<\EOF
6813 #define HAVE_FSTAT64 1
6820 # If no strcasecmp, check for it in some known places
6821 # It is in -lresolv on ReliantUNIX and UnixWare
6822 # -lresolve *must* follow -lnsl for name resolution to work properly
6825 if test x$ac_cv_func_strcasecmp = xno ; then
6826 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6827 echo "configure:6828: checking for strcasecmp in -lresolv" >&5
6828 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6829 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6830 echo $ac_n "(cached) $ac_c" 1>&6
6831 else
6832 ac_save_LIBS="$LIBS"
6833 LIBS="-lresolv $LIBS"
6834 cat > conftest.$ac_ext <<EOF
6835 #line 6836 "configure"
6836 #include "confdefs.h"
6837 /* Override any gcc2 internal prototype to avoid an error. */
6838 /* We use char because int might match the return type of a gcc2
6839 builtin and then its argument prototype would still apply. */
6840 char strcasecmp();
6842 int main() {
6843 strcasecmp()
6844 ; return 0; }
6846 if { (eval echo configure:6847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6847 rm -rf conftest*
6848 eval "ac_cv_lib_$ac_lib_var=yes"
6849 else
6850 echo "configure: failed program was:" >&5
6851 cat conftest.$ac_ext >&5
6852 rm -rf conftest*
6853 eval "ac_cv_lib_$ac_lib_var=no"
6855 rm -f conftest*
6856 LIBS="$ac_save_LIBS"
6859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6860 echo "$ac_t""yes" 1>&6
6861 LIBS="$LIBS -lresolv"
6862 cat >> confdefs.h <<\EOF
6863 #define HAVE_STRCASECMP 1
6866 else
6867 echo "$ac_t""no" 1>&6
6873 # Check for the functions putprpwnam, set_auth_parameters,
6874 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6875 # Needed for OSF1 and HPUX.
6878 case "$LIBS" in
6879 *-lsecurity*) for ac_func in putprpwnam
6881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6882 echo "configure:6883: checking for $ac_func" >&5
6883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6884 echo $ac_n "(cached) $ac_c" 1>&6
6885 else
6886 cat > conftest.$ac_ext <<EOF
6887 #line 6888 "configure"
6888 #include "confdefs.h"
6889 /* System header to define __stub macros and hopefully few prototypes,
6890 which can conflict with char $ac_func(); below. */
6891 #include <assert.h>
6892 /* Override any gcc2 internal prototype to avoid an error. */
6893 /* We use char because int might match the return type of a gcc2
6894 builtin and then its argument prototype would still apply. */
6895 char $ac_func();
6897 int main() {
6899 /* The GNU C library defines this for functions which it implements
6900 to always fail with ENOSYS. Some functions are actually named
6901 something starting with __ and the normal name is an alias. */
6902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6903 choke me
6904 #else
6905 $ac_func();
6906 #endif
6908 ; return 0; }
6910 if { (eval echo configure:6911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6911 rm -rf conftest*
6912 eval "ac_cv_func_$ac_func=yes"
6913 else
6914 echo "configure: failed program was:" >&5
6915 cat conftest.$ac_ext >&5
6916 rm -rf conftest*
6917 eval "ac_cv_func_$ac_func=no"
6919 rm -f conftest*
6922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6923 echo "$ac_t""yes" 1>&6
6924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6925 cat >> confdefs.h <<EOF
6926 #define $ac_tr_func 1
6929 else
6930 echo "$ac_t""no" 1>&6
6932 done
6934 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6935 echo "configure:6936: checking for putprpwnam in -lsecurity" >&5
6936 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6938 echo $ac_n "(cached) $ac_c" 1>&6
6939 else
6940 ac_save_LIBS="$LIBS"
6941 LIBS="-lsecurity $LIBS"
6942 cat > conftest.$ac_ext <<EOF
6943 #line 6944 "configure"
6944 #include "confdefs.h"
6945 /* Override any gcc2 internal prototype to avoid an error. */
6946 /* We use char because int might match the return type of a gcc2
6947 builtin and then its argument prototype would still apply. */
6948 char putprpwnam();
6950 int main() {
6951 putprpwnam()
6952 ; return 0; }
6954 if { (eval echo configure:6955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6955 rm -rf conftest*
6956 eval "ac_cv_lib_$ac_lib_var=yes"
6957 else
6958 echo "configure: failed program was:" >&5
6959 cat conftest.$ac_ext >&5
6960 rm -rf conftest*
6961 eval "ac_cv_lib_$ac_lib_var=no"
6963 rm -f conftest*
6964 LIBS="$ac_save_LIBS"
6967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6968 echo "$ac_t""yes" 1>&6
6969 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6970 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6971 cat >> confdefs.h <<EOF
6972 #define $ac_tr_lib 1
6975 LIBS="-lsecurity $LIBS"
6977 else
6978 echo "$ac_t""no" 1>&6
6981 for ac_func in putprpwnam
6983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6984 echo "configure:6985: checking for $ac_func" >&5
6985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6986 echo $ac_n "(cached) $ac_c" 1>&6
6987 else
6988 cat > conftest.$ac_ext <<EOF
6989 #line 6990 "configure"
6990 #include "confdefs.h"
6991 /* System header to define __stub macros and hopefully few prototypes,
6992 which can conflict with char $ac_func(); below. */
6993 #include <assert.h>
6994 /* Override any gcc2 internal prototype to avoid an error. */
6995 /* We use char because int might match the return type of a gcc2
6996 builtin and then its argument prototype would still apply. */
6997 char $ac_func();
6999 int main() {
7001 /* The GNU C library defines this for functions which it implements
7002 to always fail with ENOSYS. Some functions are actually named
7003 something starting with __ and the normal name is an alias. */
7004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7005 choke me
7006 #else
7007 $ac_func();
7008 #endif
7010 ; return 0; }
7012 if { (eval echo configure:7013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7013 rm -rf conftest*
7014 eval "ac_cv_func_$ac_func=yes"
7015 else
7016 echo "configure: failed program was:" >&5
7017 cat conftest.$ac_ext >&5
7018 rm -rf conftest*
7019 eval "ac_cv_func_$ac_func=no"
7021 rm -f conftest*
7024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7025 echo "$ac_t""yes" 1>&6
7026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7027 cat >> confdefs.h <<EOF
7028 #define $ac_tr_func 1
7031 else
7032 echo "$ac_t""no" 1>&6
7034 done
7037 esac
7039 case "$LIBS" in
7040 *-lsec*) for ac_func in putprpwnam
7042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7043 echo "configure:7044: checking for $ac_func" >&5
7044 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7045 echo $ac_n "(cached) $ac_c" 1>&6
7046 else
7047 cat > conftest.$ac_ext <<EOF
7048 #line 7049 "configure"
7049 #include "confdefs.h"
7050 /* System header to define __stub macros and hopefully few prototypes,
7051 which can conflict with char $ac_func(); below. */
7052 #include <assert.h>
7053 /* Override any gcc2 internal prototype to avoid an error. */
7054 /* We use char because int might match the return type of a gcc2
7055 builtin and then its argument prototype would still apply. */
7056 char $ac_func();
7058 int main() {
7060 /* The GNU C library defines this for functions which it implements
7061 to always fail with ENOSYS. Some functions are actually named
7062 something starting with __ and the normal name is an alias. */
7063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7064 choke me
7065 #else
7066 $ac_func();
7067 #endif
7069 ; return 0; }
7071 if { (eval echo configure:7072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7072 rm -rf conftest*
7073 eval "ac_cv_func_$ac_func=yes"
7074 else
7075 echo "configure: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7077 rm -rf conftest*
7078 eval "ac_cv_func_$ac_func=no"
7080 rm -f conftest*
7083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7084 echo "$ac_t""yes" 1>&6
7085 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7086 cat >> confdefs.h <<EOF
7087 #define $ac_tr_func 1
7090 else
7091 echo "$ac_t""no" 1>&6
7093 done
7095 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7096 echo "configure:7097: checking for putprpwnam in -lsec" >&5
7097 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7098 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7099 echo $ac_n "(cached) $ac_c" 1>&6
7100 else
7101 ac_save_LIBS="$LIBS"
7102 LIBS="-lsec $LIBS"
7103 cat > conftest.$ac_ext <<EOF
7104 #line 7105 "configure"
7105 #include "confdefs.h"
7106 /* Override any gcc2 internal prototype to avoid an error. */
7107 /* We use char because int might match the return type of a gcc2
7108 builtin and then its argument prototype would still apply. */
7109 char putprpwnam();
7111 int main() {
7112 putprpwnam()
7113 ; return 0; }
7115 if { (eval echo configure:7116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7116 rm -rf conftest*
7117 eval "ac_cv_lib_$ac_lib_var=yes"
7118 else
7119 echo "configure: failed program was:" >&5
7120 cat conftest.$ac_ext >&5
7121 rm -rf conftest*
7122 eval "ac_cv_lib_$ac_lib_var=no"
7124 rm -f conftest*
7125 LIBS="$ac_save_LIBS"
7128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7129 echo "$ac_t""yes" 1>&6
7130 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7131 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7132 cat >> confdefs.h <<EOF
7133 #define $ac_tr_lib 1
7136 LIBS="-lsec $LIBS"
7138 else
7139 echo "$ac_t""no" 1>&6
7142 for ac_func in putprpwnam
7144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7145 echo "configure:7146: checking for $ac_func" >&5
7146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7147 echo $ac_n "(cached) $ac_c" 1>&6
7148 else
7149 cat > conftest.$ac_ext <<EOF
7150 #line 7151 "configure"
7151 #include "confdefs.h"
7152 /* System header to define __stub macros and hopefully few prototypes,
7153 which can conflict with char $ac_func(); below. */
7154 #include <assert.h>
7155 /* Override any gcc2 internal prototype to avoid an error. */
7156 /* We use char because int might match the return type of a gcc2
7157 builtin and then its argument prototype would still apply. */
7158 char $ac_func();
7160 int main() {
7162 /* The GNU C library defines this for functions which it implements
7163 to always fail with ENOSYS. Some functions are actually named
7164 something starting with __ and the normal name is an alias. */
7165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7166 choke me
7167 #else
7168 $ac_func();
7169 #endif
7171 ; return 0; }
7173 if { (eval echo configure:7174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7174 rm -rf conftest*
7175 eval "ac_cv_func_$ac_func=yes"
7176 else
7177 echo "configure: failed program was:" >&5
7178 cat conftest.$ac_ext >&5
7179 rm -rf conftest*
7180 eval "ac_cv_func_$ac_func=no"
7182 rm -f conftest*
7185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7186 echo "$ac_t""yes" 1>&6
7187 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7188 cat >> confdefs.h <<EOF
7189 #define $ac_tr_func 1
7192 else
7193 echo "$ac_t""no" 1>&6
7195 done
7198 esac
7201 case "$LIBS" in
7202 *-lsecurity*) for ac_func in set_auth_parameters
7204 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7205 echo "configure:7206: checking for $ac_func" >&5
7206 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7207 echo $ac_n "(cached) $ac_c" 1>&6
7208 else
7209 cat > conftest.$ac_ext <<EOF
7210 #line 7211 "configure"
7211 #include "confdefs.h"
7212 /* System header to define __stub macros and hopefully few prototypes,
7213 which can conflict with char $ac_func(); below. */
7214 #include <assert.h>
7215 /* Override any gcc2 internal prototype to avoid an error. */
7216 /* We use char because int might match the return type of a gcc2
7217 builtin and then its argument prototype would still apply. */
7218 char $ac_func();
7220 int main() {
7222 /* The GNU C library defines this for functions which it implements
7223 to always fail with ENOSYS. Some functions are actually named
7224 something starting with __ and the normal name is an alias. */
7225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7226 choke me
7227 #else
7228 $ac_func();
7229 #endif
7231 ; return 0; }
7233 if { (eval echo configure:7234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7234 rm -rf conftest*
7235 eval "ac_cv_func_$ac_func=yes"
7236 else
7237 echo "configure: failed program was:" >&5
7238 cat conftest.$ac_ext >&5
7239 rm -rf conftest*
7240 eval "ac_cv_func_$ac_func=no"
7242 rm -f conftest*
7245 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7246 echo "$ac_t""yes" 1>&6
7247 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7248 cat >> confdefs.h <<EOF
7249 #define $ac_tr_func 1
7252 else
7253 echo "$ac_t""no" 1>&6
7255 done
7257 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7258 echo "configure:7259: checking for set_auth_parameters in -lsecurity" >&5
7259 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7261 echo $ac_n "(cached) $ac_c" 1>&6
7262 else
7263 ac_save_LIBS="$LIBS"
7264 LIBS="-lsecurity $LIBS"
7265 cat > conftest.$ac_ext <<EOF
7266 #line 7267 "configure"
7267 #include "confdefs.h"
7268 /* Override any gcc2 internal prototype to avoid an error. */
7269 /* We use char because int might match the return type of a gcc2
7270 builtin and then its argument prototype would still apply. */
7271 char set_auth_parameters();
7273 int main() {
7274 set_auth_parameters()
7275 ; return 0; }
7277 if { (eval echo configure:7278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7278 rm -rf conftest*
7279 eval "ac_cv_lib_$ac_lib_var=yes"
7280 else
7281 echo "configure: failed program was:" >&5
7282 cat conftest.$ac_ext >&5
7283 rm -rf conftest*
7284 eval "ac_cv_lib_$ac_lib_var=no"
7286 rm -f conftest*
7287 LIBS="$ac_save_LIBS"
7290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7291 echo "$ac_t""yes" 1>&6
7292 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7293 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7294 cat >> confdefs.h <<EOF
7295 #define $ac_tr_lib 1
7298 LIBS="-lsecurity $LIBS"
7300 else
7301 echo "$ac_t""no" 1>&6
7304 for ac_func in set_auth_parameters
7306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7307 echo "configure:7308: checking for $ac_func" >&5
7308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7309 echo $ac_n "(cached) $ac_c" 1>&6
7310 else
7311 cat > conftest.$ac_ext <<EOF
7312 #line 7313 "configure"
7313 #include "confdefs.h"
7314 /* System header to define __stub macros and hopefully few prototypes,
7315 which can conflict with char $ac_func(); below. */
7316 #include <assert.h>
7317 /* Override any gcc2 internal prototype to avoid an error. */
7318 /* We use char because int might match the return type of a gcc2
7319 builtin and then its argument prototype would still apply. */
7320 char $ac_func();
7322 int main() {
7324 /* The GNU C library defines this for functions which it implements
7325 to always fail with ENOSYS. Some functions are actually named
7326 something starting with __ and the normal name is an alias. */
7327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7328 choke me
7329 #else
7330 $ac_func();
7331 #endif
7333 ; return 0; }
7335 if { (eval echo configure:7336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7336 rm -rf conftest*
7337 eval "ac_cv_func_$ac_func=yes"
7338 else
7339 echo "configure: failed program was:" >&5
7340 cat conftest.$ac_ext >&5
7341 rm -rf conftest*
7342 eval "ac_cv_func_$ac_func=no"
7344 rm -f conftest*
7347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7348 echo "$ac_t""yes" 1>&6
7349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7350 cat >> confdefs.h <<EOF
7351 #define $ac_tr_func 1
7354 else
7355 echo "$ac_t""no" 1>&6
7357 done
7360 esac
7362 case "$LIBS" in
7363 *-lsec*) for ac_func in set_auth_parameters
7365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7366 echo "configure:7367: checking for $ac_func" >&5
7367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7368 echo $ac_n "(cached) $ac_c" 1>&6
7369 else
7370 cat > conftest.$ac_ext <<EOF
7371 #line 7372 "configure"
7372 #include "confdefs.h"
7373 /* System header to define __stub macros and hopefully few prototypes,
7374 which can conflict with char $ac_func(); below. */
7375 #include <assert.h>
7376 /* Override any gcc2 internal prototype to avoid an error. */
7377 /* We use char because int might match the return type of a gcc2
7378 builtin and then its argument prototype would still apply. */
7379 char $ac_func();
7381 int main() {
7383 /* The GNU C library defines this for functions which it implements
7384 to always fail with ENOSYS. Some functions are actually named
7385 something starting with __ and the normal name is an alias. */
7386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7387 choke me
7388 #else
7389 $ac_func();
7390 #endif
7392 ; return 0; }
7394 if { (eval echo configure:7395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7395 rm -rf conftest*
7396 eval "ac_cv_func_$ac_func=yes"
7397 else
7398 echo "configure: failed program was:" >&5
7399 cat conftest.$ac_ext >&5
7400 rm -rf conftest*
7401 eval "ac_cv_func_$ac_func=no"
7403 rm -f conftest*
7406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7407 echo "$ac_t""yes" 1>&6
7408 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7409 cat >> confdefs.h <<EOF
7410 #define $ac_tr_func 1
7413 else
7414 echo "$ac_t""no" 1>&6
7416 done
7418 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7419 echo "configure:7420: checking for set_auth_parameters in -lsec" >&5
7420 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7422 echo $ac_n "(cached) $ac_c" 1>&6
7423 else
7424 ac_save_LIBS="$LIBS"
7425 LIBS="-lsec $LIBS"
7426 cat > conftest.$ac_ext <<EOF
7427 #line 7428 "configure"
7428 #include "confdefs.h"
7429 /* Override any gcc2 internal prototype to avoid an error. */
7430 /* We use char because int might match the return type of a gcc2
7431 builtin and then its argument prototype would still apply. */
7432 char set_auth_parameters();
7434 int main() {
7435 set_auth_parameters()
7436 ; return 0; }
7438 if { (eval echo configure:7439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7439 rm -rf conftest*
7440 eval "ac_cv_lib_$ac_lib_var=yes"
7441 else
7442 echo "configure: failed program was:" >&5
7443 cat conftest.$ac_ext >&5
7444 rm -rf conftest*
7445 eval "ac_cv_lib_$ac_lib_var=no"
7447 rm -f conftest*
7448 LIBS="$ac_save_LIBS"
7451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7452 echo "$ac_t""yes" 1>&6
7453 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7454 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7455 cat >> confdefs.h <<EOF
7456 #define $ac_tr_lib 1
7459 LIBS="-lsec $LIBS"
7461 else
7462 echo "$ac_t""no" 1>&6
7465 for ac_func in set_auth_parameters
7467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7468 echo "configure:7469: checking for $ac_func" >&5
7469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7470 echo $ac_n "(cached) $ac_c" 1>&6
7471 else
7472 cat > conftest.$ac_ext <<EOF
7473 #line 7474 "configure"
7474 #include "confdefs.h"
7475 /* System header to define __stub macros and hopefully few prototypes,
7476 which can conflict with char $ac_func(); below. */
7477 #include <assert.h>
7478 /* Override any gcc2 internal prototype to avoid an error. */
7479 /* We use char because int might match the return type of a gcc2
7480 builtin and then its argument prototype would still apply. */
7481 char $ac_func();
7483 int main() {
7485 /* The GNU C library defines this for functions which it implements
7486 to always fail with ENOSYS. Some functions are actually named
7487 something starting with __ and the normal name is an alias. */
7488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7489 choke me
7490 #else
7491 $ac_func();
7492 #endif
7494 ; return 0; }
7496 if { (eval echo configure:7497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7497 rm -rf conftest*
7498 eval "ac_cv_func_$ac_func=yes"
7499 else
7500 echo "configure: failed program was:" >&5
7501 cat conftest.$ac_ext >&5
7502 rm -rf conftest*
7503 eval "ac_cv_func_$ac_func=no"
7505 rm -f conftest*
7508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7509 echo "$ac_t""yes" 1>&6
7510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7511 cat >> confdefs.h <<EOF
7512 #define $ac_tr_func 1
7515 else
7516 echo "$ac_t""no" 1>&6
7518 done
7521 esac
7524 # UnixWare 7.x has its getspnam in -lgen
7525 case "$LIBS" in
7526 *-lgen*) for ac_func in getspnam
7528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7529 echo "configure:7530: checking for $ac_func" >&5
7530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7531 echo $ac_n "(cached) $ac_c" 1>&6
7532 else
7533 cat > conftest.$ac_ext <<EOF
7534 #line 7535 "configure"
7535 #include "confdefs.h"
7536 /* System header to define __stub macros and hopefully few prototypes,
7537 which can conflict with char $ac_func(); below. */
7538 #include <assert.h>
7539 /* Override any gcc2 internal prototype to avoid an error. */
7540 /* We use char because int might match the return type of a gcc2
7541 builtin and then its argument prototype would still apply. */
7542 char $ac_func();
7544 int main() {
7546 /* The GNU C library defines this for functions which it implements
7547 to always fail with ENOSYS. Some functions are actually named
7548 something starting with __ and the normal name is an alias. */
7549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7550 choke me
7551 #else
7552 $ac_func();
7553 #endif
7555 ; return 0; }
7557 if { (eval echo configure:7558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7558 rm -rf conftest*
7559 eval "ac_cv_func_$ac_func=yes"
7560 else
7561 echo "configure: failed program was:" >&5
7562 cat conftest.$ac_ext >&5
7563 rm -rf conftest*
7564 eval "ac_cv_func_$ac_func=no"
7566 rm -f conftest*
7569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7570 echo "$ac_t""yes" 1>&6
7571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7572 cat >> confdefs.h <<EOF
7573 #define $ac_tr_func 1
7576 else
7577 echo "$ac_t""no" 1>&6
7579 done
7581 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7582 echo "configure:7583: checking for getspnam in -lgen" >&5
7583 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7584 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7585 echo $ac_n "(cached) $ac_c" 1>&6
7586 else
7587 ac_save_LIBS="$LIBS"
7588 LIBS="-lgen $LIBS"
7589 cat > conftest.$ac_ext <<EOF
7590 #line 7591 "configure"
7591 #include "confdefs.h"
7592 /* Override any gcc2 internal prototype to avoid an error. */
7593 /* We use char because int might match the return type of a gcc2
7594 builtin and then its argument prototype would still apply. */
7595 char getspnam();
7597 int main() {
7598 getspnam()
7599 ; return 0; }
7601 if { (eval echo configure:7602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7602 rm -rf conftest*
7603 eval "ac_cv_lib_$ac_lib_var=yes"
7604 else
7605 echo "configure: failed program was:" >&5
7606 cat conftest.$ac_ext >&5
7607 rm -rf conftest*
7608 eval "ac_cv_lib_$ac_lib_var=no"
7610 rm -f conftest*
7611 LIBS="$ac_save_LIBS"
7614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7615 echo "$ac_t""yes" 1>&6
7616 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7617 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7618 cat >> confdefs.h <<EOF
7619 #define $ac_tr_lib 1
7622 LIBS="-lgen $LIBS"
7624 else
7625 echo "$ac_t""no" 1>&6
7628 for ac_func in getspnam
7630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7631 echo "configure:7632: checking for $ac_func" >&5
7632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7633 echo $ac_n "(cached) $ac_c" 1>&6
7634 else
7635 cat > conftest.$ac_ext <<EOF
7636 #line 7637 "configure"
7637 #include "confdefs.h"
7638 /* System header to define __stub macros and hopefully few prototypes,
7639 which can conflict with char $ac_func(); below. */
7640 #include <assert.h>
7641 /* Override any gcc2 internal prototype to avoid an error. */
7642 /* We use char because int might match the return type of a gcc2
7643 builtin and then its argument prototype would still apply. */
7644 char $ac_func();
7646 int main() {
7648 /* The GNU C library defines this for functions which it implements
7649 to always fail with ENOSYS. Some functions are actually named
7650 something starting with __ and the normal name is an alias. */
7651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7652 choke me
7653 #else
7654 $ac_func();
7655 #endif
7657 ; return 0; }
7659 if { (eval echo configure:7660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7660 rm -rf conftest*
7661 eval "ac_cv_func_$ac_func=yes"
7662 else
7663 echo "configure: failed program was:" >&5
7664 cat conftest.$ac_ext >&5
7665 rm -rf conftest*
7666 eval "ac_cv_func_$ac_func=no"
7668 rm -f conftest*
7671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7672 echo "$ac_t""yes" 1>&6
7673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7674 cat >> confdefs.h <<EOF
7675 #define $ac_tr_func 1
7678 else
7679 echo "$ac_t""no" 1>&6
7681 done
7684 esac
7687 case "$LIBS" in
7688 *-lsecurity*) for ac_func in getspnam
7690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7691 echo "configure:7692: checking for $ac_func" >&5
7692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7693 echo $ac_n "(cached) $ac_c" 1>&6
7694 else
7695 cat > conftest.$ac_ext <<EOF
7696 #line 7697 "configure"
7697 #include "confdefs.h"
7698 /* System header to define __stub macros and hopefully few prototypes,
7699 which can conflict with char $ac_func(); below. */
7700 #include <assert.h>
7701 /* Override any gcc2 internal prototype to avoid an error. */
7702 /* We use char because int might match the return type of a gcc2
7703 builtin and then its argument prototype would still apply. */
7704 char $ac_func();
7706 int main() {
7708 /* The GNU C library defines this for functions which it implements
7709 to always fail with ENOSYS. Some functions are actually named
7710 something starting with __ and the normal name is an alias. */
7711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7712 choke me
7713 #else
7714 $ac_func();
7715 #endif
7717 ; return 0; }
7719 if { (eval echo configure:7720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7720 rm -rf conftest*
7721 eval "ac_cv_func_$ac_func=yes"
7722 else
7723 echo "configure: failed program was:" >&5
7724 cat conftest.$ac_ext >&5
7725 rm -rf conftest*
7726 eval "ac_cv_func_$ac_func=no"
7728 rm -f conftest*
7731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7732 echo "$ac_t""yes" 1>&6
7733 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7734 cat >> confdefs.h <<EOF
7735 #define $ac_tr_func 1
7738 else
7739 echo "$ac_t""no" 1>&6
7741 done
7743 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7744 echo "configure:7745: checking for getspnam in -lsecurity" >&5
7745 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7747 echo $ac_n "(cached) $ac_c" 1>&6
7748 else
7749 ac_save_LIBS="$LIBS"
7750 LIBS="-lsecurity $LIBS"
7751 cat > conftest.$ac_ext <<EOF
7752 #line 7753 "configure"
7753 #include "confdefs.h"
7754 /* Override any gcc2 internal prototype to avoid an error. */
7755 /* We use char because int might match the return type of a gcc2
7756 builtin and then its argument prototype would still apply. */
7757 char getspnam();
7759 int main() {
7760 getspnam()
7761 ; return 0; }
7763 if { (eval echo configure:7764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7764 rm -rf conftest*
7765 eval "ac_cv_lib_$ac_lib_var=yes"
7766 else
7767 echo "configure: failed program was:" >&5
7768 cat conftest.$ac_ext >&5
7769 rm -rf conftest*
7770 eval "ac_cv_lib_$ac_lib_var=no"
7772 rm -f conftest*
7773 LIBS="$ac_save_LIBS"
7776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7777 echo "$ac_t""yes" 1>&6
7778 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7779 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7780 cat >> confdefs.h <<EOF
7781 #define $ac_tr_lib 1
7784 LIBS="-lsecurity $LIBS"
7786 else
7787 echo "$ac_t""no" 1>&6
7790 for ac_func in getspnam
7792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7793 echo "configure:7794: checking for $ac_func" >&5
7794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7795 echo $ac_n "(cached) $ac_c" 1>&6
7796 else
7797 cat > conftest.$ac_ext <<EOF
7798 #line 7799 "configure"
7799 #include "confdefs.h"
7800 /* System header to define __stub macros and hopefully few prototypes,
7801 which can conflict with char $ac_func(); below. */
7802 #include <assert.h>
7803 /* Override any gcc2 internal prototype to avoid an error. */
7804 /* We use char because int might match the return type of a gcc2
7805 builtin and then its argument prototype would still apply. */
7806 char $ac_func();
7808 int main() {
7810 /* The GNU C library defines this for functions which it implements
7811 to always fail with ENOSYS. Some functions are actually named
7812 something starting with __ and the normal name is an alias. */
7813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7814 choke me
7815 #else
7816 $ac_func();
7817 #endif
7819 ; return 0; }
7821 if { (eval echo configure:7822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7822 rm -rf conftest*
7823 eval "ac_cv_func_$ac_func=yes"
7824 else
7825 echo "configure: failed program was:" >&5
7826 cat conftest.$ac_ext >&5
7827 rm -rf conftest*
7828 eval "ac_cv_func_$ac_func=no"
7830 rm -f conftest*
7833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7834 echo "$ac_t""yes" 1>&6
7835 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7836 cat >> confdefs.h <<EOF
7837 #define $ac_tr_func 1
7840 else
7841 echo "$ac_t""no" 1>&6
7843 done
7846 esac
7848 case "$LIBS" in
7849 *-lsec*) for ac_func in getspnam
7851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7852 echo "configure:7853: checking for $ac_func" >&5
7853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7854 echo $ac_n "(cached) $ac_c" 1>&6
7855 else
7856 cat > conftest.$ac_ext <<EOF
7857 #line 7858 "configure"
7858 #include "confdefs.h"
7859 /* System header to define __stub macros and hopefully few prototypes,
7860 which can conflict with char $ac_func(); below. */
7861 #include <assert.h>
7862 /* Override any gcc2 internal prototype to avoid an error. */
7863 /* We use char because int might match the return type of a gcc2
7864 builtin and then its argument prototype would still apply. */
7865 char $ac_func();
7867 int main() {
7869 /* The GNU C library defines this for functions which it implements
7870 to always fail with ENOSYS. Some functions are actually named
7871 something starting with __ and the normal name is an alias. */
7872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7873 choke me
7874 #else
7875 $ac_func();
7876 #endif
7878 ; return 0; }
7880 if { (eval echo configure:7881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7881 rm -rf conftest*
7882 eval "ac_cv_func_$ac_func=yes"
7883 else
7884 echo "configure: failed program was:" >&5
7885 cat conftest.$ac_ext >&5
7886 rm -rf conftest*
7887 eval "ac_cv_func_$ac_func=no"
7889 rm -f conftest*
7892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7893 echo "$ac_t""yes" 1>&6
7894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7895 cat >> confdefs.h <<EOF
7896 #define $ac_tr_func 1
7899 else
7900 echo "$ac_t""no" 1>&6
7902 done
7904 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7905 echo "configure:7906: checking for getspnam in -lsec" >&5
7906 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7908 echo $ac_n "(cached) $ac_c" 1>&6
7909 else
7910 ac_save_LIBS="$LIBS"
7911 LIBS="-lsec $LIBS"
7912 cat > conftest.$ac_ext <<EOF
7913 #line 7914 "configure"
7914 #include "confdefs.h"
7915 /* Override any gcc2 internal prototype to avoid an error. */
7916 /* We use char because int might match the return type of a gcc2
7917 builtin and then its argument prototype would still apply. */
7918 char getspnam();
7920 int main() {
7921 getspnam()
7922 ; return 0; }
7924 if { (eval echo configure:7925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7925 rm -rf conftest*
7926 eval "ac_cv_lib_$ac_lib_var=yes"
7927 else
7928 echo "configure: failed program was:" >&5
7929 cat conftest.$ac_ext >&5
7930 rm -rf conftest*
7931 eval "ac_cv_lib_$ac_lib_var=no"
7933 rm -f conftest*
7934 LIBS="$ac_save_LIBS"
7937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7938 echo "$ac_t""yes" 1>&6
7939 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7940 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7941 cat >> confdefs.h <<EOF
7942 #define $ac_tr_lib 1
7945 LIBS="-lsec $LIBS"
7947 else
7948 echo "$ac_t""no" 1>&6
7951 for ac_func in getspnam
7953 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7954 echo "configure:7955: checking for $ac_func" >&5
7955 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7956 echo $ac_n "(cached) $ac_c" 1>&6
7957 else
7958 cat > conftest.$ac_ext <<EOF
7959 #line 7960 "configure"
7960 #include "confdefs.h"
7961 /* System header to define __stub macros and hopefully few prototypes,
7962 which can conflict with char $ac_func(); below. */
7963 #include <assert.h>
7964 /* Override any gcc2 internal prototype to avoid an error. */
7965 /* We use char because int might match the return type of a gcc2
7966 builtin and then its argument prototype would still apply. */
7967 char $ac_func();
7969 int main() {
7971 /* The GNU C library defines this for functions which it implements
7972 to always fail with ENOSYS. Some functions are actually named
7973 something starting with __ and the normal name is an alias. */
7974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7975 choke me
7976 #else
7977 $ac_func();
7978 #endif
7980 ; return 0; }
7982 if { (eval echo configure:7983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7983 rm -rf conftest*
7984 eval "ac_cv_func_$ac_func=yes"
7985 else
7986 echo "configure: failed program was:" >&5
7987 cat conftest.$ac_ext >&5
7988 rm -rf conftest*
7989 eval "ac_cv_func_$ac_func=no"
7991 rm -f conftest*
7994 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7995 echo "$ac_t""yes" 1>&6
7996 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7997 cat >> confdefs.h <<EOF
7998 #define $ac_tr_func 1
8001 else
8002 echo "$ac_t""no" 1>&6
8004 done
8007 esac
8010 case "$LIBS" in
8011 *-lsecurity*) for ac_func in bigcrypt
8013 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8014 echo "configure:8015: checking for $ac_func" >&5
8015 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8016 echo $ac_n "(cached) $ac_c" 1>&6
8017 else
8018 cat > conftest.$ac_ext <<EOF
8019 #line 8020 "configure"
8020 #include "confdefs.h"
8021 /* System header to define __stub macros and hopefully few prototypes,
8022 which can conflict with char $ac_func(); below. */
8023 #include <assert.h>
8024 /* Override any gcc2 internal prototype to avoid an error. */
8025 /* We use char because int might match the return type of a gcc2
8026 builtin and then its argument prototype would still apply. */
8027 char $ac_func();
8029 int main() {
8031 /* The GNU C library defines this for functions which it implements
8032 to always fail with ENOSYS. Some functions are actually named
8033 something starting with __ and the normal name is an alias. */
8034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8035 choke me
8036 #else
8037 $ac_func();
8038 #endif
8040 ; return 0; }
8042 if { (eval echo configure:8043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8043 rm -rf conftest*
8044 eval "ac_cv_func_$ac_func=yes"
8045 else
8046 echo "configure: failed program was:" >&5
8047 cat conftest.$ac_ext >&5
8048 rm -rf conftest*
8049 eval "ac_cv_func_$ac_func=no"
8051 rm -f conftest*
8054 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8055 echo "$ac_t""yes" 1>&6
8056 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8057 cat >> confdefs.h <<EOF
8058 #define $ac_tr_func 1
8061 else
8062 echo "$ac_t""no" 1>&6
8064 done
8066 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8067 echo "configure:8068: checking for bigcrypt in -lsecurity" >&5
8068 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8070 echo $ac_n "(cached) $ac_c" 1>&6
8071 else
8072 ac_save_LIBS="$LIBS"
8073 LIBS="-lsecurity $LIBS"
8074 cat > conftest.$ac_ext <<EOF
8075 #line 8076 "configure"
8076 #include "confdefs.h"
8077 /* Override any gcc2 internal prototype to avoid an error. */
8078 /* We use char because int might match the return type of a gcc2
8079 builtin and then its argument prototype would still apply. */
8080 char bigcrypt();
8082 int main() {
8083 bigcrypt()
8084 ; return 0; }
8086 if { (eval echo configure:8087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8087 rm -rf conftest*
8088 eval "ac_cv_lib_$ac_lib_var=yes"
8089 else
8090 echo "configure: failed program was:" >&5
8091 cat conftest.$ac_ext >&5
8092 rm -rf conftest*
8093 eval "ac_cv_lib_$ac_lib_var=no"
8095 rm -f conftest*
8096 LIBS="$ac_save_LIBS"
8099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8100 echo "$ac_t""yes" 1>&6
8101 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8102 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8103 cat >> confdefs.h <<EOF
8104 #define $ac_tr_lib 1
8107 LIBS="-lsecurity $LIBS"
8109 else
8110 echo "$ac_t""no" 1>&6
8113 for ac_func in bigcrypt
8115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8116 echo "configure:8117: checking for $ac_func" >&5
8117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8118 echo $ac_n "(cached) $ac_c" 1>&6
8119 else
8120 cat > conftest.$ac_ext <<EOF
8121 #line 8122 "configure"
8122 #include "confdefs.h"
8123 /* System header to define __stub macros and hopefully few prototypes,
8124 which can conflict with char $ac_func(); below. */
8125 #include <assert.h>
8126 /* Override any gcc2 internal prototype to avoid an error. */
8127 /* We use char because int might match the return type of a gcc2
8128 builtin and then its argument prototype would still apply. */
8129 char $ac_func();
8131 int main() {
8133 /* The GNU C library defines this for functions which it implements
8134 to always fail with ENOSYS. Some functions are actually named
8135 something starting with __ and the normal name is an alias. */
8136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8137 choke me
8138 #else
8139 $ac_func();
8140 #endif
8142 ; return 0; }
8144 if { (eval echo configure:8145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8145 rm -rf conftest*
8146 eval "ac_cv_func_$ac_func=yes"
8147 else
8148 echo "configure: failed program was:" >&5
8149 cat conftest.$ac_ext >&5
8150 rm -rf conftest*
8151 eval "ac_cv_func_$ac_func=no"
8153 rm -f conftest*
8156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8157 echo "$ac_t""yes" 1>&6
8158 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8159 cat >> confdefs.h <<EOF
8160 #define $ac_tr_func 1
8163 else
8164 echo "$ac_t""no" 1>&6
8166 done
8169 esac
8171 case "$LIBS" in
8172 *-lsec*) for ac_func in bigcrypt
8174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8175 echo "configure:8176: checking for $ac_func" >&5
8176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8177 echo $ac_n "(cached) $ac_c" 1>&6
8178 else
8179 cat > conftest.$ac_ext <<EOF
8180 #line 8181 "configure"
8181 #include "confdefs.h"
8182 /* System header to define __stub macros and hopefully few prototypes,
8183 which can conflict with char $ac_func(); below. */
8184 #include <assert.h>
8185 /* Override any gcc2 internal prototype to avoid an error. */
8186 /* We use char because int might match the return type of a gcc2
8187 builtin and then its argument prototype would still apply. */
8188 char $ac_func();
8190 int main() {
8192 /* The GNU C library defines this for functions which it implements
8193 to always fail with ENOSYS. Some functions are actually named
8194 something starting with __ and the normal name is an alias. */
8195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8196 choke me
8197 #else
8198 $ac_func();
8199 #endif
8201 ; return 0; }
8203 if { (eval echo configure:8204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8204 rm -rf conftest*
8205 eval "ac_cv_func_$ac_func=yes"
8206 else
8207 echo "configure: failed program was:" >&5
8208 cat conftest.$ac_ext >&5
8209 rm -rf conftest*
8210 eval "ac_cv_func_$ac_func=no"
8212 rm -f conftest*
8215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8216 echo "$ac_t""yes" 1>&6
8217 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8218 cat >> confdefs.h <<EOF
8219 #define $ac_tr_func 1
8222 else
8223 echo "$ac_t""no" 1>&6
8225 done
8227 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8228 echo "configure:8229: checking for bigcrypt in -lsec" >&5
8229 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8231 echo $ac_n "(cached) $ac_c" 1>&6
8232 else
8233 ac_save_LIBS="$LIBS"
8234 LIBS="-lsec $LIBS"
8235 cat > conftest.$ac_ext <<EOF
8236 #line 8237 "configure"
8237 #include "confdefs.h"
8238 /* Override any gcc2 internal prototype to avoid an error. */
8239 /* We use char because int might match the return type of a gcc2
8240 builtin and then its argument prototype would still apply. */
8241 char bigcrypt();
8243 int main() {
8244 bigcrypt()
8245 ; return 0; }
8247 if { (eval echo configure:8248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8248 rm -rf conftest*
8249 eval "ac_cv_lib_$ac_lib_var=yes"
8250 else
8251 echo "configure: failed program was:" >&5
8252 cat conftest.$ac_ext >&5
8253 rm -rf conftest*
8254 eval "ac_cv_lib_$ac_lib_var=no"
8256 rm -f conftest*
8257 LIBS="$ac_save_LIBS"
8260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8261 echo "$ac_t""yes" 1>&6
8262 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8263 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8264 cat >> confdefs.h <<EOF
8265 #define $ac_tr_lib 1
8268 LIBS="-lsec $LIBS"
8270 else
8271 echo "$ac_t""no" 1>&6
8274 for ac_func in bigcrypt
8276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8277 echo "configure:8278: checking for $ac_func" >&5
8278 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8279 echo $ac_n "(cached) $ac_c" 1>&6
8280 else
8281 cat > conftest.$ac_ext <<EOF
8282 #line 8283 "configure"
8283 #include "confdefs.h"
8284 /* System header to define __stub macros and hopefully few prototypes,
8285 which can conflict with char $ac_func(); below. */
8286 #include <assert.h>
8287 /* Override any gcc2 internal prototype to avoid an error. */
8288 /* We use char because int might match the return type of a gcc2
8289 builtin and then its argument prototype would still apply. */
8290 char $ac_func();
8292 int main() {
8294 /* The GNU C library defines this for functions which it implements
8295 to always fail with ENOSYS. Some functions are actually named
8296 something starting with __ and the normal name is an alias. */
8297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8298 choke me
8299 #else
8300 $ac_func();
8301 #endif
8303 ; return 0; }
8305 if { (eval echo configure:8306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8306 rm -rf conftest*
8307 eval "ac_cv_func_$ac_func=yes"
8308 else
8309 echo "configure: failed program was:" >&5
8310 cat conftest.$ac_ext >&5
8311 rm -rf conftest*
8312 eval "ac_cv_func_$ac_func=no"
8314 rm -f conftest*
8317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8318 echo "$ac_t""yes" 1>&6
8319 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8320 cat >> confdefs.h <<EOF
8321 #define $ac_tr_func 1
8324 else
8325 echo "$ac_t""no" 1>&6
8327 done
8330 esac
8333 case "$LIBS" in
8334 *-lsecurity*) for ac_func in getprpwnam
8336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8337 echo "configure:8338: checking for $ac_func" >&5
8338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8339 echo $ac_n "(cached) $ac_c" 1>&6
8340 else
8341 cat > conftest.$ac_ext <<EOF
8342 #line 8343 "configure"
8343 #include "confdefs.h"
8344 /* System header to define __stub macros and hopefully few prototypes,
8345 which can conflict with char $ac_func(); below. */
8346 #include <assert.h>
8347 /* Override any gcc2 internal prototype to avoid an error. */
8348 /* We use char because int might match the return type of a gcc2
8349 builtin and then its argument prototype would still apply. */
8350 char $ac_func();
8352 int main() {
8354 /* The GNU C library defines this for functions which it implements
8355 to always fail with ENOSYS. Some functions are actually named
8356 something starting with __ and the normal name is an alias. */
8357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8358 choke me
8359 #else
8360 $ac_func();
8361 #endif
8363 ; return 0; }
8365 if { (eval echo configure:8366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8366 rm -rf conftest*
8367 eval "ac_cv_func_$ac_func=yes"
8368 else
8369 echo "configure: failed program was:" >&5
8370 cat conftest.$ac_ext >&5
8371 rm -rf conftest*
8372 eval "ac_cv_func_$ac_func=no"
8374 rm -f conftest*
8377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8378 echo "$ac_t""yes" 1>&6
8379 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8380 cat >> confdefs.h <<EOF
8381 #define $ac_tr_func 1
8384 else
8385 echo "$ac_t""no" 1>&6
8387 done
8389 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8390 echo "configure:8391: checking for getprpwnam in -lsecurity" >&5
8391 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8393 echo $ac_n "(cached) $ac_c" 1>&6
8394 else
8395 ac_save_LIBS="$LIBS"
8396 LIBS="-lsecurity $LIBS"
8397 cat > conftest.$ac_ext <<EOF
8398 #line 8399 "configure"
8399 #include "confdefs.h"
8400 /* Override any gcc2 internal prototype to avoid an error. */
8401 /* We use char because int might match the return type of a gcc2
8402 builtin and then its argument prototype would still apply. */
8403 char getprpwnam();
8405 int main() {
8406 getprpwnam()
8407 ; return 0; }
8409 if { (eval echo configure:8410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8410 rm -rf conftest*
8411 eval "ac_cv_lib_$ac_lib_var=yes"
8412 else
8413 echo "configure: failed program was:" >&5
8414 cat conftest.$ac_ext >&5
8415 rm -rf conftest*
8416 eval "ac_cv_lib_$ac_lib_var=no"
8418 rm -f conftest*
8419 LIBS="$ac_save_LIBS"
8422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8423 echo "$ac_t""yes" 1>&6
8424 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8425 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8426 cat >> confdefs.h <<EOF
8427 #define $ac_tr_lib 1
8430 LIBS="-lsecurity $LIBS"
8432 else
8433 echo "$ac_t""no" 1>&6
8436 for ac_func in getprpwnam
8438 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8439 echo "configure:8440: checking for $ac_func" >&5
8440 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8441 echo $ac_n "(cached) $ac_c" 1>&6
8442 else
8443 cat > conftest.$ac_ext <<EOF
8444 #line 8445 "configure"
8445 #include "confdefs.h"
8446 /* System header to define __stub macros and hopefully few prototypes,
8447 which can conflict with char $ac_func(); below. */
8448 #include <assert.h>
8449 /* Override any gcc2 internal prototype to avoid an error. */
8450 /* We use char because int might match the return type of a gcc2
8451 builtin and then its argument prototype would still apply. */
8452 char $ac_func();
8454 int main() {
8456 /* The GNU C library defines this for functions which it implements
8457 to always fail with ENOSYS. Some functions are actually named
8458 something starting with __ and the normal name is an alias. */
8459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8460 choke me
8461 #else
8462 $ac_func();
8463 #endif
8465 ; return 0; }
8467 if { (eval echo configure:8468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8468 rm -rf conftest*
8469 eval "ac_cv_func_$ac_func=yes"
8470 else
8471 echo "configure: failed program was:" >&5
8472 cat conftest.$ac_ext >&5
8473 rm -rf conftest*
8474 eval "ac_cv_func_$ac_func=no"
8476 rm -f conftest*
8479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8480 echo "$ac_t""yes" 1>&6
8481 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8482 cat >> confdefs.h <<EOF
8483 #define $ac_tr_func 1
8486 else
8487 echo "$ac_t""no" 1>&6
8489 done
8492 esac
8494 case "$LIBS" in
8495 *-lsec*) for ac_func in getprpwnam
8497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8498 echo "configure:8499: checking for $ac_func" >&5
8499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8500 echo $ac_n "(cached) $ac_c" 1>&6
8501 else
8502 cat > conftest.$ac_ext <<EOF
8503 #line 8504 "configure"
8504 #include "confdefs.h"
8505 /* System header to define __stub macros and hopefully few prototypes,
8506 which can conflict with char $ac_func(); below. */
8507 #include <assert.h>
8508 /* Override any gcc2 internal prototype to avoid an error. */
8509 /* We use char because int might match the return type of a gcc2
8510 builtin and then its argument prototype would still apply. */
8511 char $ac_func();
8513 int main() {
8515 /* The GNU C library defines this for functions which it implements
8516 to always fail with ENOSYS. Some functions are actually named
8517 something starting with __ and the normal name is an alias. */
8518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8519 choke me
8520 #else
8521 $ac_func();
8522 #endif
8524 ; return 0; }
8526 if { (eval echo configure:8527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8527 rm -rf conftest*
8528 eval "ac_cv_func_$ac_func=yes"
8529 else
8530 echo "configure: failed program was:" >&5
8531 cat conftest.$ac_ext >&5
8532 rm -rf conftest*
8533 eval "ac_cv_func_$ac_func=no"
8535 rm -f conftest*
8538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8539 echo "$ac_t""yes" 1>&6
8540 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8541 cat >> confdefs.h <<EOF
8542 #define $ac_tr_func 1
8545 else
8546 echo "$ac_t""no" 1>&6
8548 done
8550 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8551 echo "configure:8552: checking for getprpwnam in -lsec" >&5
8552 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8554 echo $ac_n "(cached) $ac_c" 1>&6
8555 else
8556 ac_save_LIBS="$LIBS"
8557 LIBS="-lsec $LIBS"
8558 cat > conftest.$ac_ext <<EOF
8559 #line 8560 "configure"
8560 #include "confdefs.h"
8561 /* Override any gcc2 internal prototype to avoid an error. */
8562 /* We use char because int might match the return type of a gcc2
8563 builtin and then its argument prototype would still apply. */
8564 char getprpwnam();
8566 int main() {
8567 getprpwnam()
8568 ; return 0; }
8570 if { (eval echo configure:8571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8571 rm -rf conftest*
8572 eval "ac_cv_lib_$ac_lib_var=yes"
8573 else
8574 echo "configure: failed program was:" >&5
8575 cat conftest.$ac_ext >&5
8576 rm -rf conftest*
8577 eval "ac_cv_lib_$ac_lib_var=no"
8579 rm -f conftest*
8580 LIBS="$ac_save_LIBS"
8583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8584 echo "$ac_t""yes" 1>&6
8585 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8586 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8587 cat >> confdefs.h <<EOF
8588 #define $ac_tr_lib 1
8591 LIBS="-lsec $LIBS"
8593 else
8594 echo "$ac_t""no" 1>&6
8597 for ac_func in getprpwnam
8599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8600 echo "configure:8601: checking for $ac_func" >&5
8601 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8602 echo $ac_n "(cached) $ac_c" 1>&6
8603 else
8604 cat > conftest.$ac_ext <<EOF
8605 #line 8606 "configure"
8606 #include "confdefs.h"
8607 /* System header to define __stub macros and hopefully few prototypes,
8608 which can conflict with char $ac_func(); below. */
8609 #include <assert.h>
8610 /* Override any gcc2 internal prototype to avoid an error. */
8611 /* We use char because int might match the return type of a gcc2
8612 builtin and then its argument prototype would still apply. */
8613 char $ac_func();
8615 int main() {
8617 /* The GNU C library defines this for functions which it implements
8618 to always fail with ENOSYS. Some functions are actually named
8619 something starting with __ and the normal name is an alias. */
8620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8621 choke me
8622 #else
8623 $ac_func();
8624 #endif
8626 ; return 0; }
8628 if { (eval echo configure:8629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8629 rm -rf conftest*
8630 eval "ac_cv_func_$ac_func=yes"
8631 else
8632 echo "configure: failed program was:" >&5
8633 cat conftest.$ac_ext >&5
8634 rm -rf conftest*
8635 eval "ac_cv_func_$ac_func=no"
8637 rm -f conftest*
8640 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8641 echo "$ac_t""yes" 1>&6
8642 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8643 cat >> confdefs.h <<EOF
8644 #define $ac_tr_func 1
8647 else
8648 echo "$ac_t""no" 1>&6
8650 done
8653 esac
8656 # this bit needs to be modified for each OS that is suported by
8657 # smbwrapper. You need to specify how to created a shared library and
8658 # how to compile C code to produce PIC object files
8660 # these are the defaults, good for lots of systems
8661 HOST_OS="$host_os"
8662 LDSHFLAGS="-shared"
8663 SONAMEFLAG="#"
8664 SHLD="\${CC}"
8665 PICFLAG=""
8666 PICSUFFIX="po.o"
8667 SHLIBEXT="so"
8668 # Assume non-shared by default and override below
8669 BLDSHARED="false"
8670 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8671 echo "configure:8672: checking ability to build shared libraries" >&5
8673 # and these are for particular systems
8674 case "$host_os" in
8675 *linux*) cat >> confdefs.h <<\EOF
8676 #define LINUX 1
8679 BLDSHARED="true"
8680 LDSHFLAGS="-shared"
8681 DYNEXP="-Wl,--export-dynamic"
8682 PICFLAG="-fPIC"
8683 SONAMEFLAG="-Wl,-soname="
8684 cat >> confdefs.h <<\EOF
8685 #define STAT_ST_BLOCKSIZE 512
8689 *solaris*) cat >> confdefs.h <<\EOF
8690 #define SUNOS5 1
8693 BLDSHARED="true"
8694 LDSHFLAGS="-G"
8695 SONAMEFLAG="-h "
8696 if test "${GCC}" = "yes"; then
8697 PICFLAG="-fPIC"
8698 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8699 DYNEXP="-Wl,-E"
8701 else
8702 PICFLAG="-KPIC"
8703 ## ${CFLAGS} added for building 64-bit shared
8704 ## libs using Sun's Compiler
8705 LDSHFLAGS="-G \${CFLAGS}"
8706 POBAD_CC=""
8707 PICSUFFIX="po.o"
8709 cat >> confdefs.h <<\EOF
8710 #define STAT_ST_BLOCKSIZE 512
8714 *sunos*) cat >> confdefs.h <<\EOF
8715 #define SUNOS4 1
8718 BLDSHARED="true"
8719 LDSHFLAGS="-G"
8720 SONAMEFLAG="-Wl,-h,"
8721 PICFLAG="-KPIC" # Is this correct for SunOS
8723 *freebsd*) BLDSHARED="true"
8724 LDSHFLAGS="-shared"
8725 DYNEXP="-Wl,--export-dynamic"
8726 SONAMEFLAG="-Wl,-soname,"
8727 PICFLAG="-fPIC -DPIC"
8728 cat >> confdefs.h <<\EOF
8729 #define STAT_ST_BLOCKSIZE 512
8733 *openbsd*) BLDSHARED="true"
8734 LDSHFLAGS="-shared"
8735 DYNEXP="-Wl,-Bdynamic"
8736 SONAMEFLAG="-Wl,-soname,"
8737 PICFLAG="-fPIC"
8738 cat >> confdefs.h <<\EOF
8739 #define STAT_ST_BLOCKSIZE 512
8743 *irix*) cat >> confdefs.h <<\EOF
8744 #define IRIX 1
8747 case "$host_os" in
8748 *irix6*) cat >> confdefs.h <<\EOF
8749 #define IRIX6 1
8753 esac
8754 ATTEMPT_WRAP32_BUILD=yes
8755 BLDSHARED="true"
8756 LDSHFLAGS="-set_version sgi1.0 -shared"
8757 SONAMEFLAG="-soname "
8758 SHLD="\${LD}"
8759 if test "${GCC}" = "yes"; then
8760 PICFLAG="-fPIC"
8761 else
8762 PICFLAG="-KPIC"
8764 cat >> confdefs.h <<\EOF
8765 #define STAT_ST_BLOCKSIZE 512
8769 *aix*) cat >> confdefs.h <<\EOF
8770 #define AIX 1
8773 BLDSHARED="true"
8774 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8775 DYNEXP="-Wl,-brtl,-bexpall"
8776 PICFLAG="-O2"
8777 if test "${GCC}" != "yes"; then
8778 ## for funky AIX compiler using strncpy()
8779 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
8782 cat >> confdefs.h <<\EOF
8783 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8787 *hpux*) cat >> confdefs.h <<\EOF
8788 #define HPUX 1
8791 SHLIBEXT="sl"
8792 # Use special PIC flags for the native HP-UX compiler.
8793 if test $ac_cv_prog_cc_Ae = yes; then
8794 BLDSHARED="true"
8795 SHLD="/usr/bin/ld"
8796 LDSHFLAGS="-B symbolic -b -z"
8797 SONAMEFLAG="+h "
8798 PICFLAG="+z"
8800 DYNEXP="-Wl,-E"
8801 cat >> confdefs.h <<\EOF
8802 #define STAT_ST_BLOCKSIZE 8192
8806 *qnx*) cat >> confdefs.h <<\EOF
8807 #define QNX 1
8810 *osf*) cat >> confdefs.h <<\EOF
8811 #define OSF1 1
8814 BLDSHARED="true"
8815 LDSHFLAGS="-shared"
8816 SONAMEFLAG="-Wl,-soname,"
8817 PICFLAG="-fPIC"
8819 *sco*) cat >> confdefs.h <<\EOF
8820 #define SCO 1
8823 *unixware*) cat >> confdefs.h <<\EOF
8824 #define UNIXWARE 1
8827 BLDSHARED="true"
8828 LDSHFLAGS="-shared"
8829 SONAMEFLAG="-Wl,-soname,"
8830 PICFLAG="-KPIC"
8832 *next2*) cat >> confdefs.h <<\EOF
8833 #define NEXT2 1
8836 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8837 set dummy groff; ac_word=$2
8838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8839 echo "configure:8840: checking for $ac_word" >&5
8840 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8841 echo $ac_n "(cached) $ac_c" 1>&6
8842 else
8843 if test -n "$ROFF"; then
8844 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8845 else
8846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8847 ac_dummy="$PATH"
8848 for ac_dir in $ac_dummy; do
8849 test -z "$ac_dir" && ac_dir=.
8850 if test -f $ac_dir/$ac_word; then
8851 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8852 break
8854 done
8855 IFS="$ac_save_ifs"
8858 ROFF="$ac_cv_prog_ROFF"
8859 if test -n "$ROFF"; then
8860 echo "$ac_t""$ROFF" 1>&6
8861 else
8862 echo "$ac_t""no" 1>&6
8865 *sysv4*)
8866 case "$host" in
8867 *-univel-*) if test "$GCC" != yes ; then
8868 cat >> confdefs.h <<\EOF
8869 #define HAVE_MEMSET 1
8873 LDSHFLAGS="-G"
8874 DYNEXP="-Bexport"
8876 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8877 #define RELIANTUNIX 1
8880 esac
8882 *sysv5*)
8883 if test "$GCC" != yes ; then
8884 cat >> confdefs.h <<\EOF
8885 #define HAVE_MEMSET 1
8889 LDSHFLAGS="-G"
8891 esac
8893 echo "$ac_t""$BLDSHARED" 1>&6
8894 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8895 echo "configure:8896: checking linker flags for shared libraries" >&5
8896 echo "$ac_t""$LDSHFLAGS" 1>&6
8897 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8898 echo "configure:8899: checking compiler flags for position-independent code" >&5
8899 echo "$ac_t""$PICFLAGS" 1>&6
8901 # try to work out how to produce pic code with this compiler
8902 if test x$PICFLAG = x; then
8903 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8904 echo "configure:8905: checking whether ${CC-cc} accepts -fpic" >&5
8905 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8906 echo $ac_n "(cached) $ac_c" 1>&6
8907 else
8908 echo 'void f(){}' > conftest.c
8909 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8910 ac_cv_prog_cc_fpic=yes
8911 else
8912 ac_cv_prog_cc_fpic=no
8914 rm -f conftest*
8918 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8919 if test $ac_cv_prog_cc_fpic = yes; then
8920 PICFLAG="-fpic";
8923 if test x$PICFLAG = x; then
8924 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8925 echo "configure:8926: checking whether ${CC-cc} accepts -KPIC" >&5
8926 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8927 echo $ac_n "(cached) $ac_c" 1>&6
8928 else
8929 echo 'void f(){}' > conftest.c
8930 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8931 ac_cv_prog_cc_KPIC=yes
8932 else
8933 ac_cv_prog_cc_KPIC=no
8935 rm -f conftest*
8939 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8940 if test $ac_cv_prog_cc_KPIC = yes; then
8941 PICFLAG="-KPIC";
8944 if test x$PICFLAG = x; then
8945 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8946 echo "configure:8947: checking whether ${CC-cc} accepts -Kpic" >&5
8947 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8948 echo $ac_n "(cached) $ac_c" 1>&6
8949 else
8950 echo 'void f(){}' > conftest.c
8951 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8952 ac_cv_prog_cc_Kpic=yes
8953 else
8954 ac_cv_prog_cc_Kpic=no
8956 rm -f conftest*
8960 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8961 if test $ac_cv_prog_cc_Kpic = yes; then
8962 PICFLAG="-Kpic";
8966 ################
8968 echo $ac_n "checking for long long""... $ac_c" 1>&6
8969 echo "configure:8970: checking for long long" >&5
8970 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8971 echo $ac_n "(cached) $ac_c" 1>&6
8972 else
8974 if test "$cross_compiling" = yes; then
8975 samba_cv_have_longlong=cross
8976 else
8977 cat > conftest.$ac_ext <<EOF
8978 #line 8979 "configure"
8979 #include "confdefs.h"
8980 #include <stdio.h>
8981 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8983 if { (eval echo configure:8984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8984 then
8985 samba_cv_have_longlong=yes
8986 else
8987 echo "configure: failed program was:" >&5
8988 cat conftest.$ac_ext >&5
8989 rm -fr conftest*
8990 samba_cv_have_longlong=no
8992 rm -fr conftest*
8997 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8998 if test x"$samba_cv_have_longlong" = x"yes"; then
8999 cat >> confdefs.h <<\EOF
9000 #define HAVE_LONGLONG 1
9006 # Check if the compiler supports the LL prefix on long long integers.
9007 # AIX needs this.
9009 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9010 echo "configure:9011: checking for LL suffix on long long integers" >&5
9011 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9012 echo $ac_n "(cached) $ac_c" 1>&6
9013 else
9015 cat > conftest.$ac_ext <<EOF
9016 #line 9017 "configure"
9017 #include "confdefs.h"
9018 #include <stdio.h>
9019 int main() {
9020 long long i = 0x8000000000LL
9021 ; return 0; }
9023 if { (eval echo configure:9024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9024 rm -rf conftest*
9025 samba_cv_compiler_supports_ll=yes
9026 else
9027 echo "configure: failed program was:" >&5
9028 cat conftest.$ac_ext >&5
9029 rm -rf conftest*
9030 samba_cv_compiler_supports_ll=no
9032 rm -f conftest*
9035 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9036 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9037 cat >> confdefs.h <<\EOF
9038 #define COMPILER_SUPPORTS_LL 1
9044 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9045 echo "configure:9046: checking for 64 bit off_t" >&5
9046 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9047 echo $ac_n "(cached) $ac_c" 1>&6
9048 else
9050 if test "$cross_compiling" = yes; then
9051 samba_cv_SIZEOF_OFF_T=cross
9052 else
9053 cat > conftest.$ac_ext <<EOF
9054 #line 9055 "configure"
9055 #include "confdefs.h"
9056 #include <stdio.h>
9057 #include <sys/stat.h>
9058 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9060 if { (eval echo configure:9061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9061 then
9062 samba_cv_SIZEOF_OFF_T=yes
9063 else
9064 echo "configure: failed program was:" >&5
9065 cat conftest.$ac_ext >&5
9066 rm -fr conftest*
9067 samba_cv_SIZEOF_OFF_T=no
9069 rm -fr conftest*
9074 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9075 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9076 cat >> confdefs.h <<\EOF
9077 #define SIZEOF_OFF_T 8
9082 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9083 echo "configure:9084: checking for off64_t" >&5
9084 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9085 echo $ac_n "(cached) $ac_c" 1>&6
9086 else
9088 if test "$cross_compiling" = yes; then
9089 samba_cv_HAVE_OFF64_T=cross
9090 else
9091 cat > conftest.$ac_ext <<EOF
9092 #line 9093 "configure"
9093 #include "confdefs.h"
9095 #if defined(HAVE_UNISTD_H)
9096 #include <unistd.h>
9097 #endif
9098 #include <stdio.h>
9099 #include <sys/stat.h>
9100 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9102 if { (eval echo configure:9103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9103 then
9104 samba_cv_HAVE_OFF64_T=yes
9105 else
9106 echo "configure: failed program was:" >&5
9107 cat conftest.$ac_ext >&5
9108 rm -fr conftest*
9109 samba_cv_HAVE_OFF64_T=no
9111 rm -fr conftest*
9116 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9117 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9118 cat >> confdefs.h <<\EOF
9119 #define HAVE_OFF64_T 1
9124 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9125 echo "configure:9126: checking for 64 bit ino_t" >&5
9126 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9127 echo $ac_n "(cached) $ac_c" 1>&6
9128 else
9130 if test "$cross_compiling" = yes; then
9131 samba_cv_SIZEOF_INO_T=cross
9132 else
9133 cat > conftest.$ac_ext <<EOF
9134 #line 9135 "configure"
9135 #include "confdefs.h"
9136 #include <stdio.h>
9137 #include <sys/stat.h>
9138 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9140 if { (eval echo configure:9141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9141 then
9142 samba_cv_SIZEOF_INO_T=yes
9143 else
9144 echo "configure: failed program was:" >&5
9145 cat conftest.$ac_ext >&5
9146 rm -fr conftest*
9147 samba_cv_SIZEOF_INO_T=no
9149 rm -fr conftest*
9154 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9155 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9156 cat >> confdefs.h <<\EOF
9157 #define SIZEOF_INO_T 8
9162 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9163 echo "configure:9164: checking for ino64_t" >&5
9164 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9165 echo $ac_n "(cached) $ac_c" 1>&6
9166 else
9168 if test "$cross_compiling" = yes; then
9169 samba_cv_HAVE_INO64_T=cross
9170 else
9171 cat > conftest.$ac_ext <<EOF
9172 #line 9173 "configure"
9173 #include "confdefs.h"
9175 #if defined(HAVE_UNISTD_H)
9176 #include <unistd.h>
9177 #endif
9178 #include <stdio.h>
9179 #include <sys/stat.h>
9180 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9182 if { (eval echo configure:9183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9183 then
9184 samba_cv_HAVE_INO64_T=yes
9185 else
9186 echo "configure: failed program was:" >&5
9187 cat conftest.$ac_ext >&5
9188 rm -fr conftest*
9189 samba_cv_HAVE_INO64_T=no
9191 rm -fr conftest*
9196 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9197 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9198 cat >> confdefs.h <<\EOF
9199 #define HAVE_INO64_T 1
9204 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9205 echo "configure:9206: checking for dev64_t" >&5
9206 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9207 echo $ac_n "(cached) $ac_c" 1>&6
9208 else
9210 if test "$cross_compiling" = yes; then
9211 samba_cv_HAVE_DEV64_T=cross
9212 else
9213 cat > conftest.$ac_ext <<EOF
9214 #line 9215 "configure"
9215 #include "confdefs.h"
9217 #if defined(HAVE_UNISTD_H)
9218 #include <unistd.h>
9219 #endif
9220 #include <stdio.h>
9221 #include <sys/stat.h>
9222 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9224 if { (eval echo configure:9225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9225 then
9226 samba_cv_HAVE_DEV64_T=yes
9227 else
9228 echo "configure: failed program was:" >&5
9229 cat conftest.$ac_ext >&5
9230 rm -fr conftest*
9231 samba_cv_HAVE_DEV64_T=no
9233 rm -fr conftest*
9238 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9239 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9240 cat >> confdefs.h <<\EOF
9241 #define HAVE_DEV64_T 1
9246 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9247 echo "configure:9248: checking for struct dirent64" >&5
9248 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9249 echo $ac_n "(cached) $ac_c" 1>&6
9250 else
9252 cat > conftest.$ac_ext <<EOF
9253 #line 9254 "configure"
9254 #include "confdefs.h"
9256 #if defined(HAVE_UNISTD_H)
9257 #include <unistd.h>
9258 #endif
9259 #include <sys/types.h>
9260 #include <dirent.h>
9261 int main() {
9262 struct dirent64 de;
9263 ; return 0; }
9265 if { (eval echo configure:9266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9266 rm -rf conftest*
9267 samba_cv_HAVE_STRUCT_DIRENT64=yes
9268 else
9269 echo "configure: failed program was:" >&5
9270 cat conftest.$ac_ext >&5
9271 rm -rf conftest*
9272 samba_cv_HAVE_STRUCT_DIRENT64=no
9274 rm -f conftest*
9277 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9278 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9279 cat >> confdefs.h <<\EOF
9280 #define HAVE_STRUCT_DIRENT64 1
9285 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9286 echo "configure:9287: checking for major macro" >&5
9287 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9288 echo $ac_n "(cached) $ac_c" 1>&6
9289 else
9291 if test "$cross_compiling" = yes; then
9292 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9293 else
9294 cat > conftest.$ac_ext <<EOF
9295 #line 9296 "configure"
9296 #include "confdefs.h"
9298 #if defined(HAVE_UNISTD_H)
9299 #include <unistd.h>
9300 #endif
9301 #include <sys/types.h>
9302 main() { dev_t dev; int i = major(dev); return 0; }
9304 if { (eval echo configure:9305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9305 then
9306 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9307 else
9308 echo "configure: failed program was:" >&5
9309 cat conftest.$ac_ext >&5
9310 rm -fr conftest*
9311 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9313 rm -fr conftest*
9318 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9319 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9320 cat >> confdefs.h <<\EOF
9321 #define HAVE_DEVICE_MAJOR_FN 1
9326 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9327 echo "configure:9328: checking for minor macro" >&5
9328 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9329 echo $ac_n "(cached) $ac_c" 1>&6
9330 else
9332 if test "$cross_compiling" = yes; then
9333 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9334 else
9335 cat > conftest.$ac_ext <<EOF
9336 #line 9337 "configure"
9337 #include "confdefs.h"
9339 #if defined(HAVE_UNISTD_H)
9340 #include <unistd.h>
9341 #endif
9342 #include <sys/types.h>
9343 main() { dev_t dev; int i = minor(dev); return 0; }
9345 if { (eval echo configure:9346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9346 then
9347 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9348 else
9349 echo "configure: failed program was:" >&5
9350 cat conftest.$ac_ext >&5
9351 rm -fr conftest*
9352 samba_cv_HAVE_DEVICE_MINOR_FN=no
9354 rm -fr conftest*
9359 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9360 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9361 cat >> confdefs.h <<\EOF
9362 #define HAVE_DEVICE_MINOR_FN 1
9367 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9368 echo "configure:9369: checking for makedev macro" >&5
9369 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9370 echo $ac_n "(cached) $ac_c" 1>&6
9371 else
9373 if test "$cross_compiling" = yes; then
9374 samba_cv_HAVE_MAKEDEV_FN=cross
9375 else
9376 cat > conftest.$ac_ext <<EOF
9377 #line 9378 "configure"
9378 #include "confdefs.h"
9380 #if defined(HAVE_UNISTD_H)
9381 #include <unistd.h>
9382 #endif
9383 #include <sys/types.h>
9384 main() { dev_t dev = makedev(1,2); return 0; }
9386 if { (eval echo configure:9387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9387 then
9388 samba_cv_HAVE_MAKEDEV_FN=yes
9389 else
9390 echo "configure: failed program was:" >&5
9391 cat conftest.$ac_ext >&5
9392 rm -fr conftest*
9393 samba_cv_HAVE_MAKEDEV_FN=no
9395 rm -fr conftest*
9400 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9401 if test x"$samba_cv_HAVE_MAKEDEV_FN" = x"yes"; then
9402 cat >> confdefs.h <<\EOF
9403 #define MAKEDEV_FN 1
9408 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9409 echo "configure:9410: checking for unsigned char" >&5
9410 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9411 echo $ac_n "(cached) $ac_c" 1>&6
9412 else
9414 if test "$cross_compiling" = yes; then
9415 samba_cv_HAVE_UNSIGNED_CHAR=cross
9416 else
9417 cat > conftest.$ac_ext <<EOF
9418 #line 9419 "configure"
9419 #include "confdefs.h"
9420 #include <stdio.h>
9421 main() { char c; c=250; exit((c > 0)?0:1); }
9423 if { (eval echo configure:9424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9424 then
9425 samba_cv_HAVE_UNSIGNED_CHAR=yes
9426 else
9427 echo "configure: failed program was:" >&5
9428 cat conftest.$ac_ext >&5
9429 rm -fr conftest*
9430 samba_cv_HAVE_UNSIGNED_CHAR=no
9432 rm -fr conftest*
9437 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9438 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9439 cat >> confdefs.h <<\EOF
9440 #define HAVE_UNSIGNED_CHAR 1
9445 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9446 echo "configure:9447: checking for sin_len in sock" >&5
9447 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9448 echo $ac_n "(cached) $ac_c" 1>&6
9449 else
9451 cat > conftest.$ac_ext <<EOF
9452 #line 9453 "configure"
9453 #include "confdefs.h"
9454 #include <sys/types.h>
9455 #include <sys/socket.h>
9456 #include <netinet/in.h>
9457 int main() {
9458 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9459 ; return 0; }
9461 if { (eval echo configure:9462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9462 rm -rf conftest*
9463 samba_cv_HAVE_SOCK_SIN_LEN=yes
9464 else
9465 echo "configure: failed program was:" >&5
9466 cat conftest.$ac_ext >&5
9467 rm -rf conftest*
9468 samba_cv_HAVE_SOCK_SIN_LEN=no
9470 rm -f conftest*
9473 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9474 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9475 cat >> confdefs.h <<\EOF
9476 #define HAVE_SOCK_SIN_LEN 1
9481 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9482 echo "configure:9483: checking whether seekdir returns void" >&5
9483 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9484 echo $ac_n "(cached) $ac_c" 1>&6
9485 else
9487 cat > conftest.$ac_ext <<EOF
9488 #line 9489 "configure"
9489 #include "confdefs.h"
9490 #include <sys/types.h>
9491 #include <dirent.h>
9492 void seekdir(DIR *d, long loc) { return; }
9493 int main() {
9494 return 0;
9495 ; return 0; }
9497 if { (eval echo configure:9498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9498 rm -rf conftest*
9499 samba_cv_SEEKDIR_RETURNS_VOID=yes
9500 else
9501 echo "configure: failed program was:" >&5
9502 cat conftest.$ac_ext >&5
9503 rm -rf conftest*
9504 samba_cv_SEEKDIR_RETURNS_VOID=no
9506 rm -f conftest*
9509 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9510 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9511 cat >> confdefs.h <<\EOF
9512 #define SEEKDIR_RETURNS_VOID 1
9517 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9518 echo "configure:9519: checking for __FILE__ macro" >&5
9519 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9520 echo $ac_n "(cached) $ac_c" 1>&6
9521 else
9523 cat > conftest.$ac_ext <<EOF
9524 #line 9525 "configure"
9525 #include "confdefs.h"
9526 #include <stdio.h>
9527 int main() {
9528 printf("%s\n", __FILE__);
9529 ; return 0; }
9531 if { (eval echo configure:9532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9532 rm -rf conftest*
9533 samba_cv_HAVE_FILE_MACRO=yes
9534 else
9535 echo "configure: failed program was:" >&5
9536 cat conftest.$ac_ext >&5
9537 rm -rf conftest*
9538 samba_cv_HAVE_FILE_MACRO=no
9540 rm -f conftest*
9543 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9544 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9545 cat >> confdefs.h <<\EOF
9546 #define HAVE_FILE_MACRO 1
9551 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9552 echo "configure:9553: checking for __FUNCTION__ macro" >&5
9553 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9554 echo $ac_n "(cached) $ac_c" 1>&6
9555 else
9557 cat > conftest.$ac_ext <<EOF
9558 #line 9559 "configure"
9559 #include "confdefs.h"
9560 #include <stdio.h>
9561 int main() {
9562 printf("%s\n", __FUNCTION__);
9563 ; return 0; }
9565 if { (eval echo configure:9566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9566 rm -rf conftest*
9567 samba_cv_HAVE_FUNCTION_MACRO=yes
9568 else
9569 echo "configure: failed program was:" >&5
9570 cat conftest.$ac_ext >&5
9571 rm -rf conftest*
9572 samba_cv_HAVE_FUNCTION_MACRO=no
9574 rm -f conftest*
9577 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9578 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9579 cat >> confdefs.h <<\EOF
9580 #define HAVE_FUNCTION_MACRO 1
9585 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9586 echo "configure:9587: checking if gettimeofday takes tz argument" >&5
9587 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9588 echo $ac_n "(cached) $ac_c" 1>&6
9589 else
9591 if test "$cross_compiling" = yes; then
9592 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9593 else
9594 cat > conftest.$ac_ext <<EOF
9595 #line 9596 "configure"
9596 #include "confdefs.h"
9598 #include <sys/time.h>
9599 #include <unistd.h>
9600 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9602 if { (eval echo configure:9603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9603 then
9604 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9605 else
9606 echo "configure: failed program was:" >&5
9607 cat conftest.$ac_ext >&5
9608 rm -fr conftest*
9609 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9611 rm -fr conftest*
9616 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9617 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9618 cat >> confdefs.h <<\EOF
9619 #define HAVE_GETTIMEOFDAY_TZ 1
9624 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9625 echo "configure:9626: checking for __va_copy" >&5
9626 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9627 echo $ac_n "(cached) $ac_c" 1>&6
9628 else
9630 cat > conftest.$ac_ext <<EOF
9631 #line 9632 "configure"
9632 #include "confdefs.h"
9633 #include <stdarg.h>
9634 va_list ap1,ap2;
9635 int main() {
9636 __va_copy(ap1,ap2);
9637 ; return 0; }
9639 if { (eval echo configure:9640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9640 rm -rf conftest*
9641 samba_cv_HAVE_VA_COPY=yes
9642 else
9643 echo "configure: failed program was:" >&5
9644 cat conftest.$ac_ext >&5
9645 rm -rf conftest*
9646 samba_cv_HAVE_VA_COPY=no
9648 rm -f conftest*
9651 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9652 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9653 cat >> confdefs.h <<\EOF
9654 #define HAVE_VA_COPY 1
9659 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9660 echo "configure:9661: checking for C99 vsnprintf" >&5
9661 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9662 echo $ac_n "(cached) $ac_c" 1>&6
9663 else
9665 if test "$cross_compiling" = yes; then
9666 samba_cv_HAVE_C99_VSNPRINTF=cross
9667 else
9668 cat > conftest.$ac_ext <<EOF
9669 #line 9670 "configure"
9670 #include "confdefs.h"
9672 #include <sys/types.h>
9673 #include <stdarg.h>
9674 void foo(const char *format, ...) {
9675 va_list ap;
9676 int len;
9677 char buf[5];
9679 va_start(ap, format);
9680 len = vsnprintf(buf, 0, format, ap);
9681 va_end(ap);
9682 if (len != 5) exit(1);
9684 va_start(ap, format);
9685 len = vsnprintf(0, 0, format, ap);
9686 va_end(ap);
9687 if (len != 5) exit(1);
9689 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9691 exit(0);
9693 main() { foo("hello"); }
9696 if { (eval echo configure:9697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9697 then
9698 samba_cv_HAVE_C99_VSNPRINTF=yes
9699 else
9700 echo "configure: failed program was:" >&5
9701 cat conftest.$ac_ext >&5
9702 rm -fr conftest*
9703 samba_cv_HAVE_C99_VSNPRINTF=no
9705 rm -fr conftest*
9710 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9711 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9712 cat >> confdefs.h <<\EOF
9713 #define HAVE_C99_VSNPRINTF 1
9718 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9719 echo "configure:9720: checking for broken readdir" >&5
9720 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9721 echo $ac_n "(cached) $ac_c" 1>&6
9722 else
9724 if test "$cross_compiling" = yes; then
9725 samba_cv_HAVE_BROKEN_READDIR=cross
9726 else
9727 cat > conftest.$ac_ext <<EOF
9728 #line 9729 "configure"
9729 #include "confdefs.h"
9730 #include <sys/types.h>
9731 #include <dirent.h>
9732 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9733 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9734 di->d_name[0] == 0) exit(0); exit(1);}
9736 if { (eval echo configure:9737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9737 then
9738 samba_cv_HAVE_BROKEN_READDIR=yes
9739 else
9740 echo "configure: failed program was:" >&5
9741 cat conftest.$ac_ext >&5
9742 rm -fr conftest*
9743 samba_cv_HAVE_BROKEN_READDIR=no
9745 rm -fr conftest*
9750 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9751 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9752 cat >> confdefs.h <<\EOF
9753 #define HAVE_BROKEN_READDIR 1
9758 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9759 echo "configure:9760: checking for utimbuf" >&5
9760 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9761 echo $ac_n "(cached) $ac_c" 1>&6
9762 else
9764 cat > conftest.$ac_ext <<EOF
9765 #line 9766 "configure"
9766 #include "confdefs.h"
9767 #include <sys/types.h>
9768 #include <utime.h>
9769 int main() {
9770 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9771 ; return 0; }
9773 if { (eval echo configure:9774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9774 rm -rf conftest*
9775 samba_cv_HAVE_UTIMBUF=yes
9776 else
9777 echo "configure: failed program was:" >&5
9778 cat conftest.$ac_ext >&5
9779 rm -rf conftest*
9780 samba_cv_HAVE_UTIMBUF=no
9782 rm -f conftest*
9785 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9786 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9787 cat >> confdefs.h <<\EOF
9788 #define HAVE_UTIMBUF 1
9794 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9797 echo "configure:9798: checking for $ac_func" >&5
9798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9799 echo $ac_n "(cached) $ac_c" 1>&6
9800 else
9801 cat > conftest.$ac_ext <<EOF
9802 #line 9803 "configure"
9803 #include "confdefs.h"
9804 /* System header to define __stub macros and hopefully few prototypes,
9805 which can conflict with char $ac_func(); below. */
9806 #include <assert.h>
9807 /* Override any gcc2 internal prototype to avoid an error. */
9808 /* We use char because int might match the return type of a gcc2
9809 builtin and then its argument prototype would still apply. */
9810 char $ac_func();
9812 int main() {
9814 /* The GNU C library defines this for functions which it implements
9815 to always fail with ENOSYS. Some functions are actually named
9816 something starting with __ and the normal name is an alias. */
9817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9818 choke me
9819 #else
9820 $ac_func();
9821 #endif
9823 ; return 0; }
9825 if { (eval echo configure:9826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9826 rm -rf conftest*
9827 eval "ac_cv_func_$ac_func=yes"
9828 else
9829 echo "configure: failed program was:" >&5
9830 cat conftest.$ac_ext >&5
9831 rm -rf conftest*
9832 eval "ac_cv_func_$ac_func=no"
9834 rm -f conftest*
9837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9838 echo "$ac_t""yes" 1>&6
9839 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9840 cat >> confdefs.h <<EOF
9841 #define $ac_tr_func 1
9844 else
9845 echo "$ac_t""no" 1>&6
9847 done
9850 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9851 echo "configure:9852: checking for ut_name in utmp" >&5
9852 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9853 echo $ac_n "(cached) $ac_c" 1>&6
9854 else
9856 cat > conftest.$ac_ext <<EOF
9857 #line 9858 "configure"
9858 #include "confdefs.h"
9859 #include <sys/types.h>
9860 #include <utmp.h>
9861 int main() {
9862 struct utmp ut; ut.ut_name[0] = 'a';
9863 ; return 0; }
9865 if { (eval echo configure:9866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9866 rm -rf conftest*
9867 samba_cv_HAVE_UT_UT_NAME=yes
9868 else
9869 echo "configure: failed program was:" >&5
9870 cat conftest.$ac_ext >&5
9871 rm -rf conftest*
9872 samba_cv_HAVE_UT_UT_NAME=no
9874 rm -f conftest*
9877 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9878 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9879 cat >> confdefs.h <<\EOF
9880 #define HAVE_UT_UT_NAME 1
9885 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9886 echo "configure:9887: checking for ut_user in utmp" >&5
9887 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9888 echo $ac_n "(cached) $ac_c" 1>&6
9889 else
9891 cat > conftest.$ac_ext <<EOF
9892 #line 9893 "configure"
9893 #include "confdefs.h"
9894 #include <sys/types.h>
9895 #include <utmp.h>
9896 int main() {
9897 struct utmp ut; ut.ut_user[0] = 'a';
9898 ; return 0; }
9900 if { (eval echo configure:9901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9901 rm -rf conftest*
9902 samba_cv_HAVE_UT_UT_USER=yes
9903 else
9904 echo "configure: failed program was:" >&5
9905 cat conftest.$ac_ext >&5
9906 rm -rf conftest*
9907 samba_cv_HAVE_UT_UT_USER=no
9909 rm -f conftest*
9912 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9913 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9914 cat >> confdefs.h <<\EOF
9915 #define HAVE_UT_UT_USER 1
9920 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9921 echo "configure:9922: checking for ut_id in utmp" >&5
9922 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9923 echo $ac_n "(cached) $ac_c" 1>&6
9924 else
9926 cat > conftest.$ac_ext <<EOF
9927 #line 9928 "configure"
9928 #include "confdefs.h"
9929 #include <sys/types.h>
9930 #include <utmp.h>
9931 int main() {
9932 struct utmp ut; ut.ut_id[0] = 'a';
9933 ; return 0; }
9935 if { (eval echo configure:9936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9936 rm -rf conftest*
9937 samba_cv_HAVE_UT_UT_ID=yes
9938 else
9939 echo "configure: failed program was:" >&5
9940 cat conftest.$ac_ext >&5
9941 rm -rf conftest*
9942 samba_cv_HAVE_UT_UT_ID=no
9944 rm -f conftest*
9947 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9948 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9949 cat >> confdefs.h <<\EOF
9950 #define HAVE_UT_UT_ID 1
9955 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9956 echo "configure:9957: checking for ut_host in utmp" >&5
9957 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9958 echo $ac_n "(cached) $ac_c" 1>&6
9959 else
9961 cat > conftest.$ac_ext <<EOF
9962 #line 9963 "configure"
9963 #include "confdefs.h"
9964 #include <sys/types.h>
9965 #include <utmp.h>
9966 int main() {
9967 struct utmp ut; ut.ut_host[0] = 'a';
9968 ; return 0; }
9970 if { (eval echo configure:9971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9971 rm -rf conftest*
9972 samba_cv_HAVE_UT_UT_HOST=yes
9973 else
9974 echo "configure: failed program was:" >&5
9975 cat conftest.$ac_ext >&5
9976 rm -rf conftest*
9977 samba_cv_HAVE_UT_UT_HOST=no
9979 rm -f conftest*
9982 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9983 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9984 cat >> confdefs.h <<\EOF
9985 #define HAVE_UT_UT_HOST 1
9990 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9991 echo "configure:9992: checking for ut_time in utmp" >&5
9992 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9993 echo $ac_n "(cached) $ac_c" 1>&6
9994 else
9996 cat > conftest.$ac_ext <<EOF
9997 #line 9998 "configure"
9998 #include "confdefs.h"
9999 #include <sys/types.h>
10000 #include <utmp.h>
10001 int main() {
10002 struct utmp ut; time_t t; ut.ut_time = t;
10003 ; return 0; }
10005 if { (eval echo configure:10006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10006 rm -rf conftest*
10007 samba_cv_HAVE_UT_UT_TIME=yes
10008 else
10009 echo "configure: failed program was:" >&5
10010 cat conftest.$ac_ext >&5
10011 rm -rf conftest*
10012 samba_cv_HAVE_UT_UT_TIME=no
10014 rm -f conftest*
10017 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10018 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10019 cat >> confdefs.h <<\EOF
10020 #define HAVE_UT_UT_TIME 1
10025 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10026 echo "configure:10027: checking for ut_tv in utmp" >&5
10027 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10028 echo $ac_n "(cached) $ac_c" 1>&6
10029 else
10031 cat > conftest.$ac_ext <<EOF
10032 #line 10033 "configure"
10033 #include "confdefs.h"
10034 #include <sys/types.h>
10035 #include <utmp.h>
10036 int main() {
10037 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10038 ; return 0; }
10040 if { (eval echo configure:10041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10041 rm -rf conftest*
10042 samba_cv_HAVE_UT_UT_TV=yes
10043 else
10044 echo "configure: failed program was:" >&5
10045 cat conftest.$ac_ext >&5
10046 rm -rf conftest*
10047 samba_cv_HAVE_UT_UT_TV=no
10049 rm -f conftest*
10052 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10053 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10054 cat >> confdefs.h <<\EOF
10055 #define HAVE_UT_UT_TV 1
10060 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10061 echo "configure:10062: checking for ut_type in utmp" >&5
10062 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10063 echo $ac_n "(cached) $ac_c" 1>&6
10064 else
10066 cat > conftest.$ac_ext <<EOF
10067 #line 10068 "configure"
10068 #include "confdefs.h"
10069 #include <sys/types.h>
10070 #include <utmp.h>
10071 int main() {
10072 struct utmp ut; ut.ut_type = 0;
10073 ; return 0; }
10075 if { (eval echo configure:10076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10076 rm -rf conftest*
10077 samba_cv_HAVE_UT_UT_TYPE=yes
10078 else
10079 echo "configure: failed program was:" >&5
10080 cat conftest.$ac_ext >&5
10081 rm -rf conftest*
10082 samba_cv_HAVE_UT_UT_TYPE=no
10084 rm -f conftest*
10087 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10088 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10089 cat >> confdefs.h <<\EOF
10090 #define HAVE_UT_UT_TYPE 1
10095 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10096 echo "configure:10097: checking for ut_pid in utmp" >&5
10097 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10098 echo $ac_n "(cached) $ac_c" 1>&6
10099 else
10101 cat > conftest.$ac_ext <<EOF
10102 #line 10103 "configure"
10103 #include "confdefs.h"
10104 #include <sys/types.h>
10105 #include <utmp.h>
10106 int main() {
10107 struct utmp ut; ut.ut_pid = 0;
10108 ; return 0; }
10110 if { (eval echo configure:10111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10111 rm -rf conftest*
10112 samba_cv_HAVE_UT_UT_PID=yes
10113 else
10114 echo "configure: failed program was:" >&5
10115 cat conftest.$ac_ext >&5
10116 rm -rf conftest*
10117 samba_cv_HAVE_UT_UT_PID=no
10119 rm -f conftest*
10122 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10123 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10124 cat >> confdefs.h <<\EOF
10125 #define HAVE_UT_UT_PID 1
10130 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10131 echo "configure:10132: checking for ut_exit in utmp" >&5
10132 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10133 echo $ac_n "(cached) $ac_c" 1>&6
10134 else
10136 cat > conftest.$ac_ext <<EOF
10137 #line 10138 "configure"
10138 #include "confdefs.h"
10139 #include <sys/types.h>
10140 #include <utmp.h>
10141 int main() {
10142 struct utmp ut; ut.ut_exit.e_exit = 0;
10143 ; return 0; }
10145 if { (eval echo configure:10146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10146 rm -rf conftest*
10147 samba_cv_HAVE_UT_UT_EXIT=yes
10148 else
10149 echo "configure: failed program was:" >&5
10150 cat conftest.$ac_ext >&5
10151 rm -rf conftest*
10152 samba_cv_HAVE_UT_UT_EXIT=no
10154 rm -f conftest*
10157 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10158 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10159 cat >> confdefs.h <<\EOF
10160 #define HAVE_UT_UT_EXIT 1
10165 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10166 echo "configure:10167: checking for ut_addr in utmp" >&5
10167 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10168 echo $ac_n "(cached) $ac_c" 1>&6
10169 else
10171 cat > conftest.$ac_ext <<EOF
10172 #line 10173 "configure"
10173 #include "confdefs.h"
10174 #include <sys/types.h>
10175 #include <utmp.h>
10176 int main() {
10177 struct utmp ut; ut.ut_addr = 0;
10178 ; return 0; }
10180 if { (eval echo configure:10181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10181 rm -rf conftest*
10182 samba_cv_HAVE_UT_UT_ADDR=yes
10183 else
10184 echo "configure: failed program was:" >&5
10185 cat conftest.$ac_ext >&5
10186 rm -rf conftest*
10187 samba_cv_HAVE_UT_UT_ADDR=no
10189 rm -f conftest*
10192 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10193 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10194 cat >> confdefs.h <<\EOF
10195 #define HAVE_UT_UT_ADDR 1
10200 if test x$ac_cv_func_pututline = xyes ; then
10201 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10202 echo "configure:10203: checking whether pututline returns pointer" >&5
10203 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10204 echo $ac_n "(cached) $ac_c" 1>&6
10205 else
10207 cat > conftest.$ac_ext <<EOF
10208 #line 10209 "configure"
10209 #include "confdefs.h"
10210 #include <sys/types.h>
10211 #include <utmp.h>
10212 int main() {
10213 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10214 ; return 0; }
10216 if { (eval echo configure:10217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10217 rm -rf conftest*
10218 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10219 else
10220 echo "configure: failed program was:" >&5
10221 cat conftest.$ac_ext >&5
10222 rm -rf conftest*
10223 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10225 rm -f conftest*
10228 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10229 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10230 cat >> confdefs.h <<\EOF
10231 #define PUTUTLINE_RETURNS_UTMP 1
10237 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10238 echo "configure:10239: checking for ut_syslen in utmpx" >&5
10239 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10240 echo $ac_n "(cached) $ac_c" 1>&6
10241 else
10243 cat > conftest.$ac_ext <<EOF
10244 #line 10245 "configure"
10245 #include "confdefs.h"
10246 #include <sys/types.h>
10247 #include <utmpx.h>
10248 int main() {
10249 struct utmpx ux; ux.ut_syslen = 0;
10250 ; return 0; }
10252 if { (eval echo configure:10253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10253 rm -rf conftest*
10254 samba_cv_HAVE_UX_UT_SYSLEN=yes
10255 else
10256 echo "configure: failed program was:" >&5
10257 cat conftest.$ac_ext >&5
10258 rm -rf conftest*
10259 samba_cv_HAVE_UX_UT_SYSLEN=no
10261 rm -f conftest*
10264 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10265 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10266 cat >> confdefs.h <<\EOF
10267 #define HAVE_UX_UT_SYSLEN 1
10272 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10273 echo "configure:10274: checking for Linux kernel oplocks" >&5
10274 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10275 echo $ac_n "(cached) $ac_c" 1>&6
10276 else
10278 if test "$cross_compiling" = yes; then
10279 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10280 else
10281 cat > conftest.$ac_ext <<EOF
10282 #line 10283 "configure"
10283 #include "confdefs.h"
10285 #include <sys/types.h>
10286 #include <fcntl.h>
10287 #ifndef F_GETLEASE
10288 #define F_GETLEASE 1025
10289 #endif
10290 main() {
10291 int fd = open("/dev/null", O_RDONLY);
10292 return fcntl(fd, F_GETLEASE, 0) == -1;
10296 if { (eval echo configure:10297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10297 then
10298 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10299 else
10300 echo "configure: failed program was:" >&5
10301 cat conftest.$ac_ext >&5
10302 rm -fr conftest*
10303 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10305 rm -fr conftest*
10310 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10311 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10312 cat >> confdefs.h <<\EOF
10313 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10318 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10319 echo "configure:10320: checking for kernel change notify support" >&5
10320 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10321 echo $ac_n "(cached) $ac_c" 1>&6
10322 else
10324 if test "$cross_compiling" = yes; then
10325 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10326 else
10327 cat > conftest.$ac_ext <<EOF
10328 #line 10329 "configure"
10329 #include "confdefs.h"
10331 #include <sys/types.h>
10332 #include <fcntl.h>
10333 #include <signal.h>
10334 #ifndef F_NOTIFY
10335 #define F_NOTIFY 1026
10336 #endif
10337 main() {
10338 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10342 if { (eval echo configure:10343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10343 then
10344 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10345 else
10346 echo "configure: failed program was:" >&5
10347 cat conftest.$ac_ext >&5
10348 rm -fr conftest*
10349 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10351 rm -fr conftest*
10356 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10357 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes" && test x"$target_cpu" != x"s390"; then
10358 cat >> confdefs.h <<\EOF
10359 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10364 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10365 echo "configure:10366: checking for kernel share modes" >&5
10366 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10367 echo $ac_n "(cached) $ac_c" 1>&6
10368 else
10370 if test "$cross_compiling" = yes; then
10371 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10372 else
10373 cat > conftest.$ac_ext <<EOF
10374 #line 10375 "configure"
10375 #include "confdefs.h"
10377 #include <sys/types.h>
10378 #include <fcntl.h>
10379 #include <signal.h>
10380 #include <sys/file.h>
10381 #ifndef LOCK_MAND
10382 #define LOCK_MAND 32
10383 #define LOCK_READ 64
10384 #endif
10385 main() {
10386 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10390 if { (eval echo configure:10391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10391 then
10392 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10393 else
10394 echo "configure: failed program was:" >&5
10395 cat conftest.$ac_ext >&5
10396 rm -fr conftest*
10397 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10399 rm -fr conftest*
10404 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10405 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10406 cat >> confdefs.h <<\EOF
10407 #define HAVE_KERNEL_SHARE_MODES 1
10415 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10416 echo "configure:10417: checking for IRIX kernel oplock type definitions" >&5
10417 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10418 echo $ac_n "(cached) $ac_c" 1>&6
10419 else
10421 cat > conftest.$ac_ext <<EOF
10422 #line 10423 "configure"
10423 #include "confdefs.h"
10424 #include <sys/types.h>
10425 #include <fcntl.h>
10426 int main() {
10427 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10428 ; return 0; }
10430 if { (eval echo configure:10431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10431 rm -rf conftest*
10432 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10433 else
10434 echo "configure: failed program was:" >&5
10435 cat conftest.$ac_ext >&5
10436 rm -rf conftest*
10437 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10439 rm -f conftest*
10442 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10443 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10444 cat >> confdefs.h <<\EOF
10445 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10450 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10451 echo "configure:10452: checking for irix specific capabilities" >&5
10452 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10453 echo $ac_n "(cached) $ac_c" 1>&6
10454 else
10456 if test "$cross_compiling" = yes; then
10457 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10458 else
10459 cat > conftest.$ac_ext <<EOF
10460 #line 10461 "configure"
10461 #include "confdefs.h"
10462 #include <sys/types.h>
10463 #include <sys/capability.h>
10464 main() {
10465 cap_t cap;
10466 if ((cap = cap_get_proc()) == NULL)
10467 exit(1);
10468 cap->cap_effective |= CAP_NETWORK_MGT;
10469 cap->cap_inheritable |= CAP_NETWORK_MGT;
10470 cap_set_proc(cap);
10471 exit(0);
10475 if { (eval echo configure:10476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10476 then
10477 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10478 else
10479 echo "configure: failed program was:" >&5
10480 cat conftest.$ac_ext >&5
10481 rm -fr conftest*
10482 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10484 rm -fr conftest*
10489 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10490 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10491 cat >> confdefs.h <<\EOF
10492 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10498 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10499 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10502 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10503 echo "configure:10504: checking for int16 typedef included by rpc/rpc.h" >&5
10504 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10505 echo $ac_n "(cached) $ac_c" 1>&6
10506 else
10508 cat > conftest.$ac_ext <<EOF
10509 #line 10510 "configure"
10510 #include "confdefs.h"
10511 #include <sys/types.h>
10512 #if defined(HAVE_RPC_RPC_H)
10513 #include <rpc/rpc.h>
10514 #endif
10515 int main() {
10516 int16 testvar;
10517 ; return 0; }
10519 if { (eval echo configure:10520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10520 rm -rf conftest*
10521 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10522 else
10523 echo "configure: failed program was:" >&5
10524 cat conftest.$ac_ext >&5
10525 rm -rf conftest*
10526 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10528 rm -f conftest*
10531 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10532 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10533 cat >> confdefs.h <<\EOF
10534 #define HAVE_INT16_FROM_RPC_RPC_H 1
10539 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10540 echo "configure:10541: checking for uint16 typedef included by rpc/rpc.h" >&5
10541 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10542 echo $ac_n "(cached) $ac_c" 1>&6
10543 else
10545 cat > conftest.$ac_ext <<EOF
10546 #line 10547 "configure"
10547 #include "confdefs.h"
10548 #include <sys/types.h>
10549 #if defined(HAVE_RPC_RPC_H)
10550 #include <rpc/rpc.h>
10551 #endif
10552 int main() {
10553 uint16 testvar;
10554 ; return 0; }
10556 if { (eval echo configure:10557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10557 rm -rf conftest*
10558 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10559 else
10560 echo "configure: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10562 rm -rf conftest*
10563 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10565 rm -f conftest*
10568 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10569 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10570 cat >> confdefs.h <<\EOF
10571 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10576 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10577 echo "configure:10578: checking for int32 typedef included by rpc/rpc.h" >&5
10578 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10579 echo $ac_n "(cached) $ac_c" 1>&6
10580 else
10582 cat > conftest.$ac_ext <<EOF
10583 #line 10584 "configure"
10584 #include "confdefs.h"
10585 #include <sys/types.h>
10586 #if defined(HAVE_RPC_RPC_H)
10587 #include <rpc/rpc.h>
10588 #endif
10589 int main() {
10590 int32 testvar;
10591 ; return 0; }
10593 if { (eval echo configure:10594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10594 rm -rf conftest*
10595 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10596 else
10597 echo "configure: failed program was:" >&5
10598 cat conftest.$ac_ext >&5
10599 rm -rf conftest*
10600 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10602 rm -f conftest*
10605 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10606 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10607 cat >> confdefs.h <<\EOF
10608 #define HAVE_INT32_FROM_RPC_RPC_H 1
10613 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10614 echo "configure:10615: checking for uint32 typedef included by rpc/rpc.h" >&5
10615 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10616 echo $ac_n "(cached) $ac_c" 1>&6
10617 else
10619 cat > conftest.$ac_ext <<EOF
10620 #line 10621 "configure"
10621 #include "confdefs.h"
10622 #include <sys/types.h>
10623 #if defined(HAVE_RPC_RPC_H)
10624 #include <rpc/rpc.h>
10625 #endif
10626 int main() {
10627 uint32 testvar;
10628 ; return 0; }
10630 if { (eval echo configure:10631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10631 rm -rf conftest*
10632 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10633 else
10634 echo "configure: failed program was:" >&5
10635 cat conftest.$ac_ext >&5
10636 rm -rf conftest*
10637 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10639 rm -f conftest*
10642 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10643 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10644 cat >> confdefs.h <<\EOF
10645 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10651 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10652 echo "configure:10653: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10653 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10654 echo $ac_n "(cached) $ac_c" 1>&6
10655 else
10657 cat > conftest.$ac_ext <<EOF
10658 #line 10659 "configure"
10659 #include "confdefs.h"
10660 #include <sys/types.h>
10661 #ifdef HAVE_SYS_SECURITY_H
10662 #include <sys/security.h>
10663 #include <prot.h>
10664 #endif /* HAVE_SYS_SECURITY_H */
10665 #if defined(HAVE_RPC_RPC_H)
10666 #include <rpc/rpc.h>
10667 #endif
10668 int main() {
10669 int testvar;
10670 ; return 0; }
10672 if { (eval echo configure:10673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10673 rm -rf conftest*
10674 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10675 else
10676 echo "configure: failed program was:" >&5
10677 cat conftest.$ac_ext >&5
10678 rm -rf conftest*
10679 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10681 rm -f conftest*
10684 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10685 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10686 cat >> confdefs.h <<\EOF
10687 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10692 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10693 echo "configure:10694: checking for test routines" >&5
10694 if test "$cross_compiling" = yes; then
10695 echo "configure: warning: cannot run when cross-compiling" 1>&2
10696 else
10697 cat > conftest.$ac_ext <<EOF
10698 #line 10699 "configure"
10699 #include "confdefs.h"
10700 #include "${srcdir-.}/tests/trivial.c"
10702 if { (eval echo configure:10703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10703 then
10704 echo "$ac_t""yes" 1>&6
10705 else
10706 echo "configure: failed program was:" >&5
10707 cat conftest.$ac_ext >&5
10708 rm -fr conftest*
10709 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10711 rm -fr conftest*
10715 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10716 echo "configure:10717: checking for ftruncate extend" >&5
10717 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10718 echo $ac_n "(cached) $ac_c" 1>&6
10719 else
10721 if test "$cross_compiling" = yes; then
10722 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10723 else
10724 cat > conftest.$ac_ext <<EOF
10725 #line 10726 "configure"
10726 #include "confdefs.h"
10727 #include "${srcdir-.}/tests/ftruncate.c"
10729 if { (eval echo configure:10730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10730 then
10731 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10732 else
10733 echo "configure: failed program was:" >&5
10734 cat conftest.$ac_ext >&5
10735 rm -fr conftest*
10736 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10738 rm -fr conftest*
10743 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10744 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10745 cat >> confdefs.h <<\EOF
10746 #define HAVE_FTRUNCATE_EXTEND 1
10751 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10752 echo "configure:10753: checking for broken getgroups" >&5
10753 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10754 echo $ac_n "(cached) $ac_c" 1>&6
10755 else
10757 if test "$cross_compiling" = yes; then
10758 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10759 else
10760 cat > conftest.$ac_ext <<EOF
10761 #line 10762 "configure"
10762 #include "confdefs.h"
10763 #include "${srcdir-.}/tests/getgroups.c"
10765 if { (eval echo configure:10766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10766 then
10767 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10768 else
10769 echo "configure: failed program was:" >&5
10770 cat conftest.$ac_ext >&5
10771 rm -fr conftest*
10772 samba_cv_HAVE_BROKEN_GETGROUPS=no
10774 rm -fr conftest*
10779 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10780 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10781 cat >> confdefs.h <<\EOF
10782 #define HAVE_BROKEN_GETGROUPS 1
10787 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10788 echo "configure:10789: checking whether getpass should be replaced" >&5
10789 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10790 echo $ac_n "(cached) $ac_c" 1>&6
10791 else
10793 SAVE_CPPFLAGS="$CPPFLAGS"
10794 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
10795 cat > conftest.$ac_ext <<EOF
10796 #line 10797 "configure"
10797 #include "confdefs.h"
10799 #define REPLACE_GETPASS 1
10800 #define NO_CONFIG_H 1
10801 #define main dont_declare_main
10802 #include "${srcdir-.}/lib/getsmbpass.c"
10803 #undef main
10805 int main() {
10807 ; return 0; }
10809 if { (eval echo configure:10810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10810 rm -rf conftest*
10811 samba_cv_REPLACE_GETPASS=yes
10812 else
10813 echo "configure: failed program was:" >&5
10814 cat conftest.$ac_ext >&5
10815 rm -rf conftest*
10816 samba_cv_REPLACE_GETPASS=no
10818 rm -f conftest*
10819 CPPFLAGS="$SAVE_CPPFLAGS"
10823 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10824 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10825 cat >> confdefs.h <<\EOF
10826 #define REPLACE_GETPASS 1
10831 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10832 echo "configure:10833: checking for broken inet_ntoa" >&5
10833 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10834 echo $ac_n "(cached) $ac_c" 1>&6
10835 else
10837 if test "$cross_compiling" = yes; then
10838 samba_cv_REPLACE_INET_NTOA=cross
10839 else
10840 cat > conftest.$ac_ext <<EOF
10841 #line 10842 "configure"
10842 #include "confdefs.h"
10844 #include <stdio.h>
10845 #include <sys/types.h>
10846 #include <netinet/in.h>
10847 #ifdef HAVE_ARPA_INET_H
10848 #include <arpa/inet.h>
10849 #endif
10850 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10851 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10852 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10853 exit(1);}
10855 if { (eval echo configure:10856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10856 then
10857 samba_cv_REPLACE_INET_NTOA=yes
10858 else
10859 echo "configure: failed program was:" >&5
10860 cat conftest.$ac_ext >&5
10861 rm -fr conftest*
10862 samba_cv_REPLACE_INET_NTOA=no
10864 rm -fr conftest*
10869 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10870 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10871 cat >> confdefs.h <<\EOF
10872 #define REPLACE_INET_NTOA 1
10877 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10878 echo "configure:10879: checking for secure mkstemp" >&5
10879 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10880 echo $ac_n "(cached) $ac_c" 1>&6
10881 else
10883 if test "$cross_compiling" = yes; then
10884 samba_cv_HAVE_SECURE_MKSTEMP=cross
10885 else
10886 cat > conftest.$ac_ext <<EOF
10887 #line 10888 "configure"
10888 #include "confdefs.h"
10889 #include <stdlib.h>
10890 #include <sys/types.h>
10891 #include <sys/stat.h>
10892 #include <unistd.h>
10893 main() {
10894 struct stat st;
10895 char tpl[20]="/tmp/test.XXXXXX";
10896 int fd = mkstemp(tpl);
10897 if (fd == -1) exit(1);
10898 unlink(tpl);
10899 if (fstat(fd, &st) != 0) exit(1);
10900 if ((st.st_mode & 0777) != 0600) exit(1);
10901 exit(0);
10904 if { (eval echo configure:10905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10905 then
10906 samba_cv_HAVE_SECURE_MKSTEMP=yes
10907 else
10908 echo "configure: failed program was:" >&5
10909 cat conftest.$ac_ext >&5
10910 rm -fr conftest*
10911 samba_cv_HAVE_SECURE_MKSTEMP=no
10913 rm -fr conftest*
10918 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10919 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10920 cat >> confdefs.h <<\EOF
10921 #define HAVE_SECURE_MKSTEMP 1
10926 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10927 echo "configure:10928: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10928 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10929 echo $ac_n "(cached) $ac_c" 1>&6
10930 else
10932 if test "$cross_compiling" = yes; then
10933 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10934 else
10935 cat > conftest.$ac_ext <<EOF
10936 #line 10937 "configure"
10937 #include "confdefs.h"
10938 #include <unistd.h>
10939 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10941 if { (eval echo configure:10942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10942 then
10943 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10944 else
10945 echo "configure: failed program was:" >&5
10946 cat conftest.$ac_ext >&5
10947 rm -fr conftest*
10948 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10950 rm -fr conftest*
10955 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10956 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10957 cat >> confdefs.h <<\EOF
10958 #define SYSCONF_SC_NGROUPS_MAX 1
10963 echo $ac_n "checking for root""... $ac_c" 1>&6
10964 echo "configure:10965: checking for root" >&5
10965 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10966 echo $ac_n "(cached) $ac_c" 1>&6
10967 else
10969 if test "$cross_compiling" = yes; then
10970 samba_cv_HAVE_ROOT=cross
10971 else
10972 cat > conftest.$ac_ext <<EOF
10973 #line 10974 "configure"
10974 #include "confdefs.h"
10975 main() { exit(getuid() != 0); }
10977 if { (eval echo configure:10978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10978 then
10979 samba_cv_HAVE_ROOT=yes
10980 else
10981 echo "configure: failed program was:" >&5
10982 cat conftest.$ac_ext >&5
10983 rm -fr conftest*
10984 samba_cv_HAVE_ROOT=no
10986 rm -fr conftest*
10991 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10992 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10993 cat >> confdefs.h <<\EOF
10994 #define HAVE_ROOT 1
10997 else
10998 echo "configure: warning: running as non-root will disable some tests" 1>&2
11001 ##################
11002 # look for a method of finding the list of network interfaces
11003 iface=no;
11004 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11005 echo "configure:11006: checking for iface AIX" >&5
11006 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11007 echo $ac_n "(cached) $ac_c" 1>&6
11008 else
11010 if test "$cross_compiling" = yes; then
11011 samba_cv_HAVE_IFACE_AIX=cross
11012 else
11013 cat > conftest.$ac_ext <<EOF
11014 #line 11015 "configure"
11015 #include "confdefs.h"
11017 #define HAVE_IFACE_AIX 1
11018 #define AUTOCONF_TEST 1
11019 #include "confdefs.h"
11020 #include "${srcdir-.}/lib/interfaces.c"
11022 if { (eval echo configure:11023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11023 then
11024 samba_cv_HAVE_IFACE_AIX=yes
11025 else
11026 echo "configure: failed program was:" >&5
11027 cat conftest.$ac_ext >&5
11028 rm -fr conftest*
11029 samba_cv_HAVE_IFACE_AIX=no
11031 rm -fr conftest*
11036 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11037 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11038 iface=yes;cat >> confdefs.h <<\EOF
11039 #define HAVE_IFACE_AIX 1
11044 if test $iface = no; then
11045 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11046 echo "configure:11047: checking for iface ifconf" >&5
11047 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11048 echo $ac_n "(cached) $ac_c" 1>&6
11049 else
11051 if test "$cross_compiling" = yes; then
11052 samba_cv_HAVE_IFACE_IFCONF=cross
11053 else
11054 cat > conftest.$ac_ext <<EOF
11055 #line 11056 "configure"
11056 #include "confdefs.h"
11058 #define HAVE_IFACE_IFCONF 1
11059 #define AUTOCONF_TEST 1
11060 #include "confdefs.h"
11061 #include "${srcdir-.}/lib/interfaces.c"
11063 if { (eval echo configure:11064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11064 then
11065 samba_cv_HAVE_IFACE_IFCONF=yes
11066 else
11067 echo "configure: failed program was:" >&5
11068 cat conftest.$ac_ext >&5
11069 rm -fr conftest*
11070 samba_cv_HAVE_IFACE_IFCONF=no
11072 rm -fr conftest*
11077 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11078 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11079 iface=yes;cat >> confdefs.h <<\EOF
11080 #define HAVE_IFACE_IFCONF 1
11086 if test $iface = no; then
11087 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11088 echo "configure:11089: checking for iface ifreq" >&5
11089 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11090 echo $ac_n "(cached) $ac_c" 1>&6
11091 else
11093 if test "$cross_compiling" = yes; then
11094 samba_cv_HAVE_IFACE_IFREQ=cross
11095 else
11096 cat > conftest.$ac_ext <<EOF
11097 #line 11098 "configure"
11098 #include "confdefs.h"
11100 #define HAVE_IFACE_IFREQ 1
11101 #define AUTOCONF_TEST 1
11102 #include "confdefs.h"
11103 #include "${srcdir-.}/lib/interfaces.c"
11105 if { (eval echo configure:11106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11106 then
11107 samba_cv_HAVE_IFACE_IFREQ=yes
11108 else
11109 echo "configure: failed program was:" >&5
11110 cat conftest.$ac_ext >&5
11111 rm -fr conftest*
11112 samba_cv_HAVE_IFACE_IFREQ=no
11114 rm -fr conftest*
11119 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11120 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11121 iface=yes;cat >> confdefs.h <<\EOF
11122 #define HAVE_IFACE_IFREQ 1
11129 ################################################
11130 # look for a method of setting the effective uid
11131 seteuid=no;
11132 if test $seteuid = no; then
11133 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11134 echo "configure:11135: checking for setresuid" >&5
11135 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11136 echo $ac_n "(cached) $ac_c" 1>&6
11137 else
11139 if test "$cross_compiling" = yes; then
11140 samba_cv_USE_SETRESUID=cross
11141 else
11142 cat > conftest.$ac_ext <<EOF
11143 #line 11144 "configure"
11144 #include "confdefs.h"
11146 #define AUTOCONF_TEST 1
11147 #define USE_SETRESUID 1
11148 #include "confdefs.h"
11149 #include "${srcdir-.}/lib/util_sec.c"
11151 if { (eval echo configure:11152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11152 then
11153 samba_cv_USE_SETRESUID=yes
11154 else
11155 echo "configure: failed program was:" >&5
11156 cat conftest.$ac_ext >&5
11157 rm -fr conftest*
11158 samba_cv_USE_SETRESUID=no
11160 rm -fr conftest*
11165 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11166 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11167 seteuid=yes;cat >> confdefs.h <<\EOF
11168 #define USE_SETRESUID 1
11175 if test $seteuid = no; then
11176 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11177 echo "configure:11178: checking for setreuid" >&5
11178 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11179 echo $ac_n "(cached) $ac_c" 1>&6
11180 else
11182 if test "$cross_compiling" = yes; then
11183 samba_cv_USE_SETREUID=cross
11184 else
11185 cat > conftest.$ac_ext <<EOF
11186 #line 11187 "configure"
11187 #include "confdefs.h"
11189 #define AUTOCONF_TEST 1
11190 #define USE_SETREUID 1
11191 #include "confdefs.h"
11192 #include "${srcdir-.}/lib/util_sec.c"
11194 if { (eval echo configure:11195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11195 then
11196 samba_cv_USE_SETREUID=yes
11197 else
11198 echo "configure: failed program was:" >&5
11199 cat conftest.$ac_ext >&5
11200 rm -fr conftest*
11201 samba_cv_USE_SETREUID=no
11203 rm -fr conftest*
11208 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11209 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11210 seteuid=yes;cat >> confdefs.h <<\EOF
11211 #define USE_SETREUID 1
11217 if test $seteuid = no; then
11218 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11219 echo "configure:11220: checking for seteuid" >&5
11220 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11221 echo $ac_n "(cached) $ac_c" 1>&6
11222 else
11224 if test "$cross_compiling" = yes; then
11225 samba_cv_USE_SETEUID=cross
11226 else
11227 cat > conftest.$ac_ext <<EOF
11228 #line 11229 "configure"
11229 #include "confdefs.h"
11231 #define AUTOCONF_TEST 1
11232 #define USE_SETEUID 1
11233 #include "confdefs.h"
11234 #include "${srcdir-.}/lib/util_sec.c"
11236 if { (eval echo configure:11237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11237 then
11238 samba_cv_USE_SETEUID=yes
11239 else
11240 echo "configure: failed program was:" >&5
11241 cat conftest.$ac_ext >&5
11242 rm -fr conftest*
11243 samba_cv_USE_SETEUID=no
11245 rm -fr conftest*
11250 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11251 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11252 seteuid=yes;cat >> confdefs.h <<\EOF
11253 #define USE_SETEUID 1
11259 if test $seteuid = no; then
11260 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11261 echo "configure:11262: checking for setuidx" >&5
11262 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11263 echo $ac_n "(cached) $ac_c" 1>&6
11264 else
11266 if test "$cross_compiling" = yes; then
11267 samba_cv_USE_SETUIDX=cross
11268 else
11269 cat > conftest.$ac_ext <<EOF
11270 #line 11271 "configure"
11271 #include "confdefs.h"
11273 #define AUTOCONF_TEST 1
11274 #define USE_SETUIDX 1
11275 #include "confdefs.h"
11276 #include "${srcdir-.}/lib/util_sec.c"
11278 if { (eval echo configure:11279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11279 then
11280 samba_cv_USE_SETUIDX=yes
11281 else
11282 echo "configure: failed program was:" >&5
11283 cat conftest.$ac_ext >&5
11284 rm -fr conftest*
11285 samba_cv_USE_SETUIDX=no
11287 rm -fr conftest*
11292 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11293 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11294 seteuid=yes;cat >> confdefs.h <<\EOF
11295 #define USE_SETUIDX 1
11302 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11303 echo "configure:11304: checking for working mmap" >&5
11304 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11305 echo $ac_n "(cached) $ac_c" 1>&6
11306 else
11308 if test "$cross_compiling" = yes; then
11309 samba_cv_HAVE_MMAP=cross
11310 else
11311 cat > conftest.$ac_ext <<EOF
11312 #line 11313 "configure"
11313 #include "confdefs.h"
11314 #include "${srcdir-.}/tests/shared_mmap.c"
11316 if { (eval echo configure:11317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11317 then
11318 samba_cv_HAVE_MMAP=yes
11319 else
11320 echo "configure: failed program was:" >&5
11321 cat conftest.$ac_ext >&5
11322 rm -fr conftest*
11323 samba_cv_HAVE_MMAP=no
11325 rm -fr conftest*
11330 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11331 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11332 cat >> confdefs.h <<\EOF
11333 #define HAVE_MMAP 1
11338 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11339 echo "configure:11340: checking for ftruncate needs root" >&5
11340 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11341 echo $ac_n "(cached) $ac_c" 1>&6
11342 else
11344 if test "$cross_compiling" = yes; then
11345 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11346 else
11347 cat > conftest.$ac_ext <<EOF
11348 #line 11349 "configure"
11349 #include "confdefs.h"
11350 #include "${srcdir-.}/tests/ftruncroot.c"
11352 if { (eval echo configure:11353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11353 then
11354 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11355 else
11356 echo "configure: failed program was:" >&5
11357 cat conftest.$ac_ext >&5
11358 rm -fr conftest*
11359 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11361 rm -fr conftest*
11366 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11367 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11368 cat >> confdefs.h <<\EOF
11369 #define FTRUNCATE_NEEDS_ROOT 1
11374 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11375 echo "configure:11376: checking for fcntl locking" >&5
11376 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11377 echo $ac_n "(cached) $ac_c" 1>&6
11378 else
11380 if test "$cross_compiling" = yes; then
11381 samba_cv_HAVE_FCNTL_LOCK=cross
11382 else
11383 cat > conftest.$ac_ext <<EOF
11384 #line 11385 "configure"
11385 #include "confdefs.h"
11386 #include "${srcdir-.}/tests/fcntl_lock.c"
11388 if { (eval echo configure:11389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11389 then
11390 samba_cv_HAVE_FCNTL_LOCK=yes
11391 else
11392 echo "configure: failed program was:" >&5
11393 cat conftest.$ac_ext >&5
11394 rm -fr conftest*
11395 samba_cv_HAVE_FCNTL_LOCK=no
11397 rm -fr conftest*
11402 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11403 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11404 cat >> confdefs.h <<\EOF
11405 #define HAVE_FCNTL_LOCK 1
11410 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11411 echo "configure:11412: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11412 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11413 echo $ac_n "(cached) $ac_c" 1>&6
11414 else
11416 if test "$cross_compiling" = yes; then
11417 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11418 else
11419 cat > conftest.$ac_ext <<EOF
11420 #line 11421 "configure"
11421 #include "confdefs.h"
11422 #include "${srcdir-.}/tests/fcntl_lock64.c"
11424 if { (eval echo configure:11425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11425 then
11426 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11427 else
11428 echo "configure: failed program was:" >&5
11429 cat conftest.$ac_ext >&5
11430 rm -fr conftest*
11431 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11433 rm -fr conftest*
11438 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11439 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11440 cat >> confdefs.h <<\EOF
11441 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11445 else
11448 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11449 echo "configure:11450: checking for 64 bit fcntl locking" >&5
11450 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11451 echo $ac_n "(cached) $ac_c" 1>&6
11452 else
11454 if test "$cross_compiling" = yes; then
11455 samba_cv_HAVE_STRUCT_FLOCK64=cross
11456 else
11457 cat > conftest.$ac_ext <<EOF
11458 #line 11459 "configure"
11459 #include "confdefs.h"
11461 #if defined(HAVE_UNISTD_H)
11462 #include <unistd.h>
11463 #endif
11464 #include <stdio.h>
11465 #include <stdlib.h>
11467 #ifdef HAVE_FCNTL_H
11468 #include <fcntl.h>
11469 #endif
11471 #ifdef HAVE_SYS_FCNTL_H
11472 #include <sys/fcntl.h>
11473 #endif
11474 main() { struct flock64 fl64;
11475 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11476 exit(0);
11477 #else
11478 exit(1);
11479 #endif
11482 if { (eval echo configure:11483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11483 then
11484 samba_cv_HAVE_STRUCT_FLOCK64=yes
11485 else
11486 echo "configure: failed program was:" >&5
11487 cat conftest.$ac_ext >&5
11488 rm -fr conftest*
11489 samba_cv_HAVE_STRUCT_FLOCK64=no
11491 rm -fr conftest*
11496 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11498 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11499 cat >> confdefs.h <<\EOF
11500 #define HAVE_STRUCT_FLOCK64 1
11506 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11507 echo "configure:11508: checking for st_blocks in struct stat" >&5
11508 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11509 echo $ac_n "(cached) $ac_c" 1>&6
11510 else
11512 cat > conftest.$ac_ext <<EOF
11513 #line 11514 "configure"
11514 #include "confdefs.h"
11515 #include <sys/types.h>
11516 #include <sys/stat.h>
11517 #include <unistd.h>
11518 int main() {
11519 struct stat st; st.st_blocks = 0;
11520 ; return 0; }
11522 if { (eval echo configure:11523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11523 rm -rf conftest*
11524 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11525 else
11526 echo "configure: failed program was:" >&5
11527 cat conftest.$ac_ext >&5
11528 rm -rf conftest*
11529 samba_cv_HAVE_STAT_ST_BLOCKS=no
11531 rm -f conftest*
11534 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11535 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11536 cat >> confdefs.h <<\EOF
11537 #define HAVE_STAT_ST_BLOCKS 1
11542 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
11543 echo "configure:11544: checking for st_blksize in struct stat" >&5
11544 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
11545 echo $ac_n "(cached) $ac_c" 1>&6
11546 else
11548 cat > conftest.$ac_ext <<EOF
11549 #line 11550 "configure"
11550 #include "confdefs.h"
11551 #include <sys/types.h>
11552 #include <sys/stat.h>
11553 #include <unistd.h>
11554 int main() {
11555 struct stat st; st.st_blksize = 0;
11556 ; return 0; }
11558 if { (eval echo configure:11559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11559 rm -rf conftest*
11560 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
11561 else
11562 echo "configure: failed program was:" >&5
11563 cat conftest.$ac_ext >&5
11564 rm -rf conftest*
11565 samba_cv_HAVE_STAT_ST_BLKSIZE=no
11567 rm -f conftest*
11570 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
11571 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
11572 cat >> confdefs.h <<\EOF
11573 #define HAVE_STAT_ST_BLKSIZE 1
11578 case "$host_os" in
11579 *linux*)
11580 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11581 echo "configure:11582: checking for broken RedHat 7.2 system header files" >&5
11582 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11583 echo $ac_n "(cached) $ac_c" 1>&6
11584 else
11586 cat > conftest.$ac_ext <<EOF
11587 #line 11588 "configure"
11588 #include "confdefs.h"
11590 #ifdef HAVE_SYS_VFS_H
11591 #include <sys/vfs.h>
11592 #endif
11593 #ifdef HAVE_SYS_CAPABILITY_H
11594 #include <sys/capability.h>
11595 #endif
11597 int main() {
11598 int i;
11599 ; return 0; }
11601 if { (eval echo configure:11602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11602 rm -rf conftest*
11603 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11604 else
11605 echo "configure: failed program was:" >&5
11606 cat conftest.$ac_ext >&5
11607 rm -rf conftest*
11608 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11610 rm -f conftest*
11613 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11614 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11615 cat >> confdefs.h <<\EOF
11616 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11621 esac
11623 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11624 echo "configure:11625: checking for broken nisplus include files" >&5
11625 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11626 echo $ac_n "(cached) $ac_c" 1>&6
11627 else
11629 cat > conftest.$ac_ext <<EOF
11630 #line 11631 "configure"
11631 #include "confdefs.h"
11632 #include <sys/acl.h>
11633 #if defined(HAVE_RPCSVC_NIS_H)
11634 #include <rpcsvc/nis.h>
11635 #endif
11636 int main() {
11637 int i;
11638 ; return 0; }
11640 if { (eval echo configure:11641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11641 rm -rf conftest*
11642 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11643 else
11644 echo "configure: failed program was:" >&5
11645 cat conftest.$ac_ext >&5
11646 rm -rf conftest*
11647 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11649 rm -f conftest*
11652 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11653 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11654 cat >> confdefs.h <<\EOF
11655 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11661 #################################################
11662 # check for smbwrapper support
11663 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11664 echo "configure:11665: checking whether to use smbwrapper" >&5
11665 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11666 if test "${with_smbwrapper+set}" = set; then
11667 withval="$with_smbwrapper"
11668 case "$withval" in
11669 yes)
11670 echo "$ac_t""yes" 1>&6
11671 cat >> confdefs.h <<\EOF
11672 #define WITH_SMBWRAPPER 1
11675 WRAPPROG="bin/smbsh"
11676 WRAP="bin/smbwrapper.$SHLIBEXT"
11678 if test x$ATTEMPT_WRAP32_BUILD = x; then
11679 WRAP32=""
11680 else
11681 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11684 # Conditions under which smbwrapper should not be built.
11686 if test x$PICFLAG = x; then
11687 echo No support for PIC code - disabling smbwrapper and smbsh
11688 WRAPPROG=""
11689 WRAP=""
11690 WRAP32=""
11691 elif test x$ac_cv_func_syscall = xno; then
11692 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11693 WRAPPROG=""
11694 WRAP=""
11695 WRAP32=""
11699 echo "$ac_t""no" 1>&6
11701 esac
11702 else
11703 echo "$ac_t""no" 1>&6
11708 #################################################
11709 # check for the AFS filesystem
11710 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11711 echo "configure:11712: checking whether to use AFS" >&5
11712 # Check whether --with-afs or --without-afs was given.
11713 if test "${with_afs+set}" = set; then
11714 withval="$with_afs"
11715 case "$withval" in
11716 yes)
11717 echo "$ac_t""yes" 1>&6
11718 cat >> confdefs.h <<\EOF
11719 #define WITH_AFS 1
11724 echo "$ac_t""no" 1>&6
11726 esac
11727 else
11728 echo "$ac_t""no" 1>&6
11734 #################################################
11735 # check for the DFS auth system
11736 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11737 echo "configure:11738: checking whether to use DCE/DFS auth" >&5
11738 # Check whether --with-dfs or --without-dfs was given.
11739 if test "${with_dfs+set}" = set; then
11740 withval="$with_dfs"
11741 case "$withval" in
11742 yes)
11743 echo "$ac_t""yes" 1>&6
11744 cat >> confdefs.h <<\EOF
11745 #define WITH_DFS 1
11750 echo "$ac_t""no" 1>&6
11752 esac
11753 else
11754 echo "$ac_t""no" 1>&6
11759 #################################################
11760 # check for Kerberos IV auth system
11761 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11762 echo "configure:11763: checking whether to use Kerberos IV" >&5
11763 # Check whether --with-krb4 or --without-krb4 was given.
11764 if test "${with_krb4+set}" = set; then
11765 withval="$with_krb4"
11766 case "$withval" in
11767 yes)
11768 echo "$ac_t""yes" 1>&6
11769 cat >> confdefs.h <<\EOF
11770 #define KRB4_AUTH 1
11773 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11774 echo "configure:11775: checking for dn_expand in -lresolv" >&5
11775 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11777 echo $ac_n "(cached) $ac_c" 1>&6
11778 else
11779 ac_save_LIBS="$LIBS"
11780 LIBS="-lresolv $LIBS"
11781 cat > conftest.$ac_ext <<EOF
11782 #line 11783 "configure"
11783 #include "confdefs.h"
11784 /* Override any gcc2 internal prototype to avoid an error. */
11785 /* We use char because int might match the return type of a gcc2
11786 builtin and then its argument prototype would still apply. */
11787 char dn_expand();
11789 int main() {
11790 dn_expand()
11791 ; return 0; }
11793 if { (eval echo configure:11794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11794 rm -rf conftest*
11795 eval "ac_cv_lib_$ac_lib_var=yes"
11796 else
11797 echo "configure: failed program was:" >&5
11798 cat conftest.$ac_ext >&5
11799 rm -rf conftest*
11800 eval "ac_cv_lib_$ac_lib_var=no"
11802 rm -f conftest*
11803 LIBS="$ac_save_LIBS"
11806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11807 echo "$ac_t""yes" 1>&6
11808 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11809 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11810 cat >> confdefs.h <<EOF
11811 #define $ac_tr_lib 1
11814 LIBS="-lresolv $LIBS"
11816 else
11817 echo "$ac_t""no" 1>&6
11820 LIBS="$LIBS -lkrb -ldes"
11821 CFLAGS="$CFLAGS -I$withval/include"
11822 LDFLAGS="$LDFLAGS -L$withval/lib"
11825 echo "$ac_t""no" 1>&6
11827 esac
11828 else
11829 echo "$ac_t""no" 1>&6
11834 #################################################
11835 # check for Kerberos 5 auth system
11836 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11837 echo "configure:11838: checking whether to use Kerberos 5" >&5
11838 # Check whether --with-krb5 or --without-krb5 was given.
11839 if test "${with_krb5+set}" = set; then
11840 withval="$with_krb5"
11841 case "$withval" in
11842 yes)
11843 echo "$ac_t""yes" 1>&6
11844 cat >> confdefs.h <<\EOF
11845 #define KRB5_AUTH 1
11848 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11849 CFLAGS="$CFLAGS -I$withval/include"
11850 LDFLAGS="$LDFLAGS -L$withval/lib"
11853 echo "$ac_t""no" 1>&6
11855 esac
11856 else
11857 echo "$ac_t""no" 1>&6
11862 #################################################
11863 # check for automount support
11864 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11865 echo "configure:11866: checking whether to use AUTOMOUNT" >&5
11866 # Check whether --with-automount or --without-automount was given.
11867 if test "${with_automount+set}" = set; then
11868 withval="$with_automount"
11869 case "$withval" in
11870 yes)
11871 echo "$ac_t""yes" 1>&6
11872 cat >> confdefs.h <<\EOF
11873 #define WITH_AUTOMOUNT 1
11878 echo "$ac_t""no" 1>&6
11880 esac
11881 else
11882 echo "$ac_t""no" 1>&6
11887 #################################################
11888 # check for smbmount support
11889 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11890 echo "configure:11891: checking whether to use SMBMOUNT" >&5
11891 # Check whether --with-smbmount or --without-smbmount was given.
11892 if test "${with_smbmount+set}" = set; then
11893 withval="$with_smbmount"
11894 case "$withval" in
11895 yes)
11896 case "$host_os" in
11897 *linux*)
11898 echo "$ac_t""yes" 1>&6
11899 cat >> confdefs.h <<\EOF
11900 #define WITH_SMBMOUNT 1
11903 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11906 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11908 esac
11911 echo "$ac_t""no" 1>&6
11912 MPROGS=
11914 esac
11915 else
11916 echo "$ac_t""no" 1>&6
11917 MPROGS=
11923 #################################################
11924 # check for a PAM password database
11925 with_pam_for_crypt=no
11926 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11927 echo "configure:11928: checking whether to use PAM password database" >&5
11928 # Check whether --with-pam or --without-pam was given.
11929 if test "${with_pam+set}" = set; then
11930 withval="$with_pam"
11931 case "$withval" in
11932 yes)
11933 echo "$ac_t""yes" 1>&6
11934 cat >> confdefs.h <<\EOF
11935 #define WITH_PAM 1
11938 LIBS="$LIBS -lpam"
11939 with_pam_for_crypt=yes
11942 echo "$ac_t""no" 1>&6
11944 esac
11945 else
11946 echo "$ac_t""no" 1>&6
11951 # we can't build a pam module if we don't have pam.
11952 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11953 echo "configure:11954: checking for pam_get_data in -lpam" >&5
11954 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11956 echo $ac_n "(cached) $ac_c" 1>&6
11957 else
11958 ac_save_LIBS="$LIBS"
11959 LIBS="-lpam $LIBS"
11960 cat > conftest.$ac_ext <<EOF
11961 #line 11962 "configure"
11962 #include "confdefs.h"
11963 /* Override any gcc2 internal prototype to avoid an error. */
11964 /* We use char because int might match the return type of a gcc2
11965 builtin and then its argument prototype would still apply. */
11966 char pam_get_data();
11968 int main() {
11969 pam_get_data()
11970 ; return 0; }
11972 if { (eval echo configure:11973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11973 rm -rf conftest*
11974 eval "ac_cv_lib_$ac_lib_var=yes"
11975 else
11976 echo "configure: failed program was:" >&5
11977 cat conftest.$ac_ext >&5
11978 rm -rf conftest*
11979 eval "ac_cv_lib_$ac_lib_var=no"
11981 rm -f conftest*
11982 LIBS="$ac_save_LIBS"
11985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11986 echo "$ac_t""yes" 1>&6
11987 cat >> confdefs.h <<\EOF
11988 #define HAVE_LIBPAM 1
11991 else
11992 echo "$ac_t""no" 1>&6
11996 #################################################
11997 # check for pam_smbpass support
11998 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11999 echo "configure:12000: checking whether to use pam_smbpass" >&5
12000 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12001 if test "${with_pam_smbpass+set}" = set; then
12002 withval="$with_pam_smbpass"
12003 case "$withval" in
12004 yes)
12005 echo "$ac_t""yes" 1>&6
12007 # Conditions under which pam_smbpass should not be built.
12009 if test x$PICFLAG = x; then
12010 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12011 PAM_MOD=""
12012 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
12013 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12014 PAM_MOD=""
12015 else
12016 cat >> confdefs.h <<\EOF
12017 #define WITH_PAM_SMBPASS 1
12020 PAM_MOD="bin/pam_smbpass.so"
12024 echo "$ac_t""no" 1>&6
12026 esac
12027 else
12028 echo "$ac_t""no" 1>&6
12034 ###############################################
12035 # test for where we get crypt() from, but only
12036 # if not using PAM
12037 if test $with_pam_for_crypt = no; then
12038 for ac_func in crypt
12040 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12041 echo "configure:12042: checking for $ac_func" >&5
12042 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12043 echo $ac_n "(cached) $ac_c" 1>&6
12044 else
12045 cat > conftest.$ac_ext <<EOF
12046 #line 12047 "configure"
12047 #include "confdefs.h"
12048 /* System header to define __stub macros and hopefully few prototypes,
12049 which can conflict with char $ac_func(); below. */
12050 #include <assert.h>
12051 /* Override any gcc2 internal prototype to avoid an error. */
12052 /* We use char because int might match the return type of a gcc2
12053 builtin and then its argument prototype would still apply. */
12054 char $ac_func();
12056 int main() {
12058 /* The GNU C library defines this for functions which it implements
12059 to always fail with ENOSYS. Some functions are actually named
12060 something starting with __ and the normal name is an alias. */
12061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12062 choke me
12063 #else
12064 $ac_func();
12065 #endif
12067 ; return 0; }
12069 if { (eval echo configure:12070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12070 rm -rf conftest*
12071 eval "ac_cv_func_$ac_func=yes"
12072 else
12073 echo "configure: failed program was:" >&5
12074 cat conftest.$ac_ext >&5
12075 rm -rf conftest*
12076 eval "ac_cv_func_$ac_func=no"
12078 rm -f conftest*
12081 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12082 echo "$ac_t""yes" 1>&6
12083 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12084 cat >> confdefs.h <<EOF
12085 #define $ac_tr_func 1
12088 else
12089 echo "$ac_t""no" 1>&6
12091 done
12093 if test x"$ac_cv_func_crypt" = x"no"; then
12094 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12095 echo "configure:12096: checking for crypt in -lcrypt" >&5
12096 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12098 echo $ac_n "(cached) $ac_c" 1>&6
12099 else
12100 ac_save_LIBS="$LIBS"
12101 LIBS="-lcrypt $LIBS"
12102 cat > conftest.$ac_ext <<EOF
12103 #line 12104 "configure"
12104 #include "confdefs.h"
12105 /* Override any gcc2 internal prototype to avoid an error. */
12106 /* We use char because int might match the return type of a gcc2
12107 builtin and then its argument prototype would still apply. */
12108 char crypt();
12110 int main() {
12111 crypt()
12112 ; return 0; }
12114 if { (eval echo configure:12115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12115 rm -rf conftest*
12116 eval "ac_cv_lib_$ac_lib_var=yes"
12117 else
12118 echo "configure: failed program was:" >&5
12119 cat conftest.$ac_ext >&5
12120 rm -rf conftest*
12121 eval "ac_cv_lib_$ac_lib_var=no"
12123 rm -f conftest*
12124 LIBS="$ac_save_LIBS"
12127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12128 echo "$ac_t""yes" 1>&6
12129 LIBS="$LIBS -lcrypt";
12130 cat >> confdefs.h <<\EOF
12131 #define HAVE_CRYPT 1
12134 else
12135 echo "$ac_t""no" 1>&6
12142 ## moved after the check for -lcrypt in order to
12143 ## ensure that the necessary libraries are included
12144 ## check checking for truncated salt. Wrapped by the
12145 ## $with_pam_for_crypt variable as above --jerry
12147 if test $with_pam_for_crypt = no; then
12148 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12149 echo "configure:12150: checking for a crypt that needs truncated salt" >&5
12150 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12151 echo $ac_n "(cached) $ac_c" 1>&6
12152 else
12154 if test "$cross_compiling" = yes; then
12155 samba_cv_HAVE_TRUNCATED_SALT=cross
12156 else
12157 cat > conftest.$ac_ext <<EOF
12158 #line 12159 "configure"
12159 #include "confdefs.h"
12160 #include "${srcdir-.}/tests/crypttest.c"
12162 if { (eval echo configure:12163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12163 then
12164 samba_cv_HAVE_TRUNCATED_SALT=no
12165 else
12166 echo "configure: failed program was:" >&5
12167 cat conftest.$ac_ext >&5
12168 rm -fr conftest*
12169 samba_cv_HAVE_TRUNCATED_SALT=yes
12171 rm -fr conftest*
12176 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12177 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12178 cat >> confdefs.h <<\EOF
12179 #define HAVE_TRUNCATED_SALT 1
12186 ########################################################################################
12188 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12190 ########################################################################################
12192 ## set the with_smbpasswd_sam as the default
12193 with_smbpasswd_sam=yes
12197 #################################################
12198 # check for a TDB password database
12199 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12200 echo "configure:12201: checking whether to use TDB SAM database" >&5
12201 # Check whether --with-tdbsam or --without-tdbsam was given.
12202 if test "${with_tdbsam+set}" = set; then
12203 withval="$with_tdbsam"
12204 case "$withval" in
12205 yes)
12206 echo "$ac_t""yes" 1>&6
12207 cat >> confdefs.h <<\EOF
12208 #define WITH_TDB_SAM 1
12211 with_smbpasswd_sam=no
12214 echo "$ac_t""no" 1>&6
12216 esac
12217 else
12218 echo "$ac_t""no" 1>&6
12223 #################################################
12224 # check for a LDAP password database
12225 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12226 echo "configure:12227: checking whether to use LDAP SAM database" >&5
12227 # Check whether --with-ldapsam or --without-ldapsam was given.
12228 if test "${with_ldapsam+set}" = set; then
12229 withval="$with_ldapsam"
12230 case "$withval" in
12231 yes)
12232 echo "$ac_t""yes" 1>&6
12233 cat >> confdefs.h <<\EOF
12234 #define WITH_LDAP_SAM 1
12237 LDAPLIBS="-lldap"
12238 echo $ac_n "checking for ber_bvfree in -llber""... $ac_c" 1>&6
12239 echo "configure:12240: checking for ber_bvfree in -llber" >&5
12240 ac_lib_var=`echo lber'_'ber_bvfree | sed 'y%./+-%__p_%'`
12241 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12242 echo $ac_n "(cached) $ac_c" 1>&6
12243 else
12244 ac_save_LIBS="$LIBS"
12245 LIBS="-llber $LIBS"
12246 cat > conftest.$ac_ext <<EOF
12247 #line 12248 "configure"
12248 #include "confdefs.h"
12249 /* Override any gcc2 internal prototype to avoid an error. */
12250 /* We use char because int might match the return type of a gcc2
12251 builtin and then its argument prototype would still apply. */
12252 char ber_bvfree();
12254 int main() {
12255 ber_bvfree()
12256 ; return 0; }
12258 if { (eval echo configure:12259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12259 rm -rf conftest*
12260 eval "ac_cv_lib_$ac_lib_var=yes"
12261 else
12262 echo "configure: failed program was:" >&5
12263 cat conftest.$ac_ext >&5
12264 rm -rf conftest*
12265 eval "ac_cv_lib_$ac_lib_var=no"
12267 rm -f conftest*
12268 LIBS="$ac_save_LIBS"
12271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12272 echo "$ac_t""yes" 1>&6
12273 LDAPLIBS="$LDAPLIBS -llber"
12274 else
12275 echo "$ac_t""no" 1>&6
12278 ## remove -lresolv as this should be included by the -lsasl dependency
12279 ## in the OpenLDAP clients. By not requiring it specifically, we avoid
12280 ## issues on platforms that don't have it
12281 LDAPLIBS="$LDAPLIBS"
12282 old_LDFLAGS="$LDFLAGS"
12283 LDFLAGS="$LDFLAGS $LDAPLIBS"
12284 for ac_func in ldap_start_tls_s
12286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12287 echo "configure:12288: checking for $ac_func" >&5
12288 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12289 echo $ac_n "(cached) $ac_c" 1>&6
12290 else
12291 cat > conftest.$ac_ext <<EOF
12292 #line 12293 "configure"
12293 #include "confdefs.h"
12294 /* System header to define __stub macros and hopefully few prototypes,
12295 which can conflict with char $ac_func(); below. */
12296 #include <assert.h>
12297 /* Override any gcc2 internal prototype to avoid an error. */
12298 /* We use char because int might match the return type of a gcc2
12299 builtin and then its argument prototype would still apply. */
12300 char $ac_func();
12302 int main() {
12304 /* The GNU C library defines this for functions which it implements
12305 to always fail with ENOSYS. Some functions are actually named
12306 something starting with __ and the normal name is an alias. */
12307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12308 choke me
12309 #else
12310 $ac_func();
12311 #endif
12313 ; return 0; }
12315 if { (eval echo configure:12316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12316 rm -rf conftest*
12317 eval "ac_cv_func_$ac_func=yes"
12318 else
12319 echo "configure: failed program was:" >&5
12320 cat conftest.$ac_ext >&5
12321 rm -rf conftest*
12322 eval "ac_cv_func_$ac_func=no"
12324 rm -f conftest*
12327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12328 echo "$ac_t""yes" 1>&6
12329 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12330 cat >> confdefs.h <<EOF
12331 #define $ac_tr_func 1
12334 else
12335 echo "$ac_t""no" 1>&6
12337 done
12339 LDFLAGS="$old_LDFLAGS"
12340 with_smbpasswd_sam=no
12344 echo "$ac_t""no" 1>&6
12346 esac
12347 else
12348 echo "$ac_t""no" 1>&6
12353 #################################################
12354 # check for a NISPLUS password database
12355 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12356 echo "configure:12357: checking whether to use NISPLUS SAM database" >&5
12357 # Check whether --with-nisplussam or --without-nisplussam was given.
12358 if test "${with_nisplussam+set}" = set; then
12359 withval="$with_nisplussam"
12360 case "$withval" in
12361 yes)
12362 echo "$ac_t""yes" 1>&6
12363 cat >> confdefs.h <<\EOF
12364 #define WITH_NISPLUS_SAM 1
12367 with_smbpasswd_sam=no
12370 echo "$ac_t""no" 1>&6
12372 esac
12373 else
12374 echo "$ac_t""no" 1>&6
12379 ################################################
12380 # This test should come last because the
12381 # smbpasswd SAM is only used if another format
12382 # has not been defined
12383 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12384 echo "configure:12385: checking whether to use traditional smbpasswd file" >&5
12385 if test $with_smbpasswd_sam = yes; then
12386 echo "$ac_t""yes" 1>&6
12387 cat >> confdefs.h <<\EOF
12388 #define WITH_SMBPASSWD_SAM 1
12391 PDBEDIT=""
12392 else
12393 echo "$ac_t""no" 1>&6
12394 PDBEDIT=bin/pdbedit
12397 ########################################################################################
12399 ## END OF TESTS FOR SAM BACKENDS.
12401 ########################################################################################
12403 #################################################
12404 # check for a NISPLUS_HOME support
12405 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12406 echo "configure:12407: checking whether to use NISPLUS_HOME" >&5
12407 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12408 if test "${with_nisplus_home+set}" = set; then
12409 withval="$with_nisplus_home"
12410 case "$withval" in
12411 yes)
12412 echo "$ac_t""yes" 1>&6
12413 cat >> confdefs.h <<\EOF
12414 #define WITH_NISPLUS_HOME 1
12419 echo "$ac_t""no" 1>&6
12421 esac
12422 else
12423 echo "$ac_t""no" 1>&6
12428 #################################################
12429 # check for the secure socket layer
12430 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12431 echo "configure:12432: checking whether to use SSL" >&5
12432 # Check whether --with-ssl or --without-ssl was given.
12433 if test "${with_ssl+set}" = set; then
12434 withval="$with_ssl"
12435 case "$withval" in
12436 yes)
12437 echo "$ac_t""yes" 1>&6
12438 cat >> confdefs.h <<\EOF
12439 #define WITH_SSL 1
12442 withval="/usr/local/ssl" # default
12444 if test "${with_sslinc+set}" = set; then
12446 withval="$with_sslinc"
12447 case "$withval" in
12448 yes|no)
12449 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12450 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12453 CFLAGS="-I${withval} $CFLAGS"
12455 esac
12457 else
12459 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12463 if test "${with_ssllib+set}" = set; then
12465 withval="$with_ssllib"
12466 case "$withval" in
12467 yes|no)
12468 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12469 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12472 LDFLAGS="-L${withval}/lib $LDFLAGS"
12474 esac
12476 else
12478 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12482 LIBS="-lssl -lcrypto $LIBS"
12484 # if test ! -d ${withval}; then
12485 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12486 # exit 1
12487 # fi
12489 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12493 echo "$ac_t""no" 1>&6
12495 esac
12496 else
12497 echo "$ac_t""no" 1>&6
12502 #################################################
12503 # check for syslog logging
12504 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12505 echo "configure:12506: checking whether to use syslog logging" >&5
12506 # Check whether --with-syslog or --without-syslog was given.
12507 if test "${with_syslog+set}" = set; then
12508 withval="$with_syslog"
12509 case "$withval" in
12510 yes)
12511 echo "$ac_t""yes" 1>&6
12512 cat >> confdefs.h <<\EOF
12513 #define WITH_SYSLOG 1
12518 echo "$ac_t""no" 1>&6
12520 esac
12521 else
12522 echo "$ac_t""no" 1>&6
12527 #################################################
12528 # check for a shared memory profiling support
12529 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12530 echo "configure:12531: checking whether to use profiling" >&5
12531 # Check whether --with-profiling-data or --without-profiling-data was given.
12532 if test "${with_profiling_data+set}" = set; then
12533 withval="$with_profiling_data"
12534 case "$withval" in
12535 yes)
12536 echo "$ac_t""yes" 1>&6
12537 cat >> confdefs.h <<\EOF
12538 #define WITH_PROFILE 1
12543 echo "$ac_t""no" 1>&6
12545 esac
12546 else
12547 echo "$ac_t""no" 1>&6
12553 #################################################
12554 # check for experimental disk-quotas support
12555 QUOTAOBJS=smbd/noquotas.o
12557 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12558 echo "configure:12559: checking whether to support disk-quotas" >&5
12559 # Check whether --with-quotas or --without-quotas was given.
12560 if test "${with_quotas+set}" = set; then
12561 withval="$with_quotas"
12562 case "$withval" in
12563 yes)
12564 echo "$ac_t""yes" 1>&6
12565 QUOTAOBJS=smbd/quotas.o
12568 echo "$ac_t""no" 1>&6
12570 esac
12571 else
12572 echo "$ac_t""no" 1>&6
12578 #################################################
12579 # check for experimental utmp accounting
12581 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12582 echo "configure:12583: checking whether to support utmp accounting" >&5
12583 # Check whether --with-utmp or --without-utmp was given.
12584 if test "${with_utmp+set}" = set; then
12585 withval="$with_utmp"
12586 case "$withval" in
12587 yes)
12588 echo "$ac_t""yes" 1>&6
12589 cat >> confdefs.h <<\EOF
12590 #define WITH_UTMP 1
12595 echo "$ac_t""no" 1>&6
12597 esac
12598 else
12599 echo "$ac_t""no" 1>&6
12604 #################################################
12605 # check for MS Dfs support
12607 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12608 echo "configure:12609: checking whether to support Microsoft Dfs" >&5
12609 # Check whether --with-msdfs or --without-msdfs was given.
12610 if test "${with_msdfs+set}" = set; then
12611 withval="$with_msdfs"
12612 case "$withval" in
12613 yes)
12614 echo "$ac_t""yes" 1>&6
12615 cat >> confdefs.h <<\EOF
12616 #define WITH_MSDFS 1
12621 echo "$ac_t""no" 1>&6
12623 esac
12624 else
12625 echo "$ac_t""no" 1>&6
12630 #################################################
12631 # should we build libsmbclient?
12633 LIBSMBCLIENT_SHARED=
12634 LIBSMBCLIENT=
12635 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12636 echo "configure:12637: checking whether to build the libsmbclient shared library" >&5
12637 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12638 if test "${with_libsmbclient+set}" = set; then
12639 withval="$with_libsmbclient"
12640 case "$withval" in
12641 yes)
12642 if test $BLDSHARED = true; then
12643 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
12644 LIBSMBCLIENT=libsmbclient
12645 echo "$ac_t""yes" 1>&6
12646 else
12647 echo "$ac_t""no shared library support" 1>&6
12651 echo "$ac_t""no" 1>&6
12653 esac
12654 else
12655 echo "$ac_t""no" 1>&6
12660 #################################################
12661 # these tests are taken from the GNU fileutils package
12662 echo "checking how to get filesystem space usage" 1>&6
12663 echo "configure:12664: checking how to get filesystem space usage" >&5
12664 space=no
12666 # Test for statvfs64.
12667 if test $space = no; then
12668 # SVR4
12669 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12670 echo "configure:12671: checking statvfs64 function (SVR4)" >&5
12671 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12672 echo $ac_n "(cached) $ac_c" 1>&6
12673 else
12674 if test "$cross_compiling" = yes; then
12675 fu_cv_sys_stat_statvfs64=cross
12676 else
12677 cat > conftest.$ac_ext <<EOF
12678 #line 12679 "configure"
12679 #include "confdefs.h"
12681 #if defined(HAVE_UNISTD_H)
12682 #include <unistd.h>
12683 #endif
12684 #include <sys/types.h>
12685 #include <sys/statvfs.h>
12686 main ()
12688 struct statvfs64 fsd;
12689 exit (statvfs64 (".", &fsd));
12692 if { (eval echo configure:12693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12693 then
12694 fu_cv_sys_stat_statvfs64=yes
12695 else
12696 echo "configure: failed program was:" >&5
12697 cat conftest.$ac_ext >&5
12698 rm -fr conftest*
12699 fu_cv_sys_stat_statvfs64=no
12701 rm -fr conftest*
12706 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12707 if test $fu_cv_sys_stat_statvfs64 = yes; then
12708 space=yes
12709 cat >> confdefs.h <<\EOF
12710 #define STAT_STATVFS64 1
12716 # Perform only the link test since it seems there are no variants of the
12717 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12718 # because that got a false positive on SCO OSR5. Adding the declaration
12719 # of a `struct statvfs' causes this test to fail (as it should) on such
12720 # systems. That system is reported to work fine with STAT_STATFS4 which
12721 # is what it gets when this test fails.
12722 if test $space = no; then
12723 # SVR4
12724 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12725 echo "configure:12726: checking statvfs function (SVR4)" >&5
12726 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12727 echo $ac_n "(cached) $ac_c" 1>&6
12728 else
12729 cat > conftest.$ac_ext <<EOF
12730 #line 12731 "configure"
12731 #include "confdefs.h"
12732 #include <sys/types.h>
12733 #include <sys/statvfs.h>
12734 int main() {
12735 struct statvfs fsd; statvfs (0, &fsd);
12736 ; return 0; }
12738 if { (eval echo configure:12739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12739 rm -rf conftest*
12740 fu_cv_sys_stat_statvfs=yes
12741 else
12742 echo "configure: failed program was:" >&5
12743 cat conftest.$ac_ext >&5
12744 rm -rf conftest*
12745 fu_cv_sys_stat_statvfs=no
12747 rm -f conftest*
12750 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12751 if test $fu_cv_sys_stat_statvfs = yes; then
12752 space=yes
12753 cat >> confdefs.h <<\EOF
12754 #define STAT_STATVFS 1
12760 if test $space = no; then
12761 # DEC Alpha running OSF/1
12762 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12763 echo "configure:12764: checking for 3-argument statfs function (DEC OSF/1)" >&5
12764 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12765 echo $ac_n "(cached) $ac_c" 1>&6
12766 else
12767 if test "$cross_compiling" = yes; then
12768 fu_cv_sys_stat_statfs3_osf1=no
12769 else
12770 cat > conftest.$ac_ext <<EOF
12771 #line 12772 "configure"
12772 #include "confdefs.h"
12774 #include <sys/param.h>
12775 #include <sys/types.h>
12776 #include <sys/mount.h>
12777 main ()
12779 struct statfs fsd;
12780 fsd.f_fsize = 0;
12781 exit (statfs (".", &fsd, sizeof (struct statfs)));
12784 if { (eval echo configure:12785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12785 then
12786 fu_cv_sys_stat_statfs3_osf1=yes
12787 else
12788 echo "configure: failed program was:" >&5
12789 cat conftest.$ac_ext >&5
12790 rm -fr conftest*
12791 fu_cv_sys_stat_statfs3_osf1=no
12793 rm -fr conftest*
12798 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12799 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12800 space=yes
12801 cat >> confdefs.h <<\EOF
12802 #define STAT_STATFS3_OSF1 1
12808 if test $space = no; then
12809 # AIX
12810 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12811 echo "configure:12812: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12812 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12813 echo $ac_n "(cached) $ac_c" 1>&6
12814 else
12815 if test "$cross_compiling" = yes; then
12816 fu_cv_sys_stat_statfs2_bsize=no
12817 else
12818 cat > conftest.$ac_ext <<EOF
12819 #line 12820 "configure"
12820 #include "confdefs.h"
12822 #ifdef HAVE_SYS_PARAM_H
12823 #include <sys/param.h>
12824 #endif
12825 #ifdef HAVE_SYS_MOUNT_H
12826 #include <sys/mount.h>
12827 #endif
12828 #ifdef HAVE_SYS_VFS_H
12829 #include <sys/vfs.h>
12830 #endif
12831 main ()
12833 struct statfs fsd;
12834 fsd.f_bsize = 0;
12835 exit (statfs (".", &fsd));
12838 if { (eval echo configure:12839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12839 then
12840 fu_cv_sys_stat_statfs2_bsize=yes
12841 else
12842 echo "configure: failed program was:" >&5
12843 cat conftest.$ac_ext >&5
12844 rm -fr conftest*
12845 fu_cv_sys_stat_statfs2_bsize=no
12847 rm -fr conftest*
12852 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12853 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12854 space=yes
12855 cat >> confdefs.h <<\EOF
12856 #define STAT_STATFS2_BSIZE 1
12862 if test $space = no; then
12863 # SVR3
12864 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12865 echo "configure:12866: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12866 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12867 echo $ac_n "(cached) $ac_c" 1>&6
12868 else
12869 if test "$cross_compiling" = yes; then
12870 fu_cv_sys_stat_statfs4=no
12871 else
12872 cat > conftest.$ac_ext <<EOF
12873 #line 12874 "configure"
12874 #include "confdefs.h"
12875 #include <sys/types.h>
12876 #include <sys/statfs.h>
12877 main ()
12879 struct statfs fsd;
12880 exit (statfs (".", &fsd, sizeof fsd, 0));
12883 if { (eval echo configure:12884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12884 then
12885 fu_cv_sys_stat_statfs4=yes
12886 else
12887 echo "configure: failed program was:" >&5
12888 cat conftest.$ac_ext >&5
12889 rm -fr conftest*
12890 fu_cv_sys_stat_statfs4=no
12892 rm -fr conftest*
12897 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12898 if test $fu_cv_sys_stat_statfs4 = yes; then
12899 space=yes
12900 cat >> confdefs.h <<\EOF
12901 #define STAT_STATFS4 1
12907 if test $space = no; then
12908 # 4.4BSD and NetBSD
12909 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12910 echo "configure:12911: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12911 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12912 echo $ac_n "(cached) $ac_c" 1>&6
12913 else
12914 if test "$cross_compiling" = yes; then
12915 fu_cv_sys_stat_statfs2_fsize=no
12916 else
12917 cat > conftest.$ac_ext <<EOF
12918 #line 12919 "configure"
12919 #include "confdefs.h"
12920 #include <sys/types.h>
12921 #ifdef HAVE_SYS_PARAM_H
12922 #include <sys/param.h>
12923 #endif
12924 #ifdef HAVE_SYS_MOUNT_H
12925 #include <sys/mount.h>
12926 #endif
12927 main ()
12929 struct statfs fsd;
12930 fsd.f_fsize = 0;
12931 exit (statfs (".", &fsd));
12934 if { (eval echo configure:12935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12935 then
12936 fu_cv_sys_stat_statfs2_fsize=yes
12937 else
12938 echo "configure: failed program was:" >&5
12939 cat conftest.$ac_ext >&5
12940 rm -fr conftest*
12941 fu_cv_sys_stat_statfs2_fsize=no
12943 rm -fr conftest*
12948 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12949 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12950 space=yes
12951 cat >> confdefs.h <<\EOF
12952 #define STAT_STATFS2_FSIZE 1
12958 if test $space = no; then
12959 # Ultrix
12960 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12961 echo "configure:12962: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12962 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12963 echo $ac_n "(cached) $ac_c" 1>&6
12964 else
12965 if test "$cross_compiling" = yes; then
12966 fu_cv_sys_stat_fs_data=no
12967 else
12968 cat > conftest.$ac_ext <<EOF
12969 #line 12970 "configure"
12970 #include "confdefs.h"
12971 #include <sys/types.h>
12972 #ifdef HAVE_SYS_PARAM_H
12973 #include <sys/param.h>
12974 #endif
12975 #ifdef HAVE_SYS_MOUNT_H
12976 #include <sys/mount.h>
12977 #endif
12978 #ifdef HAVE_SYS_FS_TYPES_H
12979 #include <sys/fs_types.h>
12980 #endif
12981 main ()
12983 struct fs_data fsd;
12984 /* Ultrix's statfs returns 1 for success,
12985 0 for not mounted, -1 for failure. */
12986 exit (statfs (".", &fsd) != 1);
12989 if { (eval echo configure:12990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12990 then
12991 fu_cv_sys_stat_fs_data=yes
12992 else
12993 echo "configure: failed program was:" >&5
12994 cat conftest.$ac_ext >&5
12995 rm -fr conftest*
12996 fu_cv_sys_stat_fs_data=no
12998 rm -fr conftest*
13003 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13004 if test $fu_cv_sys_stat_fs_data = yes; then
13005 space=yes
13006 cat >> confdefs.h <<\EOF
13007 #define STAT_STATFS2_FS_DATA 1
13014 # As a gating factor for large file support, in order to
13015 # use <4GB files we must have the following minimal support
13016 # available.
13017 # long long, and a 64 bit off_t or off64_t.
13018 # If we don't have all of these then disable large
13019 # file support.
13021 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13022 echo "configure:13023: checking if large file support can be enabled" >&5
13023 cat > conftest.$ac_ext <<EOF
13024 #line 13025 "configure"
13025 #include "confdefs.h"
13027 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13028 #include <sys/types.h>
13029 #else
13030 __COMPILE_ERROR_
13031 #endif
13033 int main() {
13034 int i
13035 ; return 0; }
13037 if { (eval echo configure:13038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13038 rm -rf conftest*
13039 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13040 else
13041 echo "configure: failed program was:" >&5
13042 cat conftest.$ac_ext >&5
13043 rm -rf conftest*
13044 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13046 rm -f conftest*
13047 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13048 echo "$ac_t""yes" 1>&6
13049 cat >> confdefs.h <<\EOF
13050 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13053 else
13054 echo "$ac_t""no" 1>&6
13057 # Check whether --with-spinlocks or --without-spinlocks was given.
13058 if test "${with_spinlocks+set}" = set; then
13059 withval="$with_spinlocks"
13063 if test "x$with_spinlocks" = "xyes"; then
13064 cat >> confdefs.h <<\EOF
13065 #define USE_SPINLOCKS 1
13069 case "$host_cpu" in
13070 sparc)
13071 cat >> confdefs.h <<\EOF
13072 #define SPARC_SPINLOCKS 1
13077 i386|i486|i586|i686)
13078 cat >> confdefs.h <<\EOF
13079 #define INTEL_SPINLOCKS 1
13084 mips)
13085 cat >> confdefs.h <<\EOF
13086 #define MIPS_SPINLOCKS 1
13091 powerpc)
13092 cat >> confdefs.h <<\EOF
13093 #define POWERPC_SPINLOCKS 1
13097 esac
13100 #################################################
13101 # check for ACL support
13103 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13104 echo "configure:13105: checking whether to support ACLs" >&5
13105 # Check whether --with-acl-support or --without-acl-support was given.
13106 if test "${with_acl_support+set}" = set; then
13107 withval="$with_acl_support"
13108 case "$withval" in
13109 yes)
13111 case "$host_os" in
13112 *sysv5*)
13113 echo "$ac_t""Using UnixWare ACLs" 1>&6
13114 cat >> confdefs.h <<\EOF
13115 #define HAVE_UNIXWARE_ACLS 1
13119 *solaris*)
13120 echo "$ac_t""Using solaris ACLs" 1>&6
13121 cat >> confdefs.h <<\EOF
13122 #define HAVE_SOLARIS_ACLS 1
13126 *hpux*)
13127 echo "$ac_t""Using HPUX ACLs" 1>&6
13128 cat >> confdefs.h <<\EOF
13129 #define HAVE_HPUX_ACLS 1
13133 *irix*)
13134 echo "$ac_t""Using IRIX ACLs" 1>&6
13135 cat >> confdefs.h <<\EOF
13136 #define HAVE_IRIX_ACLS 1
13140 *aix*)
13141 echo "$ac_t""Using AIX ACLs" 1>&6
13142 cat >> confdefs.h <<\EOF
13143 #define HAVE_AIX_ACLS 1
13147 *osf*)
13148 echo "$ac_t""Using Tru64 ACLs" 1>&6
13149 cat >> confdefs.h <<\EOF
13150 #define HAVE_TRU64_ACLS 1
13153 LIBS="$LIBS -lpacl"
13156 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13157 echo "configure:13158: checking for acl_get_file in -lacl" >&5
13158 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13159 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13160 echo $ac_n "(cached) $ac_c" 1>&6
13161 else
13162 ac_save_LIBS="$LIBS"
13163 LIBS="-lacl $LIBS"
13164 cat > conftest.$ac_ext <<EOF
13165 #line 13166 "configure"
13166 #include "confdefs.h"
13167 /* Override any gcc2 internal prototype to avoid an error. */
13168 /* We use char because int might match the return type of a gcc2
13169 builtin and then its argument prototype would still apply. */
13170 char acl_get_file();
13172 int main() {
13173 acl_get_file()
13174 ; return 0; }
13176 if { (eval echo configure:13177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13177 rm -rf conftest*
13178 eval "ac_cv_lib_$ac_lib_var=yes"
13179 else
13180 echo "configure: failed program was:" >&5
13181 cat conftest.$ac_ext >&5
13182 rm -rf conftest*
13183 eval "ac_cv_lib_$ac_lib_var=no"
13185 rm -f conftest*
13186 LIBS="$ac_save_LIBS"
13189 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13190 echo "$ac_t""yes" 1>&6
13191 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13192 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13193 cat >> confdefs.h <<EOF
13194 #define $ac_tr_lib 1
13197 LIBS="-lacl $LIBS"
13199 else
13200 echo "$ac_t""no" 1>&6
13203 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13204 echo "configure:13205: checking for ACL support" >&5
13205 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13206 echo $ac_n "(cached) $ac_c" 1>&6
13207 else
13209 cat > conftest.$ac_ext <<EOF
13210 #line 13211 "configure"
13211 #include "confdefs.h"
13212 #include <sys/types.h>
13213 #include <sys/acl.h>
13214 int main() {
13215 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13216 ; return 0; }
13218 if { (eval echo configure:13219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13219 rm -rf conftest*
13220 samba_cv_HAVE_POSIX_ACLS=yes
13221 else
13222 echo "configure: failed program was:" >&5
13223 cat conftest.$ac_ext >&5
13224 rm -rf conftest*
13225 samba_cv_HAVE_POSIX_ACLS=no
13227 rm -f conftest*
13230 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13231 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13232 echo "$ac_t""Using posix ACLs" 1>&6
13233 cat >> confdefs.h <<\EOF
13234 #define HAVE_POSIX_ACLS 1
13237 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13238 echo "configure:13239: checking for acl_get_perm_np" >&5
13239 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13240 echo $ac_n "(cached) $ac_c" 1>&6
13241 else
13243 cat > conftest.$ac_ext <<EOF
13244 #line 13245 "configure"
13245 #include "confdefs.h"
13246 #include <sys/types.h>
13247 #include <sys/acl.h>
13248 int main() {
13249 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13250 ; return 0; }
13252 if { (eval echo configure:13253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13253 rm -rf conftest*
13254 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13255 else
13256 echo "configure: failed program was:" >&5
13257 cat conftest.$ac_ext >&5
13258 rm -rf conftest*
13259 samba_cv_HAVE_ACL_GET_PERM_NP=no
13261 rm -f conftest*
13264 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13265 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13266 cat >> confdefs.h <<\EOF
13267 #define HAVE_ACL_GET_PERM_NP 1
13273 esac
13276 echo "$ac_t""no" 1>&6
13277 cat >> confdefs.h <<\EOF
13278 #define HAVE_NO_ACLS 1
13282 esac
13283 else
13284 cat >> confdefs.h <<\EOF
13285 #define HAVE_NO_ACLS 1
13288 echo "$ac_t""no" 1>&6
13293 #################################################
13294 # check for the historical SAMBA installation
13296 if test "x$prefix" = xNONE -a "$sbindir" = "\${exec_prefix}/sbin"; then
13297 # Put all binaries under the /usr/local/samba/bin directory.
13298 sbindir="$bindir"
13301 #################################################
13302 # check for sendfile support
13304 echo $ac_n "checking whether to check for support sendfile""... $ac_c" 1>&6
13305 echo "configure:13306: checking whether to check for support sendfile" >&5
13306 # Check whether --with-sendfile-support or --without-sendfile-support was given.
13307 if test "${with_sendfile_support+set}" = set; then
13308 withval="$with_sendfile_support"
13309 case "$withval" in
13310 yes)
13312 echo "$ac_t""yes" 1>&6;
13314 case "$host_os" in
13315 *linux*)
13316 echo $ac_n "checking for linux sendfile64 support""... $ac_c" 1>&6
13317 echo "configure:13318: checking for linux sendfile64 support" >&5
13318 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
13319 echo $ac_n "(cached) $ac_c" 1>&6
13320 else
13322 cat > conftest.$ac_ext <<EOF
13323 #line 13324 "configure"
13324 #include "confdefs.h"
13325 #include <sys/sendfile.h>
13326 int main() {
13328 int tofd, fromfd;
13329 off64_t offset;
13330 size_t total;
13331 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
13333 ; return 0; }
13335 if { (eval echo configure:13336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13336 rm -rf conftest*
13337 samba_cv_HAVE_SENDFILE64=yes
13338 else
13339 echo "configure: failed program was:" >&5
13340 cat conftest.$ac_ext >&5
13341 rm -rf conftest*
13342 samba_cv_HAVE_SENDFILE64=no
13344 rm -f conftest*
13347 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
13349 echo $ac_n "checking for linux sendfile support""... $ac_c" 1>&6
13350 echo "configure:13351: checking for linux sendfile support" >&5
13351 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13352 echo $ac_n "(cached) $ac_c" 1>&6
13353 else
13355 cat > conftest.$ac_ext <<EOF
13356 #line 13357 "configure"
13357 #include "confdefs.h"
13358 #include <sys/sendfile.h>
13359 int main() {
13361 int tofd, fromfd;
13362 off_t offset;
13363 size_t total;
13364 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
13366 ; return 0; }
13368 if { (eval echo configure:13369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13369 rm -rf conftest*
13370 samba_cv_HAVE_SENDFILE=yes
13371 else
13372 echo "configure: failed program was:" >&5
13373 cat conftest.$ac_ext >&5
13374 rm -rf conftest*
13375 samba_cv_HAVE_SENDFILE=no
13377 rm -f conftest*
13380 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13382 # Try and cope with broken Linux sendfile....
13383 echo $ac_n "checking for broken linux sendfile support""... $ac_c" 1>&6
13384 echo "configure:13385: checking for broken linux sendfile support" >&5
13385 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_LINUX_SENDFILE'+set}'`\" = set"; then
13386 echo $ac_n "(cached) $ac_c" 1>&6
13387 else
13389 cat > conftest.$ac_ext <<EOF
13390 #line 13391 "configure"
13391 #include "confdefs.h"
13393 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
13394 #undef _FILE_OFFSET_BITS
13395 #endif
13396 #include <sys/sendfile.h>
13397 int main() {
13399 int tofd, fromfd;
13400 off_t offset;
13401 size_t total;
13402 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
13404 ; return 0; }
13406 if { (eval echo configure:13407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13407 rm -rf conftest*
13408 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
13409 else
13410 echo "configure: failed program was:" >&5
13411 cat conftest.$ac_ext >&5
13412 rm -rf conftest*
13413 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
13415 rm -f conftest*
13418 echo "$ac_t""$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" 1>&6
13420 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
13421 cat >> confdefs.h <<\EOF
13422 #define HAVE_SENDFILE64 1
13425 cat >> confdefs.h <<\EOF
13426 #define LINUX_SENDFILE_API 1
13429 cat >> confdefs.h <<\EOF
13430 #define WITH_SENDFILE 1
13433 elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
13434 cat >> confdefs.h <<\EOF
13435 #define HAVE_SENDFILE 1
13438 cat >> confdefs.h <<\EOF
13439 #define LINUX_SENDFILE_API 1
13442 cat >> confdefs.h <<\EOF
13443 #define WITH_SENDFILE 1
13446 elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
13447 cat >> confdefs.h <<\EOF
13448 #define LINUX_BROKEN_SENDFILE_API 1
13451 cat >> confdefs.h <<\EOF
13452 #define WITH_SENDFILE 1
13455 else
13456 echo "$ac_t""no" 1>&6;
13460 *freebsd*)
13461 echo $ac_n "checking for freebsd sendfile support""... $ac_c" 1>&6
13462 echo "configure:13463: checking for freebsd sendfile support" >&5
13463 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13464 echo $ac_n "(cached) $ac_c" 1>&6
13465 else
13467 cat > conftest.$ac_ext <<EOF
13468 #line 13469 "configure"
13469 #include "confdefs.h"
13471 #include <sys/types.h>
13472 #include <sys/socket.h>
13473 #include <sys/uio.h>
13474 int main() {
13476 #define NULL (void *)0
13477 int fromfd, tofd, ret, total;
13478 off_t offset, nwritten;
13479 struct sf_hdtr {
13480 struct iovec *headers;
13481 int hdr_cnt;
13482 struct iovec *trailers;
13483 int trl_cnt;
13484 } hdr;
13485 struct iovec hdtrl;
13486 hdr.headers = &hdtrl;
13487 hdr.hdr_cnt = 1;
13488 hdr.trailers = NULL;
13489 hdr.trl_cnt = 0;
13490 hdtrl.iov_base = NULL;
13491 hdtrl.iov_len = 0;
13492 ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
13494 ; return 0; }
13496 if { (eval echo configure:13497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13497 rm -rf conftest*
13498 samba_cv_HAVE_SENDFILE=yes
13499 else
13500 echo "configure: failed program was:" >&5
13501 cat conftest.$ac_ext >&5
13502 rm -rf conftest*
13503 samba_cv_HAVE_SENDFILE=no
13505 rm -f conftest*
13508 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13510 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
13511 cat >> confdefs.h <<\EOF
13512 #define HAVE_SENDFILE 1
13515 cat >> confdefs.h <<\EOF
13516 #define FREEBSD_SENDFILE_API 1
13519 cat >> confdefs.h <<\EOF
13520 #define WITH_SENDFILE 1
13523 else
13524 echo "$ac_t""no" 1>&6;
13528 *hpux*)
13529 echo $ac_n "checking for hpux sendfile64 support""... $ac_c" 1>&6
13530 echo "configure:13531: checking for hpux sendfile64 support" >&5
13531 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
13532 echo $ac_n "(cached) $ac_c" 1>&6
13533 else
13535 cat > conftest.$ac_ext <<EOF
13536 #line 13537 "configure"
13537 #include "confdefs.h"
13539 #include <sys/socket.h>
13540 #include <sys/uio.h>
13541 int main() {
13543 int fromfd, tofd;
13544 size_t total=0;
13545 struct iovec hdtrl[2];
13546 ssize_t nwritten;
13547 off64_t offset;
13549 hdtrl[0].iov_base = 0;
13550 hdtrl[0].iov_len = 0;
13552 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
13554 ; return 0; }
13556 if { (eval echo configure:13557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13557 rm -rf conftest*
13558 samba_cv_HAVE_SENDFILE64=yes
13559 else
13560 echo "configure: failed program was:" >&5
13561 cat conftest.$ac_ext >&5
13562 rm -rf conftest*
13563 samba_cv_HAVE_SENDFILE64=no
13565 rm -f conftest*
13568 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
13569 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
13570 cat >> confdefs.h <<\EOF
13571 #define HAVE_SENDFILE64 1
13574 cat >> confdefs.h <<\EOF
13575 #define HPUX_SENDFILE_API 1
13578 cat >> confdefs.h <<\EOF
13579 #define WITH_SENDFILE 1
13582 else
13583 echo "$ac_t""no" 1>&6;
13586 echo $ac_n "checking for hpux sendfile support""... $ac_c" 1>&6
13587 echo "configure:13588: checking for hpux sendfile support" >&5
13588 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13589 echo $ac_n "(cached) $ac_c" 1>&6
13590 else
13592 cat > conftest.$ac_ext <<EOF
13593 #line 13594 "configure"
13594 #include "confdefs.h"
13596 #include <sys/socket.h>
13597 #include <sys/uio.h>
13598 int main() {
13600 int fromfd, tofd;
13601 size_t total=0;
13602 struct iovec hdtrl[2];
13603 ssize_t nwritten;
13604 off_t offset;
13606 hdtrl[0].iov_base = 0;
13607 hdtrl[0].iov_len = 0;
13609 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
13611 ; return 0; }
13613 if { (eval echo configure:13614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13614 rm -rf conftest*
13615 samba_cv_HAVE_SENDFILE=yes
13616 else
13617 echo "configure: failed program was:" >&5
13618 cat conftest.$ac_ext >&5
13619 rm -rf conftest*
13620 samba_cv_HAVE_SENDFILE=no
13622 rm -f conftest*
13625 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13626 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
13627 cat >> confdefs.h <<\EOF
13628 #define HAVE_SENDFILE 1
13631 cat >> confdefs.h <<\EOF
13632 #define HPUX_SENDFILE_API 1
13635 cat >> confdefs.h <<\EOF
13636 #define WITH_SENDFILE 1
13639 else
13640 echo "$ac_t""no" 1>&6;
13644 *solaris*)
13645 LIBS="$LIBS -lsendfile"
13646 echo $ac_n "checking for solaris sendfilev64 support""... $ac_c" 1>&6
13647 echo "configure:13648: checking for solaris sendfilev64 support" >&5
13648 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV64'+set}'`\" = set"; then
13649 echo $ac_n "(cached) $ac_c" 1>&6
13650 else
13652 cat > conftest.$ac_ext <<EOF
13653 #line 13654 "configure"
13654 #include "confdefs.h"
13656 #include <sys/sendfile.h>
13657 int main() {
13659 int sfvcnt;
13660 size_t xferred;
13661 struct sendfilevec vec[2];
13662 ssize_t nwritten;
13663 int tofd;
13665 sfvcnt = 2;
13667 vec[0].sfv_fd = SFV_FD_SELF;
13668 vec[0].sfv_flag = 0;
13669 vec[0].sfv_off = 0;
13670 vec[0].sfv_len = 0;
13672 vec[1].sfv_fd = 0;
13673 vec[1].sfv_flag = 0;
13674 vec[1].sfv_off = 0;
13675 vec[1].sfv_len = 0;
13676 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
13678 ; return 0; }
13680 if { (eval echo configure:13681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13681 rm -rf conftest*
13682 samba_cv_HAVE_SENDFILEV64=yes
13683 else
13684 echo "configure: failed program was:" >&5
13685 cat conftest.$ac_ext >&5
13686 rm -rf conftest*
13687 samba_cv_HAVE_SENDFILEV64=no
13689 rm -f conftest*
13692 echo "$ac_t""$samba_cv_HAVE_SENDFILEV64" 1>&6
13694 if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
13695 cat >> confdefs.h <<\EOF
13696 #define HAVE_SENDFILEV64 1
13699 cat >> confdefs.h <<\EOF
13700 #define SOLARIS_SENDFILE_API 1
13703 cat >> confdefs.h <<\EOF
13704 #define WITH_SENDFILE 1
13707 else
13708 echo "$ac_t""no" 1>&6;
13711 echo $ac_n "checking for solaris sendfilev support""... $ac_c" 1>&6
13712 echo "configure:13713: checking for solaris sendfilev support" >&5
13713 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV'+set}'`\" = set"; then
13714 echo $ac_n "(cached) $ac_c" 1>&6
13715 else
13717 cat > conftest.$ac_ext <<EOF
13718 #line 13719 "configure"
13719 #include "confdefs.h"
13721 #include <sys/sendfile.h>
13722 int main() {
13724 int sfvcnt;
13725 size_t xferred;
13726 struct sendfilevec vec[2];
13727 ssize_t nwritten;
13728 int tofd;
13730 sfvcnt = 2;
13732 vec[0].sfv_fd = SFV_FD_SELF;
13733 vec[0].sfv_flag = 0;
13734 vec[0].sfv_off = 0;
13735 vec[0].sfv_len = 0;
13737 vec[1].sfv_fd = 0;
13738 vec[1].sfv_flag = 0;
13739 vec[1].sfv_off = 0;
13740 vec[1].sfv_len = 0;
13741 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
13743 ; return 0; }
13745 if { (eval echo configure:13746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13746 rm -rf conftest*
13747 samba_cv_HAVE_SENDFILEV=yes
13748 else
13749 echo "configure: failed program was:" >&5
13750 cat conftest.$ac_ext >&5
13751 rm -rf conftest*
13752 samba_cv_HAVE_SENDFILEV=no
13754 rm -f conftest*
13757 echo "$ac_t""$samba_cv_HAVE_SENDFILEV" 1>&6
13759 if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
13760 cat >> confdefs.h <<\EOF
13761 #define HAVE_SENDFILEV 1
13764 cat >> confdefs.h <<\EOF
13765 #define SOLARIS_SENDFILE_API 1
13768 cat >> confdefs.h <<\EOF
13769 #define WITH_SENDFILE 1
13772 else
13773 echo "$ac_t""no" 1>&6;
13779 esac
13782 echo "$ac_t""no" 1>&6
13784 esac
13785 else
13786 echo "$ac_t""no" 1>&6
13791 #################################################
13792 # Check whether winbind is supported on this platform. If so we need to
13793 # build and install client programs (WINBIND_TARGETS), sbin programs
13794 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13796 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13797 echo "configure:13798: checking whether to build winbind" >&5
13799 # Initially, the value of $host_os decides whether winbind is supported
13801 case "$host_os" in
13802 *linux*|*irix*)
13803 HAVE_WINBIND=yes
13805 *solaris*)
13806 HAVE_WINBIND=yes
13807 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13808 WINBIND_NSS_EXTRA_LIBS="-lsocket"
13810 *hpux11*)
13811 HAVE_WINBIND=yes
13812 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13814 *aix4*)
13815 HAVE_WINBIND=yes
13818 HAVE_WINBIND=no
13819 winbind_no_reason=", unsupported on $host_os"
13821 esac
13823 # Check the setting of --with-winbindd
13825 # Check whether --with-winbind or --without-winbind was given.
13826 if test "${with_winbind+set}" = set; then
13827 withval="$with_winbind"
13829 case "$withval" in
13830 yes)
13831 HAVE_WINBIND=yes
13834 HAVE_WINBIND=no
13835 winbind_reason=""
13837 esac
13841 # We need unix domain sockets for winbind
13843 if test x"$HAVE_WINBIND" = x"yes"; then
13844 if test x"$samba_cv_unixsocket" = x"no"; then
13845 winbind_no_reason=", no unix domain socket support on $host_os"
13846 HAVE_WINBIND=no
13850 # Display test results
13852 if test x"$HAVE_WINBIND" = x"yes"; then
13854 echo "$ac_t""yes" 1>&6
13856 echo $ac_n "checking whether to enable winbind auth challenge/response code""... $ac_c" 1>&6
13857 echo "configure:13858: checking whether to enable winbind auth challenge/response code" >&5
13858 # Check whether --with-winbind-auth-challenge or --without-winbind-auth-challenge was given.
13859 if test "${with_winbind_auth_challenge+set}" = set; then
13860 withval="$with_winbind_auth_challenge"
13862 case "$withval" in
13863 yes)
13864 cat >> confdefs.h <<\EOF
13865 #define WITH_WINBIND_AUTH_CRAP 1
13868 echo "$ac_t""yes" 1>&6
13871 echo "$ac_t""no" 1>&6
13873 esac
13874 else
13875 echo "$ac_t""no" 1>&6
13880 # Check for FreeBSD problem with getgroups
13882 WINBIND_TARGETS="bin/wbinfo"
13883 WINBIND_STARGETS="bin/winbindd"
13884 case "$host_os" in
13885 *irix*)
13886 WINBIND_LTARGETS="nsswitch/libns_winbind.so"
13889 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13891 esac
13894 case "$with_pam" in
13895 yes)
13896 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13898 esac
13900 # Check for Horrible winbindd ldap hack.
13902 echo $ac_n "checking whether to enable winbind ldap hack""... $ac_c" 1>&6
13903 echo "configure:13904: checking whether to enable winbind ldap hack" >&5
13904 # Check whether --with-winbind-ldap-hack or --without-winbind-ldap-hack was given.
13905 if test "${with_winbind_ldap_hack+set}" = set; then
13906 withval="$with_winbind_ldap_hack"
13908 case "$withval" in
13909 yes)
13910 cat >> confdefs.h <<\EOF
13911 #define WITH_HORRIBLE_LDAP_NATIVE_MODE_HACK 1
13914 LIBS="$LIBS -lldap";
13915 echo "$ac_t""yes" 1>&6
13918 echo "$ac_t""no" 1>&6
13920 esac
13921 else
13922 echo "$ac_t""no" 1>&6
13927 else
13928 echo "$ac_t""no$winbind_no_reason" 1>&6
13930 WINBIND_TARGETS=""
13931 WINBIND_STARGETS=""
13932 WINBIND_LTARGETS=""
13933 WINBIND_PAM_TARGETS=""
13937 # Check for FreeBSD problem with getgroups
13938 # It returns EGID too many times in the list of groups
13939 # and causes a security problem
13940 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
13941 echo "configure:13942: checking whether or not getgroups returns EGID too many times" >&5
13942 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
13943 echo $ac_n "(cached) $ac_c" 1>&6
13944 else
13945 if test "$cross_compiling" = yes; then
13946 samba_cv_have_getgroups_too_many_egids=cross
13947 else
13948 cat > conftest.$ac_ext <<EOF
13949 #line 13950 "configure"
13950 #include "confdefs.h"
13952 #include <sys/types.h>
13953 #include <stdio.h>
13955 int main(int argc, char *argv[])
13957 gid_t groups[10];
13958 int n = 10;
13960 n = getgroups(n, &groups);
13961 /* Could actually pass back the number of EGIDs there ... */
13962 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
13965 if { (eval echo configure:13966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13966 then
13967 samba_cv_have_getgroups_too_many_egids=no
13968 else
13969 echo "configure: failed program was:" >&5
13970 cat conftest.$ac_ext >&5
13971 rm -fr conftest*
13972 samba_cv_have_getgroups_too_many_egids=yes
13974 rm -fr conftest*
13979 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
13980 if test x"$samba_cv_have_getgroups_too_many_egids" = x"yes"; then
13981 cat >> confdefs.h <<\EOF
13982 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
13987 # Substitution time!
13996 # Solaris has some extra fields in struct passwd that need to be
13997 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13998 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13999 # this.
14001 #AC_CHECK_MEMBER(struct passwd.pw_comment,
14002 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
14003 # [#include <pwd.h>])
14005 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
14006 echo "configure:14007: checking whether struct passwd has pw_comment" >&5
14007 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
14008 echo $ac_n "(cached) $ac_c" 1>&6
14009 else
14011 cat > conftest.$ac_ext <<EOF
14012 #line 14013 "configure"
14013 #include "confdefs.h"
14014 #include <pwd.h>
14015 int main() {
14016 struct passwd p; p.pw_comment;
14017 ; return 0; }
14019 if { (eval echo configure:14020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14020 rm -rf conftest*
14021 samba_cv_passwd_pw_comment=yes
14022 else
14023 echo "configure: failed program was:" >&5
14024 cat conftest.$ac_ext >&5
14025 rm -rf conftest*
14026 samba_cv_passwd_pw_comment=no
14028 rm -f conftest*
14031 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
14032 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
14033 cat >> confdefs.h <<\EOF
14034 #define HAVE_PASSWD_PW_COMMENT 1
14039 #AC_CHECK_MEMBER(struct passwd.pw_age,
14040 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
14041 # [#include <pwd.h>])
14043 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
14044 echo "configure:14045: checking whether struct passwd has pw_age" >&5
14045 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
14046 echo $ac_n "(cached) $ac_c" 1>&6
14047 else
14049 cat > conftest.$ac_ext <<EOF
14050 #line 14051 "configure"
14051 #include "confdefs.h"
14052 #include <pwd.h>
14053 int main() {
14054 struct passwd p; p.pw_age;
14055 ; return 0; }
14057 if { (eval echo configure:14058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14058 rm -rf conftest*
14059 samba_cv_passwd_pw_age=yes
14060 else
14061 echo "configure: failed program was:" >&5
14062 cat conftest.$ac_ext >&5
14063 rm -rf conftest*
14064 samba_cv_passwd_pw_age=no
14066 rm -f conftest*
14069 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
14070 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
14071 cat >> confdefs.h <<\EOF
14072 #define HAVE_PASSWD_PW_AGE 1
14077 #################################################
14078 # Check to see if we should use the included popt
14080 # Check whether --with-included-popt or --without-included-popt was given.
14081 if test "${with_included_popt+set}" = set; then
14082 withval="$with_included_popt"
14084 case "$withval" in
14085 yes)
14086 INCLUDED_POPT=yes
14089 INCLUDED_POPT=no
14091 esac
14094 if test x"$INCLUDED_POPT" != x"yes"; then
14095 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
14096 echo "configure:14097: checking for poptGetContext in -lpopt" >&5
14097 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
14098 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14099 echo $ac_n "(cached) $ac_c" 1>&6
14100 else
14101 ac_save_LIBS="$LIBS"
14102 LIBS="-lpopt $LIBS"
14103 cat > conftest.$ac_ext <<EOF
14104 #line 14105 "configure"
14105 #include "confdefs.h"
14106 /* Override any gcc2 internal prototype to avoid an error. */
14107 /* We use char because int might match the return type of a gcc2
14108 builtin and then its argument prototype would still apply. */
14109 char poptGetContext();
14111 int main() {
14112 poptGetContext()
14113 ; return 0; }
14115 if { (eval echo configure:14116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14116 rm -rf conftest*
14117 eval "ac_cv_lib_$ac_lib_var=yes"
14118 else
14119 echo "configure: failed program was:" >&5
14120 cat conftest.$ac_ext >&5
14121 rm -rf conftest*
14122 eval "ac_cv_lib_$ac_lib_var=no"
14124 rm -f conftest*
14125 LIBS="$ac_save_LIBS"
14128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14129 echo "$ac_t""yes" 1>&6
14130 INCLUDED_POPT=no
14131 else
14132 echo "$ac_t""no" 1>&6
14133 INCLUDED_POPT=yes
14138 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
14139 echo "configure:14140: checking whether to use included popt" >&5
14140 if test x"$INCLUDED_POPT" = x"yes"; then
14141 echo "$ac_t""$srcdir/popt" 1>&6
14142 BUILD_POPT='$(POPT_OBJS)'
14143 FLAGS1="-I$srcdir/popt"
14144 else
14145 echo "$ac_t""no" 1>&6
14146 LIBS="$LIBS -lpopt"
14151 #################################################
14152 # final configure stuff
14153 echo $ac_n "checking configure summary""... $ac_c" 1>&6
14154 echo "configure:14155: checking configure summary" >&5
14155 if test "$cross_compiling" = yes; then
14156 echo "configure: warning: cannot run when cross-compiling" 1>&2
14157 else
14158 cat > conftest.$ac_ext <<EOF
14159 #line 14160 "configure"
14160 #include "confdefs.h"
14161 #include "${srcdir-.}/tests/summary.c"
14163 if { (eval echo configure:14164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14164 then
14165 echo "$ac_t""yes" 1>&6
14166 else
14167 echo "configure: failed program was:" >&5
14168 cat conftest.$ac_ext >&5
14169 rm -fr conftest*
14170 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
14172 rm -fr conftest*
14176 builddir=`pwd`
14179 trap '' 1 2 15
14180 cat > confcache <<\EOF
14181 # This file is a shell script that caches the results of configure
14182 # tests run on this system so they can be shared between configure
14183 # scripts and configure runs. It is not useful on other systems.
14184 # If it contains results you don't want to keep, you may remove or edit it.
14186 # By default, configure uses ./config.cache as the cache file,
14187 # creating it if it does not exist already. You can give configure
14188 # the --cache-file=FILE option to use a different cache file; that is
14189 # what configure does when it calls configure scripts in
14190 # subdirectories, so they share the cache.
14191 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14192 # config.status only pays attention to the cache file if you give it the
14193 # --recheck option to rerun configure.
14196 # The following way of writing the cache mishandles newlines in values,
14197 # but we know of no workaround that is simple, portable, and efficient.
14198 # So, don't put newlines in cache variables' values.
14199 # Ultrix sh set writes to stderr and can't be redirected directly,
14200 # and sets the high bit in the cache file unless we assign to the vars.
14201 (set) 2>&1 |
14202 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14203 *ac_space=\ *)
14204 # `set' does not quote correctly, so add quotes (double-quote substitution
14205 # turns \\\\ into \\, and sed turns \\ into \).
14206 sed -n \
14207 -e "s/'/'\\\\''/g" \
14208 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14211 # `set' quotes correctly as required by POSIX, so do not add quotes.
14212 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14214 esac >> confcache
14215 if cmp -s $cache_file confcache; then
14217 else
14218 if test -w $cache_file; then
14219 echo "updating cache $cache_file"
14220 cat confcache > $cache_file
14221 else
14222 echo "not updating unwritable cache $cache_file"
14225 rm -f confcache
14227 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14229 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14230 # Let make expand exec_prefix.
14231 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14233 # Any assignment to VPATH causes Sun make to only execute
14234 # the first set of double-colon rules, so remove it if not needed.
14235 # If there is a colon in the path, we need to keep it.
14236 if test "x$srcdir" = x.; then
14237 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14240 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14242 DEFS=-DHAVE_CONFIG_H
14244 # Without the "./", some shells look in PATH for config.status.
14245 : ${CONFIG_STATUS=./config.status}
14247 echo creating $CONFIG_STATUS
14248 rm -f $CONFIG_STATUS
14249 cat > $CONFIG_STATUS <<EOF
14250 #! /bin/sh
14251 # Generated automatically by configure.
14252 # Run this file to recreate the current configuration.
14253 # This directory was configured as follows,
14254 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14256 # $0 $ac_configure_args
14258 # Compiler output produced by configure, useful for debugging
14259 # configure, is in ./config.log if it exists.
14261 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14262 for ac_option
14264 case "\$ac_option" in
14265 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14266 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14267 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14268 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14269 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14270 exit 0 ;;
14271 -help | --help | --hel | --he | --h)
14272 echo "\$ac_cs_usage"; exit 0 ;;
14273 *) echo "\$ac_cs_usage"; exit 1 ;;
14274 esac
14275 done
14277 ac_given_srcdir=$srcdir
14278 ac_given_INSTALL="$INSTALL"
14280 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14282 cat >> $CONFIG_STATUS <<EOF
14284 # Protect against being on the right side of a sed subst in config.status.
14285 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14286 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14287 $ac_vpsub
14288 $extrasub
14289 s%@SHELL@%$SHELL%g
14290 s%@CFLAGS@%$CFLAGS%g
14291 s%@CPPFLAGS@%$CPPFLAGS%g
14292 s%@CXXFLAGS@%$CXXFLAGS%g
14293 s%@FFLAGS@%$FFLAGS%g
14294 s%@DEFS@%$DEFS%g
14295 s%@LDFLAGS@%$LDFLAGS%g
14296 s%@LIBS@%$LIBS%g
14297 s%@exec_prefix@%$exec_prefix%g
14298 s%@prefix@%$prefix%g
14299 s%@program_transform_name@%$program_transform_name%g
14300 s%@bindir@%$bindir%g
14301 s%@sbindir@%$sbindir%g
14302 s%@libexecdir@%$libexecdir%g
14303 s%@datadir@%$datadir%g
14304 s%@sysconfdir@%$sysconfdir%g
14305 s%@sharedstatedir@%$sharedstatedir%g
14306 s%@localstatedir@%$localstatedir%g
14307 s%@libdir@%$libdir%g
14308 s%@includedir@%$includedir%g
14309 s%@oldincludedir@%$oldincludedir%g
14310 s%@infodir@%$infodir%g
14311 s%@mandir@%$mandir%g
14312 s%@codepagedir@%$codepagedir%g
14313 s%@configdir@%$configdir%g
14314 s%@lockdir@%$lockdir%g
14315 s%@piddir@%$piddir%g
14316 s%@logfilebase@%$logfilebase%g
14317 s%@privatedir@%$privatedir%g
14318 s%@swatdir@%$swatdir%g
14319 s%@RUNPROG@%$RUNPROG%g
14320 s%@MPROGS@%$MPROGS%g
14321 s%@LDSHFLAGS@%$LDSHFLAGS%g
14322 s%@SONAMEFLAG@%$SONAMEFLAG%g
14323 s%@SHLD@%$SHLD%g
14324 s%@HOST_OS@%$HOST_OS%g
14325 s%@PAM_MOD@%$PAM_MOD%g
14326 s%@PDBEDIT@%$PDBEDIT%g
14327 s%@WRAP@%$WRAP%g
14328 s%@WRAP32@%$WRAP32%g
14329 s%@WRAPPROG@%$WRAPPROG%g
14330 s%@PICFLAG@%$PICFLAG%g
14331 s%@PICSUFFIX@%$PICSUFFIX%g
14332 s%@SHLIBEXT@%$SHLIBEXT%g
14333 s%@BLDSHARED@%$BLDSHARED%g
14334 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
14335 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
14336 s%@CC@%$CC%g
14337 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14338 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14339 s%@INSTALL_DATA@%$INSTALL_DATA%g
14340 s%@AWK@%$AWK%g
14341 s%@passwd_program@%$passwd_program%g
14342 s%@BROKEN_CC@%$BROKEN_CC%g
14343 s%@host@%$host%g
14344 s%@host_alias@%$host_alias%g
14345 s%@host_cpu@%$host_cpu%g
14346 s%@host_vendor@%$host_vendor%g
14347 s%@host_os@%$host_os%g
14348 s%@target@%$target%g
14349 s%@target_alias@%$target_alias%g
14350 s%@target_cpu@%$target_cpu%g
14351 s%@target_vendor@%$target_vendor%g
14352 s%@target_os@%$target_os%g
14353 s%@build@%$build%g
14354 s%@build_alias@%$build_alias%g
14355 s%@build_cpu@%$build_cpu%g
14356 s%@build_vendor@%$build_vendor%g
14357 s%@build_os@%$build_os%g
14358 s%@CPP@%$CPP%g
14359 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
14360 s%@LIBOBJS@%$LIBOBJS%g
14361 s%@TERMLIBS@%$TERMLIBS%g
14362 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
14363 s%@ROFF@%$ROFF%g
14364 s%@DYNEXP@%$DYNEXP%g
14365 s%@LDAPLIBS@%$LDAPLIBS%g
14366 s%@QUOTAOBJS@%$QUOTAOBJS%g
14367 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
14368 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
14369 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
14370 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
14371 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
14372 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
14373 s%@BUILD_POPT@%$BUILD_POPT%g
14374 s%@FLAGS1@%$FLAGS1%g
14375 s%@builddir@%$builddir%g
14377 CEOF
14380 cat >> $CONFIG_STATUS <<\EOF
14382 # Split the substitutions into bite-sized pieces for seds with
14383 # small command number limits, like on Digital OSF/1 and HP-UX.
14384 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14385 ac_file=1 # Number of current file.
14386 ac_beg=1 # First line for current file.
14387 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14388 ac_more_lines=:
14389 ac_sed_cmds=""
14390 while $ac_more_lines; do
14391 if test $ac_beg -gt 1; then
14392 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14393 else
14394 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14396 if test ! -s conftest.s$ac_file; then
14397 ac_more_lines=false
14398 rm -f conftest.s$ac_file
14399 else
14400 if test -z "$ac_sed_cmds"; then
14401 ac_sed_cmds="sed -f conftest.s$ac_file"
14402 else
14403 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14405 ac_file=`expr $ac_file + 1`
14406 ac_beg=$ac_end
14407 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14409 done
14410 if test -z "$ac_sed_cmds"; then
14411 ac_sed_cmds=cat
14415 cat >> $CONFIG_STATUS <<EOF
14417 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
14419 cat >> $CONFIG_STATUS <<\EOF
14420 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14421 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14422 case "$ac_file" in
14423 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14424 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14425 *) ac_file_in="${ac_file}.in" ;;
14426 esac
14428 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14430 # Remove last slash and all that follows it. Not all systems have dirname.
14431 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14432 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14433 # The file is in a subdirectory.
14434 test ! -d "$ac_dir" && mkdir "$ac_dir"
14435 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14436 # A "../" for each directory in $ac_dir_suffix.
14437 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14438 else
14439 ac_dir_suffix= ac_dots=
14442 case "$ac_given_srcdir" in
14443 .) srcdir=.
14444 if test -z "$ac_dots"; then top_srcdir=.
14445 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14446 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14447 *) # Relative path.
14448 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14449 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14450 esac
14452 case "$ac_given_INSTALL" in
14453 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14454 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14455 esac
14457 echo creating "$ac_file"
14458 rm -f "$ac_file"
14459 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14460 case "$ac_file" in
14461 *Makefile*) ac_comsub="1i\\
14462 # $configure_input" ;;
14463 *) ac_comsub= ;;
14464 esac
14466 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14467 sed -e "$ac_comsub
14468 s%@configure_input@%$configure_input%g
14469 s%@srcdir@%$srcdir%g
14470 s%@top_srcdir@%$top_srcdir%g
14471 s%@INSTALL@%$INSTALL%g
14472 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14473 fi; done
14474 rm -f conftest.s*
14476 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14477 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14479 # ac_d sets the value in "#define NAME VALUE" lines.
14480 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14481 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14482 ac_dC='\3'
14483 ac_dD='%g'
14484 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14485 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14486 ac_uB='\([ ]\)%\1#\2define\3'
14487 ac_uC=' '
14488 ac_uD='\4%g'
14489 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14490 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14491 ac_eB='$%\1#\2define\3'
14492 ac_eC=' '
14493 ac_eD='%g'
14495 if test "${CONFIG_HEADERS+set}" != set; then
14497 cat >> $CONFIG_STATUS <<EOF
14498 CONFIG_HEADERS="include/config.h"
14500 cat >> $CONFIG_STATUS <<\EOF
14502 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14503 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14504 case "$ac_file" in
14505 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14506 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14507 *) ac_file_in="${ac_file}.in" ;;
14508 esac
14510 echo creating $ac_file
14512 rm -f conftest.frag conftest.in conftest.out
14513 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14514 cat $ac_file_inputs > conftest.in
14518 # Transform confdefs.h into a sed script conftest.vals that substitutes
14519 # the proper values into config.h.in to produce config.h. And first:
14520 # Protect against being on the right side of a sed subst in config.status.
14521 # Protect against being in an unquoted here document in config.status.
14522 rm -f conftest.vals
14523 cat > conftest.hdr <<\EOF
14524 s/[\\&%]/\\&/g
14525 s%[\\$`]%\\&%g
14526 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14527 s%ac_d%ac_u%gp
14528 s%ac_u%ac_e%gp
14530 sed -n -f conftest.hdr confdefs.h > conftest.vals
14531 rm -f conftest.hdr
14533 # This sed command replaces #undef with comments. This is necessary, for
14534 # example, in the case of _POSIX_SOURCE, which is predefined and required
14535 # on some systems where configure will not decide to define it.
14536 cat >> conftest.vals <<\EOF
14537 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14540 # Break up conftest.vals because some shells have a limit on
14541 # the size of here documents, and old seds have small limits too.
14543 rm -f conftest.tail
14544 while :
14546 ac_lines=`grep -c . conftest.vals`
14547 # grep -c gives empty output for an empty file on some AIX systems.
14548 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14549 # Write a limited-size here document to conftest.frag.
14550 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14551 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14552 echo 'CEOF
14553 sed -f conftest.frag conftest.in > conftest.out
14554 rm -f conftest.in
14555 mv conftest.out conftest.in
14556 ' >> $CONFIG_STATUS
14557 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14558 rm -f conftest.vals
14559 mv conftest.tail conftest.vals
14560 done
14561 rm -f conftest.vals
14563 cat >> $CONFIG_STATUS <<\EOF
14564 rm -f conftest.frag conftest.h
14565 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14566 cat conftest.in >> conftest.h
14567 rm -f conftest.in
14568 if cmp -s $ac_file conftest.h 2>/dev/null; then
14569 echo "$ac_file is unchanged"
14570 rm -f conftest.h
14571 else
14572 # Remove last slash and all that follows it. Not all systems have dirname.
14573 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14574 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14575 # The file is in a subdirectory.
14576 test ! -d "$ac_dir" && mkdir "$ac_dir"
14578 rm -f $ac_file
14579 mv conftest.h $ac_file
14581 fi; done
14584 cat >> $CONFIG_STATUS <<EOF
14587 cat >> $CONFIG_STATUS <<\EOF
14589 exit 0
14591 chmod +x $CONFIG_STATUS
14592 rm -fr confdefs* $ac_clean_files
14593 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1